Let's Make Robots!

Steven X

Actually serving as a test platform to get some programming done and check out all the components I got what to do with them. First cntact with a H bridge since I am using gear motors and no servos.
steven_x_test_code.pde5.16 KB

Hi I am Steven X I am a modified line follower chassis and serve as a test platform.

Now I will let my builder talk since i do not have any idea what he is doing with me.

Tests are the following:

  1. check distance in front, if distance is < than 20cm stop both motors
  2. execute a sensor sweep left and right and keep the left and the right distance in a variable
  3. compare left and right distance
  4. go to the direction where is more clear space

This is my second project and i used a line follower chassis to mount all the parts i need.

As you see i used the chassis to mount the gear motors, battery and sweep servo.

The leftover of the DVD case (see my Insect Robot) was used to attach the ulra sound sensor to the sweep servo (micro servo...very cheap but have to do the job)

Don't wonder...i will explain the LED's hanging around later ;-)

I put an old DVD (not old but ...let's say not worth to keep) above the motors and the servo to velcro the Arduino on it.

I used two distance pieces and the sweep servo is just mounted with one screw on the base chassis.

Behind the servo is the H bridge for the motors, the space for the Arduino was not enough, but maybe later if I like this little guy I will replace the current Duemilanove with a Nano...but i lost the thread....ok...DVD...

How to attach the DVD on the distance pieces if there is no hole in the top. I will tell you. Burn two holes in the DVD (probably you can not watch it anymore after this action but hey...robots are much cooler than boring movies), pull a cable binder (learned you guys call it cable tie)through the two holes and the one hole on the distance piece...done (see two pics above).

That's it. Nothing else done in terms of mechanics or moving. Right now i am trying to get the programming done. I am a little bit rusty in programming since i did nothing serious in the last couple of years. I could just search for code which is already done by others but that's no fun, i wanna solve this by myself... at least till a certain point.

For testing my code it's not good when this guy is running around, right?

So I put two LED's on the left and the right side to tell me when the motor should run. I am still in the sensor reading and checking the distance left and right after came to an obstacle. Now the sweep servo turns from 90° to 180° then to 0° and then back to 90°

By 180° it's executing a distance measuring and also by 0° Then it compares this two values and will turn to the side with the bigger value of distance. (ok not exactly...right now it just light up the LED on the side where he will go). This is also the reason why no video exists. As soon as he moves the video will follow.

UPDATE April 22 1:18am:

I got the first rough programming done. Steven X is now moving towards until a obstacle is closer than 20cm. If that happens he will do a sensor sweep left and right and compare the values. He will go to the direction where is more clear space ahead.

Please also see the (low quality) video. I built a trap that I can take the video without to chase him through the whole apartment.


1. Any smaller angel than 30° to a wall will not let him stop

2. The turns are just 200ms motor power on...will see if i can change this to a smarter solution


1. Can i do a continous sensor sweep and check the values in each loop?

2. How to get the turns smarter without wheel decoder encoders?

UPDATE April 25, 10:49am:

After 15 hours in the plane (yeah we was waiting 3 hours to fix a mechanical problem and then for take off clearance in Shanghai. Now 10,000km away from home i will improve the program and post the code in my description.

UPDATE April 25, 11:23am:

Test code is attached now. Please feel free to check it and feedback me if you see that i was totally wrong ;-)

UPDATE May 18, 10:27am:

Did a test run with the Sharp IR sensor and it went well. Now I consider it done and will further use it as a test patform for other sensors, attachments etc.

...oh yeah...about the name...will tell you later ;-)

Ok, now the thing with the name. I got this idea from the DVD i used. It was/ is the movie "Driven to Kill" with Steven Seagal :-) Not a good movie so the DVD did a good job afterwards....










Comment viewing options

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

sure, but it's high experimental now and not much comments. I am not at home at the moment but will attach the code with some comments later today.


OK thanks for that.

I think you meant an Atmega 328 instead of a Atmega 328. There are no Arduinos that use an Atmega 328. Besides that I suggest you to use "Arduino Uno" at "uses a" instead of "Atmega 328" because it does not uses a standalone Atmega micro.


Besides all that, good work, looks very nice. Keep it up,



Your post confused me a bit..haha, do not get your point... are you sure you posted at the right page?


Hey nice robot my friend, I like the CD or DVDs idea too. Thanks for posting :)

I was diggin how the robot was doing its own autobiography. Then you started narrating wth lol My english prof would have your head if she saw that. I like it though. I think I'll give dictation of the project from the robots perspective next time!

Like the bot. Very curvy. The use of junk as building material appeals to me like you have no idea, well done.

Regarding your sensor question, I don't see why not. I don't have any experience with ATMegas but if you have DC motors and not servos then you can sweep your area after you activate your motors. I do that with my Crumbot to some degree. It's mostly a SHR with a side to side scan every second or so. I use it to catch things that are just off center (they'd catch the corner of the bot) that aren't caught by the Sharp sensor looking straight ahead.

Not sure about smarter turning. Everything I know says you're stuck with encoders :\

Yeah I got your point and changed the confusing prologue ;-)

About the junk material, i like to use what I have when i am doing some functional models. They do not have to be pretty...but hey, for me he is pretty ^_^

The sensor sweep should run all the time and i will use the data to let Steven X avoid the obstacles during he is curving around and not just check the distance in driving direction but also a bit left and right.

Yeah, encoders would be smart but i will fix this with programming only. doing a sweep continuously and turn to the opposite direction when distance is < 20cm. As soon the distance is > 25cm then go forward again. (not sure if you got my idea) that should be doable.

Interesting solution using an old DVD for that. Nice touch!

Can not see yours. When will you show us your CD bot?

ill show it soon :)