loading
 
Picaxe Module?
Jack Fuge from Australia  [1 posts]
15 year
Hello,

I am interested in interfacing this program, running on my laptop, to a picaxe. Laptop has a serial port.

Is there a module that impliments straight into the picaxe? Or am I best to attempt to use the serial port module?

Thanks.
Anonymous from United Kingdom  [99 posts] 15 year
Use the serial port module.  

Come up with a protocol that you want to use.  For instance I will often use
a header of %00000001 followed by a two digit number followed by
QWE
ASD
ZXC
The header sets and interrupt that starts the picaxe listening for serial input.  The number indicated the power (0-99) and the letter gives the direction (with W as forward)

On the picaxe, use a bit of code like this:
http://profmason.com/?s=picaxe+servo

or look at:
http://profmason.com/?p=714

In the first example, you can control a couple of servos.  Alternately if you are using DC motors, you would substitute the motor driving code in place of the servo code.

You are still tethered to the computer at this point (unless the computer is on the robot.) You should then look at wireless serial options.
Here is an example project where I used a picaxe to control a robot with a wireless camera.
http://profmason.com/?s=roborealm&paged=4

have fun!

This forum thread has been closed due to inactivity (more than 4 months) or number of replies (more than 50 messages). Please start a New Post and enter a new forum thread with the appropriate title.

 New Post   Forum Index