PCBWay 3rd PCB Design Contest
VOTE NOW!
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
Design 1/4
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
Usability 2/4
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
Creativity 3/4
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
Content 4/4

Introduction


In this project, you'll learn how to construct your own PCB Car Arduino Module to learn about the control of robots. Through this module, you'll learn how to power on motors to control wheel of the robots, light, and control of robot navigation direction.


The Arduino Car Module Project


One of the biggest difficulties in robotics is learning to control a robot. Thus, one of the first robots that are used is the two-wheeled robot. These robots use two engines to control the direction of robot navigation through the environment.


In this beginning, many users have great difficulty in controlling the motors, because the circuit, at the beginning of learning, is complex.


Therefore, one way is to use the Robot Car Arduino module. In the Figure 1, we are presenting the Robot Car Arduino Module.


Figure 1 - PCB of the Robot Car Arduino Module.


As is possible to see in the project, the user can control several parts of the car. The user can control LED's to sinalize the direction of the car with LEDs in the rearview. In addition, the user can use rearview LED's to illuminate the via and power on LEDs for the Car Headlight.


Finally, there are one led in each wheel. Through the leads, the user can control the direction of the vehicle, in other words, the user can power on the motor for the car to straight ahead, go to left, go to the right or go to the back.


Now, for you understand the connections of the PCB, you can see the Electronic Schematic of the PCB is presented in Figure 2.


Figure 2 - Electronic Schematic of the Robot Car Arduino Module


As is possible see, there are 8 LEDs and a GND pin to connect and power on each LED in your Arduino Robot Car Module.


Therefore, for help you to create a good project, you can download the code and control your own car through Arduino.


void setup() 
{
  // put your setup code here, to run once:
  //Config the pin 2 until pin 9 as OUTPUT
  for(byte pin = 2; pin < 10; pin++)
  {
    pinMode(pin, OUTPUT);
  }
}


void loop() 
{
  // put your main code here, to run repeatedly:
  digitalWrite(2, HIGH); //Signal light ON left
  delay(1000);
  digitalWrite(2, LOW); //Signal light OFF left
  digitalWrite(3, HIGH); //Signal light ON right
  delay(1000);
  digitalWrite(2, LOW); //Signal light OFF right


  digitalWrite(4, HIGH); //Turn ON Left Headlight LED 
  digitalWrite(5, HIGH); //Turn ON Right Headlight LED


  digitalWrite(6, HIGH); //Turn ON Left Brake LED
  digitalWrite(7, HIGH); //Turn ON Right Brake LED


  digitalWrite(8, HIGH); //TURN ON Left Wheel Motor
  digitalWrite(9, HIGH); //Turn ON Right Wheel Motor


  delay(1500);


  digitalWrite(4, LOW); //Turn OFF Left Headlight LED 
  digitalWrite(5, LOW); //Turn OFF Right Headlight LED


  digitalWrite(6, LOW); //Turn OFF Left Brake LED
  digitalWrite(7, LOW); //Turn OFF Right Brake LED


  digitalWrite(8, LOW); //Turn OFF Left Wheel Motor
  digitalWrite(9, LOW); //Turn OFF Right Wheel Motor  
}


This code can be used to test each LED of the robot car and playing with its functions.


Conclusion


Thus, through this PCB Arduino Module you can use to teach robotic through a simple module and easier the student to learn principles of programming and robot control.

Bill of materials used in this project

330R Resistor
8
LED 5mm
8
1x9 Header Connector
1
Dec 02,2019
65 viewsReport item
  • Comments(0)
  • Likes(0)
You can only upload 1 files in total. Each file cannot exceed 2MB. Supports JPG, JPEG, GIF, PNG, BMP
    View More