Dual DC Motor Project || Computer Engineering

by 657540 in Circuits > Arduino

564 Views, 4 Favorites, 0 Comments

Dual DC Motor Project || Computer Engineering

20210204_141730.jpg

This project is for a Dual Dc motor Car, alongside an Ultra Sonic Distance sensor and an RBG led. These components are going to be controlled by a potentiometer, 3 small pushbuttons, an Arduino Uno and a laptop to program it all. The Dual Dc motor Car is a fun project for all people and especially for those that love cars as this is like building your own small Rc car in a way. Unfortunately, this project will have to be connected to a laptop to run at all times as there has been an inconivece with using batteries that proves to be unsafe to use.

Parts

20210204_202534.jpg

For this project to function as intended to there is a long list of parts that is needed for this to be successful. Also, remember this is the minimum requirement of parts, feel free to get more of each to be extra prepared.

List Of All Necessary Components:

  • Laptop with windows 7(10 recommended) to use the Arduino IDE application for the code
    • Go to this website to download the app LINK. Select the appropriate option and download it onto your laptop.
  • 1 H bridge chip
  • 1 Wire Stripper/Cutter tool
  • Electrical Tape (at least a small 3 - 5 inch roll)
  • 1 Full-sized Breadboard
  • 1 half-sized Breadboard(with the power and ground rails cut off, which can be done with a scissor)
  • 1 Potentiometer
  • 2 Dc motors
  • 1 regular green LED
  • 1 Car chassis
  • 5 resistors
    • 3 10k ohm resistor
    • 1 560 ohm resistor
    • 1 330 ohm resistor
  • 3 pushbuttons
  • 1 Arduino Uno
  • Ultrasonic Distance Sensor
  • 1 RGB LED
  • Jumper wires (Half a spools worth in total cables should fine)
    • red wire(for power)
    • black wire(for ground)
    • green(for Digital or Analog pins)
    • yellow(for Digital or Analog pins)
    • other Colours are good to get as well just to be more organized

Adding on to the Chassis

20210122_212550.jpg

This project requires a lot of space so it is very important that you properly set up the bread and Arduino UNO to the chassis of the car as described in the picture. In this picture, the Arduino Uno is set at the very back of the Car and the breadboard is held in place right in front of it. Also, use Electial tape to hold the parts down and if the soldering comes off the wires make sure to connect the wires and the jumper wire together with electrical tape, it will work fine.

Wiring Part 1: H Bridge

20210204_141900.jpg
Wire Stripper Hacks

This step is very crucial because the H bridge is the part that controls the Dc motors and if damaged the whole Project will be delayed until a replacement is found. Use the Picture above to help you or follow the pdf above. Also, if you do not know how to use a wire stripper/cutter refer to the youtube video it has many useful tips and tricks for using the tool

Final Wiring

Dc Car Demonstration

Okay in this part you will be wiring 3 push buttons, 1 potentiometer, a Green Led, an UltraSonic Distance Sensor and an RGB led. Refer to the Pdf attached to this step in the project to see a variety of pictures of the DC car wiring and go to the TinkerCad LINK to see the individual parts wired on the board.

Note: There is a Video Specifically for the Ultrasonic Distance Sensor and the RGB led please watch it before moving onto the next step. Also, do not connect the leg that controls the blue light of the RGB Led as we will not be using it.

Downloads

Coding

This is one of the Final steps, the coding of the car, before proceeding with the coding please double-check that your wiring is complete, meaning that nothing is hot, the motor wires are connected and the Green Led is lightened up. For the code, all you have to do is copy the code from either of the source provided onto your Arduino IDE and rewrite the variables to your pins on the Arduino Uno.

Note

20210204_141733.jpg

Okay, so now you have finished with this project, just to be safe, double-check your wiring because any movement can move the wires around and that will cause your car to stop working. Now, all that is left if for you to test out your car and hopefully it works, if not backtrack to the previous steps to understand your mistakes, other than I hope you are satisfied with this project!

Video Demonstration

Distance Sensor and RGB led explained