Jump to content

My robot minion


kevinisageek
 Share

Recommended Posts

A while ago I came across an XKCD comic that made me very excited. There and then I started work on building a robot. Coded a (very) rough draft in python in an afternoon.

A while later I managed to get my hands on an arduino which I am using as the interface between a computer and the robot. I also got a remote controlled tank thing along with a headset which is being used for another project.

I attempted to reverse engineer the tank's circuitry but gave up once I came across an arduino motor controller. The controller makes it VERY easy to control standard DC motors, stepper motors and servos, much easier than the Phidgits thing Darren is using. Takes only 4 lines of code to make a motor run.

#include <AFMotor.h>
AF_DCMotor motor(2, MOTOR12_64KHZ); // create motor #2, 64KHz pwm
motor.setSpeed(200);     // set the speed to 200/255
motor.run(FORWARD);

(Code assembled from LadyAda's motor shield documentation which has a full example)

The robot segment also gave me the idea to make my robot web controlled. I have an interface written in php talking to the python code but the server software (nginx) doesn't have permission to talk to the serial port (damn security).

So thats one of my projects. For those who are interested, a full log is available at my site.

Thoughts/questions/suggestions/flames?

Link to comment
Share on other sites

use an L239D for motor control... lot cheaper. May want to make ur own arduino board 5$ arduino better than 30+$ one

make flamethrower for it

Your Avatar makes me want to vomit after watching it. I get motion sickness just from the bobbing heads...lol

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...