Let's Make Robots!

Smart Doodle Bot

AttachmentSize
DoodlebotBasics.pde650 bytes
DoodlebotwithSonar.pde1.07 KB
Jingle_Bells.pde3.34 KB
DistLight.xls83.5 KB
arduExcel.pde1.11 KB
Dance.pde3.99 KB



12/21/2013 - A speaker is added.

11/01/2013 - Sonar/Light sensors with Auto Sweep
Parallax DAQ is used to display data in Excel.

10/23/2013 - A circular base is prodcuced with a 3D printer.
The base also serves as a very efficient soundboard for the 'motor speakers'. Now the music from the speakers is very loud. Sample music Jingle Bells is attached.

10/07/2013 - RC receiver is added as additional input

09/08/2013 -  An IR edge detector is added to the Doodle Bot.

08/29/2013 - An art work done by the healthy Doodle Bot is sbmitted to the Challenge.

08/25/2013 - An acoustic sensor for range measurement is added to the Doodle Bot.
It can now move around without hitting the walls as seen in the attached video.

08/22/2013 - An art work done by the handicap Doodle Bot is sbmitted to the Challenge.

 
08/14/2013
Bought the Dagu Doodle Bot kit from Hobby King. Assembled together and uploaded the Doodle_Bot_Text_Demo_with_Music. It will play music and then draw a one-and-a-half circle and then a small arc but not the text. I believe there is something wrong with the board. Do you agree?

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

If the bot is drawing  anything at all, then it is working.

Is there any chance some of your code is "commented out" and thus, not being run?

Why, specifically, do you think it is the board (noting that everything else seems to be working) and not a software issue?

7.4V lipo is fresh.

Demo program is original. Nothing commented out //.

Can it be the H-bridge circuit?

 

Also, this should have been a forum post, no?

You can consistantly get the circles to be drawn?

If so, again, I don't think this is a hardware issue. If you had fried hardware, it would not work "part of the time". 

 

With the current wiring, it will play music, draw 1 and 1/2 circles CW (right motor turns) , stop , the left motor turns a small step, and stop.

When I swap the sensors, it will play music, draw 1 and 1/2 circles CW (right motor turns) , stop , the left motor will turn continuously without stop.

 

When I swap the motors, it will play music, draw 1 and 1/2 circles CW (left motor turns) , stop , the right motor will turn continuously without stop.

 

I moved the sensors from 5mm to 3mm to the magnetic disk. It makes no difference.

The voltage jumper is set to 5V. Changed to a 4 nicd battery pack. Same problem.

When using the following code to check the status of the sensors and motors, I found the problem.

Both sensors work fine.

Left motor will turn CCW - digitalWrite(7,0);
 analogWrite(9,100);

Left motor will turn CW - digitalWrite(7,1);
 analogWrite(9,100);

Right motor will turn CCW - digitalWrite(8,1);
 analogWrite(10,100);

Right motor will NOT turn - digitalWrite(8,0);
 analogWrite(10,100);

 

void loop(){
  // read the state of the hall effect sensor:
  hallState = digitalRead(2);
 digitalWrite(7,1);
 analogWrite(9,100);
  if (hallState == LOW) {    
    // turn LED on:   
    digitalWrite(13,1); 
  }
  else {
    // turn LED off:
    digitalWrite(13,0);
  }
}

 

The Doodle Bot user manual says the supply voltage: 5V-9V. The max voltage for a 2-cell lipo is 8.4V and The jumper near the power switch is set to 5V from the factory.

Hobby King offered me credit once I reported the problem. I ordered another Doodle Bot and hope this time the project will go smoothly.