Project tutorial
Drawing Car

Drawing Car © CC BY

The simplest Arduino-based drawing car ever.

  • 997 views
  • 0 comments
  • 3 respects

Components and supplies

Apps and online services

About this project

To get to this, let's start with the assembly:

I bought this car chassis:

I decided not to use some of the parts, specially the front wheel as rolling forward and backward wouldn't make straight lines because the wheel rotates as well. Instead I put some semi sphere made of plastic which I took from a roll-on deodorant. So the end result is this:

Now, the Arduino and Motor Shield.

The Motor Shield provides an easier set up for your motors and also allows to control their direction and speed. It also protects the Arduino from any current coming back from the motors and even lets you plug it to higher voltage sources. I use a 9V adapter for example.

To install the shield you just need to put it on top of the Arduino and press down as shown below.

I will be connecting the motors to the M3 and M4 pins

So all we need to do now it wire the thing up

There's one optional step and it's to secure the board to the car chassis. I used a small string and also put the circuit in the front part of the chassis because I want my pen to be between the wheels, in this way it's easier to control the results of the drawings.

Alright, so everything is in place and now we can just put a pen on top of it and it will draw something cool.

Well, not so fast. We still need to program the thing!

I used the Arduino Online Editor and you can find a copy of the code here.

The drawing happens in the loop and it's very simple

void loop() {
 delay(1000);
 rotateLeft(90);
 rotateRight(180);
 rotateLeft(90);
}

The code is self-explaining. This car will do semicircles forever XD.

Semicircles forever

Check out some other drawings at my website.

Thanks for reading and if you think this is too simple I invite you to check my other project: Alexa, launch a paper plane.

Code

Semicircles
Arduino

Schematics

Motor Shield
Put the shield on top of the Arduino with the matching pins and then connect the M3 and M4 motors
Q l293d motor driver 2fstepper 2fservo shield for arduino 500x500 ijeoeqoudn

Comments

Similar projects you might like

Biometric Car Entry - True Keyless Car

Project showcase by Rajeev Velikkal

  • 8,517 views
  • 9 comments
  • 43 respects

Obstacle Avoiding Car

Project showcase by Adam

  • 25,522 views
  • 3 comments
  • 40 respects

Arduino 4WD RC Car

Project tutorial by Andriy Baranov

  • 31,489 views
  • 9 comments
  • 73 respects

Bluetooth Controlled Car

Project tutorial by JANAK13

  • 20,211 views
  • 25 comments
  • 51 respects

Arduino Bluetooth Car Control

by TayfMavi

  • 13,498 views
  • 3 comments
  • 22 respects

Banger BLE Car

Project showcase by Francesc0

  • 1,546 views
  • 0 comments
  • 10 respects
Add projectSign up / Login