Differenze tra le versioni di "AxR75Project001"
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
| (5 versioni intermedie di 2 utenti non mostrate) | |||
| Riga 32: | Riga 32: | ||
|    | |    | ||
|  | |  | ||
| − | |   | + | | Y1  | 
| comando  | | 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 22: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