forked from Telos4/RoboRally
22 lines
727 B
Plaintext
22 lines
727 B
Plaintext
Breadboard | NodeMCU, GPIO, index | H-bridge
|
|
-------------------------------------
|
|
13 | D0, 16, 0 | 15 # driver channel 4 input
|
|
14 | D1, 5, 1 | 10 # driver channel 3 input
|
|
15 | D2, 4, 2 | 9 # driver 3/4 enable (pwm)
|
|
16 | D3, 0, 3 | 2 # driver channel 2 input
|
|
17 | D4, 2, 4 | 7 # driver channel 1 input
|
|
20 | D5, 14, 5 | 1 # driver 1/2 enable (pwm)
|
|
26 | GND
|
|
|
|
Motor example:
|
|
First motor:
|
|
GPIO16 -> HIGH (index 0)
|
|
GPIO05 -> LOW (index 1)
|
|
GPIO04 -> HIGH (index 2)
|
|
|
|
Second motor:
|
|
GPIO00 -> HIGH (index 3)
|
|
GPIO02 -> LOW (index 4)
|
|
GPIO14 -> HIGH (index 5)
|
|
|