3D Printed Car Using Arduino
by My Tech Studio in Circuits > Arduino
462 Views, 5 Favorites, 0 Comments
3D Printed Car Using Arduino
![3d_printed_robot_car.jpg](/proxy/?url=https://content.instructables.com/FH9/4IBN/LJ00FI3M/FH94IBNLJ00FI3M.jpg&filename=3d_printed_robot_car.jpg)
A 3D printed car is a car having all its part printed by using a 3D printer. In other words it is also a car with fully designed 3D parts. A 3D printed car is much more than a normal rc car because we can customize the 3D parts to give a better look for our car. We can also change the shape and size of the 3D parts to provide a variable look in your car. This is so easy and anyone can do this by using some 3D designing software like SketchUp, TinkerCAD, Fusion360 and much more. The final execution of the designs are done by a 3D printer. To control the car you can use arduino or any other microcontroller. For best practice you can use arduino because it is much easier to build a circuit using arduino. Read More >>
Supplies
- 3D printed parts
- Arduino UNO
- L293D Motor Driver Shield
- DC Motors
- Servo Motor
- Jumper Wire
- Lipo Battery
Designing 3D Parts
![3d_printed_car_3d_parts.jpg](/proxy/?url=https://content.instructables.com/FXP/0320/LJ00FI45/FXP0320LJ00FI45.jpg&filename=3d_printed_car_3d_parts.jpg)
![3d_printed_car_dc_motors.jpg](/proxy/?url=https://content.instructables.com/FJV/GGJ5/LJ00FI6V/FJVGGJ5LJ00FI6V.jpg&filename=3d_printed_car_dc_motors.jpg)
The first and most important thing is to design the 3D parts. For this you have to use any 3D designing software SketchUP, TinkerCAD, Fusion360 etc. If you are a beginner you can use TinkerCAD. TinkerCAD is an online platform to design 3d models. It is much easier to design a 3d model in TinkerCAD than any other software. Now take a look at the 3d parts that I have designed for my car. Read More >>
Assemble 3D Parts
![3d_printed_car_front_axle.jpg](/proxy/?url=https://content.instructables.com/FQD/ZJYI/LJ00FI4I/FQDZJYILJ00FI4I.jpg&filename=3d_printed_car_front_axle.jpg)
![3d_printed_car_rear_axle.jpg](/proxy/?url=https://content.instructables.com/FC9/U0CE/LJ00FI4J/FC9U0CELJ00FI4J.jpg&filename=3d_printed_car_rear_axle.jpg)
![3d_printed_car_chassis.jpg](/proxy/?url=https://content.instructables.com/FMC/QAGQ/LJ00FI7I/FMCQAGQLJ00FI7I.jpg&filename=3d_printed_car_chassis.jpg)
These are the parts that I used to make the front and rear axle of the car. The customized design of the 3d parts help me to build a more flexible front axle as well as rear axle. After assembling all the 3d parts the front axle and the rear axle will look like this.
Now we need to print one 3d part that will hold the front and rear axle together. Basically this will be the chassis of the car. So designed a chassis and print it out. In the design I include the text “TECH STUDIO”, which is looking so cool and gives a unique look to my chassis. Read More >>
3D Printed Shock Absorber
![3d_printed_car_shock_absorber.jpg](/proxy/?url=https://content.instructables.com/F53/PDF3/LJ00FI4Y/F53PDF3LJ00FI4Y.jpg&filename=3d_printed_car_shock_absorber.jpg)
![3d_printed_car_shock_absorber_making.jpg](/proxy/?url=https://content.instructables.com/FJ3/66XK/LJ00FI51/FJ366XKLJ00FI51.jpg&filename=3d_printed_car_shock_absorber_making.jpg)
At last I designed the 3d parts for shock absorber. Shock absorber is very important for our car and it provides a professional look to our car. So I designed the parts very carefully with proper shape and size. Take a look at the 3d parts that I have designed for shock absorber. Read More >>
Circuit Connection
![3d_printed_car_circuit.jpg](/proxy/?url=https://content.instructables.com/FBY/KQ6E/LJ00FI5I/FBYKQ6ELJ00FI5I.jpg&filename=3d_printed_car_circuit.jpg)
![3d_printed_car_servo.jpg](/proxy/?url=https://content.instructables.com/FIO/TQ8A/LJ00FI5J/FIOTQ8ALJ00FI5J.jpg&filename=3d_printed_car_servo.jpg)
Now the next important thing is to design the circuit for the car. To design the circuit I used different circuit component like arduino uno, l293d motor driver shield and hc-05 bluetooth module. The first step is to put the arduino in the car. I used the glue and fix the arduino in the chassis of the car. Now I took the L293D motor driver shield and then I put it on the arduino uno. After doing this I connect the motors with the motor driver. This are very simple steps and you can also do it by your own.
Now I connect the servo motor in the motor driver shield. While connecting the servo motor you have to keep your attention in the pin out of the servo. The servo motor has three pin out which are positive, negative and signal pin. You have to connect like this –
(1) Positive pin of servo – Positive pin of motor driver
(2) Negative pin of servo – Negative pin of motor driver
(3) Signal pin of servo – Signal pin of motor driver
Arduino Code
![3d_printed_car_arduino_code.jpg](/proxy/?url=https://content.instructables.com/F7B/O9RR/LJ00FI63/F7BO9RRLJ00FI63.jpg&filename=3d_printed_car_arduino_code.jpg)
// 3D PRINTED CAR
#include <AFMotor.h>
#include <Servo.h>
//initial motors pin
AF_DCMotor motor1(1, MOTOR12_1KHZ);
AF_DCMotor motor2(2, MOTOR12_1KHZ);
AF_DCMotor motor3(3, MOTOR34_1KHZ);
AF_DCMotor motor4(4, MOTOR34_1KHZ);
Servo my_servo;
char command;
void setup()
{
Serial.begin(9600);
my_servo.attach(9);
}
void loop(){
if(Serial.available() > 0){
command = Serial.read();
Stop();
switch(command){
case 'F':
forward();
break;
case 'B':
back();
break;
case 'L':
left();
break;
case 'R':
right();
break;
}
}
}
void forward()
{
motor1.setSpeed(255);
motor1.run(FORWARD);
motor2.setSpeed(255);
motor2.run(FORWARD);
motor3.setSpeed(255);
motor3.run(FORWARD);
motor4.setSpeed(255);
motor4.run(FORWARD);
}
void back()
{
motor1.setSpeed(255);
motor1.run(BACKWARD);
motor2.setSpeed(255);
motor2.run(BACKWARD);
motor3.setSpeed(255);
motor3.run(BACKWARD);
motor4.setSpeed(255);
motor4.run(BACKWARD);
}
After writing down the code you have to upload it in the arduino. So you have to connect the arduino with your computer by using an usb cable. After this go to the tools and then select the port and arduino type. Finally upload the code in arduino uno. Read More >>