Let's Make Robots!


The challenge of building a 1st bot..


I got my arduino mega in the post a few days back and having been playing around lighting up LEDs. Thought id get started with constructing my 1st bot. Hence i rigged up 2 motors, a dual mc33887 motor driver, a 6v supply and the mega board. Uploaded a sample code to see if it would turn the motors. Voila!! Nothing happens. Nothing whirring, no sound, no ecstasy. No nothing. 

Its quite obvious that my bot wont perform with stationary wheels.

Still trying to find a solution. Images of connection, mc33887 truth table and sample code below.

what is wrong with my code?!

i dont know what's wrong with my code!

i made a simple code that should make my robot simply avoid walls, stuff etc.

i placed SC-QR-1 (my robot's name) upside-down and pressed [F5] (the "run" shortcut) and watched him move his cute little robot legs..     WTF?

the new code seemed to work untill the walk part was over and he started to turn..    ..left.        and then again left and again and again..    etc.

he is suposed to keep walking!!!

What wrong with my code???

#include <Servo.h>

Servo myservoL;
Servo myservoR;
int myservo = 2;
int myAngle;
int pulseWidth;

void setup()
  pinMode(myservo, OUTPUT);

void servoPulse(int myservo, int myAngle)
  pulseWidth = (myAngle *10) + 600;
  digitalWrite(myservo, HIGH);
  digitalWrite(myservo, LOW);

Continuous Rotation Servo & Picaxe

Ok, so I finally got all my gear set up to build robot numero uno, but Im goin friggin nuts trying to control my continuous rotation servos from parallax. Im using a picaxe 18x to produce the code, but no matter what pulsout or servo commands I use, my servo's only go clockwise.I NEED them to be able to go counterclockwise  for my differential drive train to work right. I have read every post on LMR about servos and have tried a lot. I have read their parallax data sheet and that they should respond based upon the pulse width, but no go.