Let's Make Robots!


How to use Arduino interrupt in GR Sakura?

charge91's picture


I successfully ran a code snippet on Arduino . The arduino code uses timer 1 for interrupt and looks like this...

How to use timer and interrupts on Arduino boards.

Setting up an interrupt properly

For school this year we are making picaxe 08m robots and have a sheet of funtions we need to fill out. This one is attempting to seek shade It needs more work but right now i just need help with the interrupt code,  I have this code here

symbol light = pin3
symbol movment = w0
setint %00100000,%00100000

if light = 0 then low 1
if light = 0 then gosub find
if light = 1 then high 1 low 2 low 4
goto top

Interrupts causing problems

I dislike asking questions - usually it means I didn't RTFM or that my Google skills are sub-par.  Or that I'm missing the obvious.  But here we are.  The following advenure takes place on a Picaxe 28x1 project board (that came with the Solarbotics "Start Here" kit) with a resistor pack replacing the Darlington chip.  The Parallax unit is connected to digital i/o pin 3 (though I see the same behavior on other pins).  Output pin 2 is connected to an LED (but the same behavior holds for pins 4-7 which drive the motor outputs).

Here is some code:


atmega32 INT2

djhesit8's picture







while(bit_is_set(PINB, PB2));


//init interupt







Timing interval between interrupts - which Picaxe?

rik's picture

Is this true? A Picaxe08M is awesome, except it will not give me a way to measure the time between interrupts?

Should I upgrade? Which Picaxe do you recommend? I am looking for a minimum pin count.

Don't say Arduino now, ya hear!