A Tiny Car Using a Tiny Microcontroller

by vinvout-io in Circuits > Electronics

315 Views, 1 Favorites, 0 Comments

A Tiny Car Using a Tiny Microcontroller

Screenshot_2023-03-29_21-42-29.png

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

requiredpicinstruct.png
  1. ATtiny85
  2. 2 x BO Motor
  3. 2 x BO Wheel
  4. breadboard (mini)
  5. a small cardboard box
  6. connecting wires
  7. L298 Motor Driver

Finding the Body

box.png

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

instrucatble3.png
instructable.png

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

Screenshot_2023-03-29_21-36-58.png
Screenshot_2023-03-29_21-37-48.png

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

Screenshot_2023-03-29_21-39-00.png
Screenshot_2023-03-29_21-40-09.png
Screenshot_2023-03-29_21-40-49.png

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

Schematics and Code

Working

A Tiny car using a tiny microcontroller #100