Differenze tra le versioni di "AxR75Project001"
Jump to navigation
Jump to search
(10 versioni intermedie di 2 utenti non mostrate) | |||
Riga 7: | Riga 7: | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
− | ! scope="col"| Pin | + | ! scope="col"| Pin SN75441ONE |
− | ! scope="col"| | + | ! scope="col"| |
! scope="col"| Pin Raspberry | ! scope="col"| Pin Raspberry | ||
+ | ! scope="col"| | ||
+ | ! scope="col"| Pin Motore | ||
+ | ! scope="col"| | ||
|- | |- | ||
− | ! scope="row"| 1 | + | ! scope="row"| 1 |
− | | | + | | Enable |
− | | 12 GPIO18 PCM | + | | 12 |
+ | | GPIO18 PCM | ||
+ | | | ||
+ | | | ||
|- | |- | ||
! scope="row"| 2 | ! scope="row"| 2 | ||
| +5V | | +5V | ||
− | | 2 +5V out | + | | 2 |
+ | | +5V out | ||
+ | | | ||
+ | | | ||
+ | |- | ||
+ | ! scope="row"| 3 | ||
+ | | Y1 | ||
+ | | | ||
+ | | | ||
+ | | Y1 | ||
+ | | comando | ||
|} | |} | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | pi@raspberrypi ~ $ gpio mode 1 pwm | ||
+ | pi@raspberrypi ~ $ gpio mode 5 out | ||
+ | pi@raspberrypi ~ $ gpio mode 4 out | ||
+ | pi@raspberrypi ~ $ gpio readall | ||
+ | +----------+------+--------+------+-------+ | ||
+ | | wiringPi | GPIO | Name | Mode | Value | | ||
+ | +----------+------+--------+------+-------+ | ||
+ | | 0 | 17 | GPIO 0 | IN | Low | | ||
+ | | 1 | 18 | GPIO 1 | ALT5 | Low | | ||
+ | | 2 | 27 | GPIO 2 | OUT | Low | | ||
+ | | 3 | 22 | GPIO 3 | IN | Low | | ||
+ | | 4 | 23 | GPIO 4 | OUT | Low | | ||
+ | | 5 | 24 | GPIO 5 | OUT | Low | | ||
+ | | 6 | 25 | GPIO 6 | IN | Low | | ||
+ | | 7 | 4 | GPIO 7 | IN | Low | | ||
+ | | 8 | 2 | SDA | ALT0 | High | | ||
+ | | 9 | 3 | SCL | ALT0 | High | | ||
+ | | 10 | 8 | CE0 | IN | Low | | ||
+ | | 11 | 7 | CE1 | IN | Low | | ||
+ | | 12 | 10 | MOSI | IN | Low | | ||
+ | | 13 | 9 | MISO | IN | Low | | ||
+ | | 14 | 11 | SCLK | IN | Low | | ||
+ | | 15 | 14 | TxD | ALT0 | High | | ||
+ | | 16 | 15 | RxD | ALT0 | High | | ||
+ | | 17 | 28 | GPIO 8 | IN | Low | | ||
+ | | 18 | 29 | GPIO 9 | IN | Low | | ||
+ | | 19 | 30 | GPIO10 | IN | Low | | ||
+ | | 20 | 31 | GPIO11 | IN | Low | | ||
+ | +----------+------+--------+------+-------+ | ||
+ | pi@raspberrypi ~ $ gpio write 4 1 | ||
+ | pi@raspberrypi ~ $ gpio pwm 1 512 | ||
+ | pi@raspberrypi ~ $ gpio pwm 1 1023 | ||
+ | pi@raspberrypi ~ $ gpio pwm 1 0 | ||
+ | pi@raspberrypi ~ $ gpio pwm 1 64 | ||
+ | pi@raspberrypi ~ $ gpio pwm 1 128 | ||
+ | pi@raspberrypi ~ $ gpio pwm 1 256 | ||
+ | pi@raspberrypi ~ $ gpio pwm 1 0 | ||
+ | pi@raspberrypi ~ $ gpio pwm 1 200 | ||
+ | pi@raspberrypi ~ $ gpio pwm 1 150 | ||
+ | pi@raspberrypi ~ $ gpio pwm 1 100 | ||
+ | pi@raspberrypi ~ $ gpio pwm 1 64 | ||
+ | pi@raspberrypi ~ $ gpio pwm 1 128 | ||
+ | pi@raspberrypi ~ $ gpio pwm 1 256 | ||
+ | pi@raspberrypi ~ $ gpio pwm 1 128 | ||
+ | pi@raspberrypi ~ $ gpio pwm 1 256 | ||
+ | pi@raspberrypi ~ $ gpio pwm 1 1023 | ||
+ | pi@raspberrypi ~ $ gpio pwm 1 2048 | ||
+ | pi@raspberrypi ~ $ gpio pwm 1 0 | ||
+ | pi@raspberrypi ~ $ gpio pwm 1 1023 | ||
+ | pi@raspberrypi ~ $ gpio pwm 1 0 | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | {{Test001|per un template|AxR75}} |
Versione attuale delle 23:51, 18 nov 2013
SN75441ONE - > interfacciare con motore lego
Tutorial uso ponteH: [[1]]
Pin SN75441ONE | Pin Raspberry | Pin Motore | |||
---|---|---|---|---|---|
1 | Enable | 12 | GPIO18 PCM | ||
2 | +5V | 2 | +5V out | ||
3 | Y1 | Y1 | comando |
pi@raspberrypi ~ $ gpio mode 1 pwm pi@raspberrypi ~ $ gpio mode 5 out pi@raspberrypi ~ $ gpio mode 4 out pi@raspberrypi ~ $ gpio readall +----------+------+--------+------+-------+ | wiringPi | GPIO | Name | Mode | Value | +----------+------+--------+------+-------+ | 0 | 17 | GPIO 0 | IN | Low | | 1 | 18 | GPIO 1 | ALT5 | Low | | 2 | 27 | GPIO 2 | OUT | Low | | 3 | 22 | GPIO 3 | IN | Low | | 4 | 23 | GPIO 4 | OUT | Low | | 5 | 24 | GPIO 5 | OUT | Low | | 6 | 25 | GPIO 6 | IN | Low | | 7 | 4 | GPIO 7 | IN | Low | | 8 | 2 | SDA | ALT0 | High | | 9 | 3 | SCL | ALT0 | High | | 10 | 8 | CE0 | IN | Low | | 11 | 7 | CE1 | IN | Low | | 12 | 10 | MOSI | IN | Low | | 13 | 9 | MISO | IN | Low | | 14 | 11 | SCLK | IN | Low | | 15 | 14 | TxD | ALT0 | High | | 16 | 15 | RxD | ALT0 | High | | 17 | 28 | GPIO 8 | IN | Low | | 18 | 29 | GPIO 9 | IN | Low | | 19 | 30 | GPIO10 | IN | Low | | 20 | 31 | GPIO11 | IN | Low | +----------+------+--------+------+-------+ pi@raspberrypi ~ $ gpio write 4 1 pi@raspberrypi ~ $ gpio pwm 1 512 pi@raspberrypi ~ $ gpio pwm 1 1023 pi@raspberrypi ~ $ gpio pwm 1 0 pi@raspberrypi ~ $ gpio pwm 1 64 pi@raspberrypi ~ $ gpio pwm 1 128 pi@raspberrypi ~ $ gpio pwm 1 256 pi@raspberrypi ~ $ gpio pwm 1 0 pi@raspberrypi ~ $ gpio pwm 1 200 pi@raspberrypi ~ $ gpio pwm 1 150 pi@raspberrypi ~ $ gpio pwm 1 100 pi@raspberrypi ~ $ gpio pwm 1 64 pi@raspberrypi ~ $ gpio pwm 1 128 pi@raspberrypi ~ $ gpio pwm 1 256 pi@raspberrypi ~ $ gpio pwm 1 128 pi@raspberrypi ~ $ gpio pwm 1 256 pi@raspberrypi ~ $ gpio pwm 1 1023 pi@raspberrypi ~ $ gpio pwm 1 2048 pi@raspberrypi ~ $ gpio pwm 1 0 pi@raspberrypi ~ $ gpio pwm 1 1023 pi@raspberrypi ~ $ gpio pwm 1 0
Questo è un test
per per un template.
saluti, AxR75