A Tiny Car Using a Tiny Microcontroller
by vinvout-io in Circuits > Electronics
343 Views, 2 Favorites, 0 Comments
A Tiny Car Using a Tiny Microcontroller
You have seen cars made using Arduino it's good and big, but have you seen a tiny car using a tiny microcontroller. Yes you guessed it right, the attiny85. If you follow me on YouTube, you know that I am obsessed with ATtiny85. So one day this idea came to me (There are other makers who have got the idea before me so I took inspiration from them)
it's all done now it's time for the connections I'll provide the schematics and code in the description don't worry after connecting everything I put the motor driver inside the small box and then glued the motors to the side of the box
Supplies
- ATtiny85
- 2 x BO Motor
- 2 x BO Wheel
- breadboard (mini)
- a small cardboard box
- connecting wires
- L298 Motor Driver
Finding the Body
For the body of the car, I took a small cardboard box (of dimension 3.5*4.5), so that way I can put all the electronics in it.
Programming Part
let's upload the program to the microcontroller. Here I'm using an Arduino as ISP to program the attiny85. Don't worry I've got you covered, here you go check out this to learn how to program your attiny85. first, we need to upload a code from an example called Arduino ISP, in order to work with our Arduino as an in-system programmer (ISP).
after that, we go to our main code and select the upload using the programmer
That's it.
Connections
I am powering the L298 (motor driver) using the 12v battery. The attiny85 can work with a voltage range of about 1.8v - 5.5v, so here I am taking the 5v output from the motor driver to power the attiny85.
now make the connections as shown in the schematic below
Putting Everything Up
after connecting everything I put the motor driver(with wires connected, carefully) inside the small box and then glued the motors to the side of the box
also, attach a 12V battery to the other side of the box and its action time