434
edits
Samthetechie (talk | contribs) |
Samthetechie (talk | contribs) |
||
| Line 135: | Line 135: | ||
=='Sauce' Code== | =='Sauce' Code== | ||
===Logical Connections=== | |||
Logic connections to the SN754410 QUADRUPLE HALF-H DRIVER are as follows: | Logic connections to the SN754410 QUADRUPLE HALF-H DRIVER are as follows: | ||
*3,4EN to Nanode's digital 7 | *3,4EN to Nanode's digital 7 | ||
| Line 144: | Line 145: | ||
[[File:SN754410.png]] | [[File:SN754410.png]] | ||
===Left Motor Connection=== | |||
Connect one terminal of a small two pin DC motor to 1Y and one to 2Y | |||
===Right Motor Connection=== | |||
Connect one terminal of a small two pin DC motor to 3Y and one to 4Y | |||
===Motor Testing=== | |||
Upload the source code and ensure that everything is connected properly. Now note which way the motors spin and change the polarity of 1Y and 2Y (i.e. literally swap 1Y with 2Y as it is connected to the motor) or 3Y with 4Y in order to ensure that the left and right motor are spinning the same way at the same time while the demo code is running. | |||
There is a Github Gist of the H-bridge control here: [https://gist.github.com/1205051] | There is a Github Gist of the H-bridge control here: [https://gist.github.com/1205051] | ||