![]() Most likely a power output going into the Arduino's 5V pin. If lights on the Arduino come on you have some incorrect wiring and you need to check it before proceeding. Make sure no lights come on in the Arduino when you plug in the AA batteries.(unplug your batteries while you figure it out!!!) If so great, if not check your wiring, maybe the red wire from the battery is not secured properly, or the 2nd connector is not going to the Arduino GND, or the black wire from the battery pack is not going to GND. Insert 4xAA batteries into the battery holder and see if the LED on the motor controller lights up.We are now ready to start testing your robot. Depending on which way around you plugged your motor wires in these might have to be switched around. However we will run a test program to confirm this and if anything is not working in the correct order you can easily switch it around by swapping the wires that connect to the IN rail. Plug the pins IN3 and IN4 into pins 3 and 5. Plug the IN1 and IN2 into Arduino pins 6, 11. Look at the number on the IN pins, this writing is pretty small, maybe your eyes are better than mine but I needed a magnifying glass to read these :). To connect to these you will need 4 female to male wires. We need to plug them into PWM (Pulse Width Modulation) pins on the Arduino, Read this for more information about how they work.Īnyway look closely at these pins on the motor controller this is the row of 4 male pins in a row by the 3 connectors you have already wired up. We now have to take 4 wires from the motor controller input line and plug them into the Arduino. Wire the controller inputs to the Arduino It is a 5V regulated output power supply. From the 3rd Connector take a wire to the row on your breadboard that you just colored red.With a red marker pen draw a red line on a row of your breadboard as shown in the 4th image, this will remind you that this is the power rail for running your other devices.If you are not using a proto shield you may want to run a wire from your Arduino GND to a row on the breadboard (color the row black with a marker pen), and then plug the black battery wire into that. ![]() Plug the black wire into the GND bank on the Arduino protoshield.If you have a different type then this should say either VCC, or +12V or similar. Plug the red wire into the left most connector on the motor controller. On the front of the motor controller there is a bank of 3 connectors.Poke the red and black wires through the small hole in the robot base.Hot glue the battery holder to the under side of the robot wherever you can fit it, space is a bit tight under there!.You have a 50/50 chance of getting the forward/backward wiring right and we'll test that later on. At this stage don't worry about which one they connect to, but connect the left wheel to the left connectors and the right wheel to the right ones. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |