Let's Make Robots!

40x2

      Hi guys, I've been a bit short of cash and time recently so I thought I would look through my parts bin and find a quick project i could do. I came up … Read more
Update April 1st   Well the dust has cleared and I have finished and submitted my Google Science Fair project and I very happy with it.  I have added the site … Read more

Picaxe 40X2 servo control

Hey guys,

 

I have been working on a new project over the past couple of days and I have just come to the electronics stage of the project.  What I need is control of 18 servos.  For this I purchased a 40x2 chip as I saw how many I/O it had and seemed like the way to go.  Problem is that when I plugged in my Picaxe 40X2 and attempted to control a servo, The editor advsied me that only the "B" pins could be used with the servo commands.  This means that I can only control 8 servos with this chip?

Slightly more advanced LDR eye

Read this history first, if you have an hour to kill.

The challenge: make your bot rove around your house. Use no active beacons. Use observations by your bot only. Now, does your bot know where it is?

One possible answer: an eye and a brain.

Room Recognition

Each room in the house has a unique lighting situation. A simple eye that looks around in eight directions would "see" a pattern of light and dark segments. Each cell is connected to one ADC on your uC.

The new Picaxe bug?

Consider this test code for Picaxe.

#picaxe40x2
#no_data
high 5
for w0 = 1 to 65535 next w0
high 6
for w0 = 0 to 65535 next w0
high 7

Please feed it to your Picaxe, whatever breed. Change the directive #picaxe.... accordingly or remove it. The directive #no_data just speeds up the program load.

Now tell me, how long does it take for the ports to go high (for the LEDs to light up)?