loading
Picture of Arduino Drawbot
In some of my previous Arduino instructurables I have show to the Arduino beginers on how to control servos in different ways.
And in my last instructurable I have show the modification of a Parallax servo for a 360º rotation.
So in this one I will show Arduino beginers the use of those 360º rotation servos.
With that in mind we will make our first ROBOT. It will be a simple bot called The DrawBot
For the some of the materials just look around the house and recycle it for the DrawBot to be made
NOTE: The code and the idea was taken from around the internet. And again there are tutorials showing you this simple DrawBot or the 5 Minute Drawbot but they're not clear enough for the beginner. All the electronics were bought @ RADIOSHACK.

Enjoy ;

 
Remove these adsRemove these ads by Signing Up

Step 1: Materials

Picture of Materials
IMG_2100.JPG
The following will be divided in categories and in no particular order:

Tools:
          1.  Drill with a drill bit (size depends on the diameter of the marker)
          2.  Screwdriver to attach the wheels to the servos.

Hardware:
          1. (X2) spray paint can caps.
          2. (X2) small screws
          3. (X3) rubber bands
          4.  Piece of wood ( size, shape and thickness could be any to fit all the parts)
          5. Arduino UNO Rev3
          6. Breadboard
          7. (9V) battery
          8. (9V) connection harness to provide power to the Arduino.
          9. (X4) wires for all the connections.
         10. A marker ( any color)
         11. (X2) Parallax Servos with the 360º MOD
         12. 12 pin connector         
         13. USB cable to prgram the Arduino.
         14. Something to add traction to the wheels ( I have use from lego, two rubber tires, but you can use any electrical tape also).

Software: 
               Arduino software (to upload the code)

Step 2: Step 1

Picture of Step 1
IMG_2104.JPG
Cut a piece of wood. Mine is 8 inches long. Then drill a hole in one of the sides ( I was drilling and measuring with the marker so it could fit in the hole. But the key is not to make the hole too big so the marker would'nt be loose as you see on the picture. If is loose in the hole the just add a piece of tape around it to make the marker more thick for the hole).
The piece of wood I am using is a 2'' wide by 1/4'' of thickness.
You can use whatever you got (plastic, metal or even a good piece of cardboard)

Step 3: Step1 (Bread board)

Picture of Step1 (Bread board)
Use the rubberband to hold the breadboard in place as you see on the picture.

Step 4: Step 3 (Arduino)

Picture of Step 3 (Arduino)
And again use the rubberband  for the Arduino as well.

Step 5: Step 4 (Servos)

Picture of Step 4 (Servos)
IMG_2112.JPG
IMG_2115.JPG
Attach the two servos to the base (wood piece).
Also it is a good practice to write in the back of the base the letters L and R to make the final connections of the servos easy. ;)

Step 6: Step 5 (Wheels)

Picture of Step 5 (Wheels)
IMG_2111.JPG
IMG_2136.JPG
IMG_2137.JPG
IMG_2138.JPG
IMG_2116.JPG
Attach the caps to the servo arm with two screws. And the one in the middle attach it to the servo.
You don't need to drill a hole here, the plastic is thin for the screws to go through.
Then add the traction to the caps, it could be electrical tape. ( I have use rubber tires from a lego)

Step 7: Step 6 (First Connection)

Picture of Step 6 (First Connection)
IMG_2120.JPG
The following connection is to provide power to the servos.
Notice that I have use a 12 pin connector to connect the servosto the breadboard.
ORANGE = 5V
YELLOW = GND 

Step 8: Step 7 (Second Connection)

Picture of Step 7 (Second Connection)
IMG_2123.JPG
First: Connect the 5V connection from the Arduino to the breadboard.
Second: Connect the GND connection from the Arduino to the breadboard.
NOTE: (BreadBoard Basics) 
When you make a connection from the Arduino to the breadboard it will provide either power or a Pin function connection to the whole row.

Step 9: Step 8 (Third Connection)

