lipoja / AMSpi

Python class for controlling Arduino Motor Shield L293D from Raspberry Pi (using RPi.GPIO)
MIT License
35 stars 18 forks source link

i need to use only 2 dc motors plus 2 servo motors #5

Closed Darth-Kronos closed 5 years ago

Darth-Kronos commented 6 years ago

could u pls me help me with the connections and what part of the code shld me removed to make it work?

Darth-Kronos commented 6 years ago

amspi.set_74HC595_pins(21, 20, 16)

Set PINs for controlling all 4 motors (GPIO numbering)

    amspi.set_L293D_pins(5, 6, 13, 19)

in the above code 5 means motor1 6 motor2 13 motor3 19 motor 4? if yes i hav to just amspi.set_L293D_pins(5,6) ?

lipoja commented 6 years ago

Yes. It should be enough to call amspi.set_L293D_pins(5,6)