Let's Make Robots!

Hi,

This is my newest project.

It is basically formed by two 28x1that are serial controlled by a processing application, one for the motors and other for the two servos of the Pan&Tilt system

It can be remotely controlled by Remote Assistance of Windows Live Messenger, as it is shown in the video. 

 

It was very easy to build I just needed to learn the basics of processing and the basics of Picaxe Serial control.

If you have a Picaxe and if you want to make something cool I recommend you to have a look on this walkthrough: http://letsmakerobots.com/node/16469.

 

The application I made sends E,D,S,D to the servos Picaxe when these keys are pressed and X,W,Y,Z to the motors picaxe when the direction keys are pressed.

And this is how the picaxes interpret that letters: 

Servos:

b3=150

servo 0,b3

b2=150

servo 1,b2 

pause 1000

 

main:

serrxd b1

if b1="e" then

   b3 = b3 + 25

    if b3<225 then

      servo 0,b3

      pause 500

     endif

 endif

if b1="d" then

   b3 = b3 - 25

    if b3>75 then

      servo 0,b3

      pause 500

     endif

  endif

if b1="f" then

   b2 = b2 + 25

    if b2<225 then

      servo 1,b2

      pause 500

     endif

 endif

if b1="s" then

   b2 = b2 - 25

    if b2>75 then

      servo 1,b2

      pause 500

     endif

 endif

goto main

Motors:
main:
serrxd b1
if b1="x" then
   goto foward
 endif
if b1="y" then
   goto stop
 endif
if b1="w" then
   goto left
 endif
if b1="z" then
   goto right
 endif
...

 

 

Questions, Suggestions and Recommendations are always welcome!

 

EDIT:

I would like to be able to control it without using the internet.

Do you know which is the easiest way??

Comment viewing options

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

good work