Picture of Step 8 (Third Connection)
IMG_2127.JPG
First: Connect the pin 9 from the Arduino to the breadboard for the Left Servo and that is the white cable connection of the servo.
Second: Connect the pin 10 from the Arduino to the breadboard for the Right Servo and that is the white cable connection of the servo
Look at the pictures to have a clear understanding on how the connections go.

Step 10: Step 9 (Fourth Connection)

Picture of Step 9 (Fourth Connection)
IMG_2130.JPG
Connect the servos to the breadboard.
Make sure the white cable connection on the servo is were the pins to the Arduino are.
Almost done... DOUBLE CHECK THE CONNECTIONS!!! ;)
As you see on the second picture I have run the cables under the Drawbot  to make everything clean and organized. ;)

Step 11: Step 11 (Programing)

Picture of Step 11 (Programing)
code pic.png
Here is the code for our Drawbot.
The code was found on the internet and I have use it and it is working.
AWAYS COMPILE the code before uploading it to the Arduino ;)

CODE:

/*
* 5 Minute Drawbot.pde
*/

int servoPinL = 9;
int servoPinR = 10;

void setup() {
  pinMode(servoPinL,OUTPUT);
  pinMode(servoPinR,OUTPUT);
}

void loop() {
    digitalWrite(servoPinL,HIGH);
    digitalWrite(servoPinR,HIGH);
    delayMicroseconds(1500);
    digitalWrite(servoPinL,LOW);
    digitalWrite(servoPinR,LOW);
    delay(50);
}

Step 12: Step 12 (Power)

Picture of Step 12 (Power)
IMG_2140.JPG
Not much to say here just attach the 9V battery to the DrawBot and connect it to the Arduino.
Watch it making circles, as you can change the markers to make different circles in different colors.
I have use a sharpie but I rather use a washable one in case of an accident.

ENJOY your first ARDUINO BOT  ;)

Step 13: Troubleshooting

Picture of Troubleshooting
1. The marker is loose and the hole is too big.
A. Put some tape arround the marker to make it fit. 
2. What else can I use as wheels?
A. There is a lot of stuff to use an example is tupperware tops or lids.
3. The servos wont move.
A. Make sure all the connections are not loose double check them.
A. Also make sure the 9V batterty is new this servos will drain all its power.
4. When connected to the power I have check all connections still servos wont move.
A. Double check that you upload the code to the Arduino, and when connected to the power you don't see servos move a little
     it means that there is no code running in the Arduino.
NOTE:
          When the power is connected if you dont see any light on the Arduino that means the battery does not have any power.

Any help needed let me know I will be glad to help all of you.

ENJOY ;)
blackcamo4 months ago

cheap cheap cheap arduino parts...

https://sites.google.com/site/arduinouk

jjfishboy1 year ago
this is such a good idea! could try 4wd + rotating pen. keep up the good work!
biomech75 (author)  jjfishboy10 months ago

The code was from the arduino web site

Great, thanks!

sdesilva2 years ago
very interesting and amazing. Can't we develop this project with a 3D scanner. It means first scan the image and draw it. I think you have a idea. I am waiting from your response.God Bless and Grate day.
biomech75 (author)  sdesilva10 months ago

umm!!! interesting I will try something like that

jjfishboy1 year ago
where did you get the code from?
biomech75 (author) 2 years ago
You are very right JoshuaZimmerman
Or you could just buy a really small 9V to 2.1mm plug connector. Simple and easy to use.

http://www.browndoggadgets.com/store/batteries/9v-to-2-1mm-dc-jack/

You can also find connectors with built in switches and hard cases.
ElectroFlex3 years ago
How do you go about plugging a nine volt into the arduino? Which ports do I use?
biomech75 (author)  ElectroFlex3 years ago
1. You need this connector for the battery look at the link for a clear picture
http://www.radioshack.com/product/index.jsp?productId=2062218
2. And this picture will help you see the connector to provide power to the arduino.
3. And here is were you connect the 9V battery to the Arduino.
CA-2185.jpgpower connection.pngpower connection.png