Insert four AA batteries in the battery enclosure (if you don’t have a battery pack, the motors should be able to turn using power through the USB cable). ![]() Use a small screwdriver to clamp the wires into their slots.Ĭonnect the Arduino Uno board to the computer via the USB cable and upload the code below using the Arduino IDE software. Use a small screwdriver to clamp the wires into their slots.Ĭonnect the red wire from the other motor (Motor B) to the B+ slot on the Motor Shield, and the black wire from Motor B to the B- slot on the Motor Shield. Insert the red wire from one motor (we’ll call it Motor A) to the A+ slot on the Motor Shield, and the black wire from Motor A to the A- slot on the Motor Shield. Use a small screwdriver to clamp the wire into the slot. Insert the black wire from the battery enclosure into the GND slot on the Motor Shield. ![]() Insert the red wire from the battery enclosure into the VIN slot on the Motor Shield. ![]() Stack the Motor Shield on top of the Arduino Uno carefully, ensuring the pins match up in their correct position and don’t get bent or damaged. If you don’t already have wires soldered to the DC motors, then you will need to solder two wires to each motor (a black wire for ground and a red wire for voltage). Connecting the DC motors and battery pack to the Arduino
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |