Let's Make Robots!

Line detection routine too slow PICAXE 18X chip setfreq m8

Hi All,

I am currently working on code for my latest project being a sumobot style line detector. its actually my first wave before implementing a full scale sumobot. I have one issue currently that is bugging me and that has to do with the speed at which i am detecting and responding to the presence of a line. I have included my code below for general review and hints as to what I can change to make the line detection almost immediate.


Here is my code


setfreq m8

symbol LeftEye = 2

symbol RightEye = 1


Can't get my HXT900 servo to move


Trying to get my HXT900 to work on my test board but it just screams. I'm using a PICAXE 08M pins 0,1,2. there is a jumper that i set to downlaod and then to use as low for servo. orange cable to pin 0, red cable to pin1 and brown cable to pin2 The following is my code. Anyone out there ever came across this . Note I had it working once on my 18M



low 0

high 1

Homemade : IR Object Detection with a range greater than 5cm (target is 10cm)

Has anyone successfully implemented object detection using IR for a range greater than 5cm. I am building a robot project from scratch with the personal challenge of making all parts homemade. The brainboard and motor controller were succesfully built but now that i want to do object detection using IR (without getting the sharpe module) I have issues with ambient lighting and range.

Using Interrupts in PICAXE 08M to change led lighting routines

I was in the process of completing this carzy project of mine, where i had a single picaxe 08m chip driving four leds (green, red and amber). Its intended to give my four year old daughter something fun to look at. However I am a bit stuck as in teh code I can only get the interrupt to fire once via teh simulator. 

Any help will be appreciated.


symbol green_led = 0

symbol yellow_led = 1

symbol red_led = 2

Why does my motors stop spinning after awhile


Hi all,

I am on my second (well third if you count my incomplete herbie bot) and i have completed proto work on my project board with hook up wires. My basic code thru the PICAXE 18X is to keep pin 7 and 6 HIGH while 5 and 4 LOW as triggers to the inputs of a L293D motor driver. What I find is that for the most part the motors spin for a while and then stop for no reason.


My L293D are directly connected to the motors with no caps in place. Could the missing CAPS be the reason my my motors halt after awhile ?  



Downloading to a picaxe not as consistent as i would like

 Has anyone every encountered an issue where your connections are correct for the picaxe download circuit but for some random reason the Programme Editor only detects your chip sometimes with no alteration to the setup it detcts it one minute and not the next. once it does the program works.

code now loaded by chance:

 symbol green_led = 4

symbol yellow_led = 1

symbol red_led = 2

symbol wait_green = 30000

symbol wait_yellow = 500

symbol wait_red = 30000