Thanks for directing me to that early thread. That’s fixed the syntax problem.
I’m wondering if some kind soul could help me a bit more. I’m an artist and I’ve taught myself enough electronics to get by – relays, servos, hacking into toys etc. And I’ feel confident with the stepper circuit. But the stepper programming coding is bit baffling. I understand the necessary sequencing of pulses. I’ve studied the PICAXE basic manual ( sec 2) but it hasn’t helped me figure out how the sample of code in the interface section actually works.
First off – Is it possible to use a 08M? I want to use pins 0,12,4 because pin 3 is input only – which I need to use for input. And I realise pin 0 has to be jumped after programme downloading.
Then my question is about the line that reads :
Lookup b1,(%1010,%1001,%0101,%0110),b2
Let pins +b2
Now this might be stupid but because % indicates binary I’m thinking that the line reads:
Lookupb1, (10,9,7,6),b2 - which seems to get me nowhere?
Or is it that %1010 means pin 0=low, pin 1=high, pin 2=low, pin1=high? And that the sequence of %s is the sequence of steps as in the matrix x in the manual ( which makes more sense to me - but then the manual is referring to pins 4, 5, 6, 7 in the diagram – so that sort of doesn’t make sense)
Then the thread mentions putting a 10ms pause between steps which also make sense. But where in the code would I do that?
I don’t want to do anything very fancy - One whole revolution one way and then back would be fine to get me going.
Nb if an 08m isn’t suitable I’m happy to get another chip.
Thanks to anyone who can help out.