Robin Lovelock
Senior Member
Hi Folks. I'm about to be interrupted by a local friend, working with me on the robot boats.
But, as expected, the faster 08M chips arrived today and I started to try my program
- got error messages. But the most worrying one seemed to be it not liking SERVO and SERVOPOS.
Is it possible that the faster chips do not allow SERVO and SERVOPOS ?
Maybe because the servo software only works at 4MHz ?
I thought I'd post this to save some time. I hope to start work again on it in a few hours.
Making the robot boat "sea worthy" ? Gosh ! I never thought of that: I'll be sure to discuss that novel ideawith my friend.
I was thinking of using one of those little rubber ducks for the hull - they've managed a few thousand sea miles so far
Robin
www.gpss.co.uk/autop.htm
But, as expected, the faster 08M chips arrived today and I started to try my program
- got error messages. But the most worrying one seemed to be it not liking SERVO and SERVOPOS.
Is it possible that the faster chips do not allow SERVO and SERVOPOS ?
Maybe because the servo software only works at 4MHz ?
I thought I'd post this to save some time. I hope to start work again on it in a few hours.
Making the robot boat "sea worthy" ? Gosh ! I never thought of that: I'll be sure to discuss that novel ideawith my friend.
I was thinking of using one of those little rubber ducks for the hull - they've managed a few thousand sea miles so far
Robin
www.gpss.co.uk/autop.htm
@Robin.
re 08M2, it is just "drop-in" and then
a little code shuffling.
I modified
1. A program from two years ago,
2. Then Hippy's code.
Although I'm only testing from a static window-cill,
they both appear to work fine.
Code:#picaxe 08M2 setfreq M32 #terminal 38400 main: serin c.2,t4800_32,("$GPRMC,"), b0,b1,b2,b3,b4,b5,b6,b7,b8,b9,b10,b11,b12,b13,b14,b15,b16,b17,b18,b19,b20,b21,b22,b23,b24,b25,b26,b27 ;time sertxd (b0,b1,": ",b2,b3," m ",b4,b5," s UTC ",b10,b11,b12,cr,lf,cr,lf) ;deg N sertxd(b13,b14," ",b15,b16,b17,b18,b19,b20,b21,b22,b23, cr,lf) serin c.2,t4800_32,("$GPRMC,"), b0,b0,b0,b0,b0,b0,b0,b0,b0,b0,b0,b0,b0,b0,b0,b0,b0,b0,b0,b0,b0,b0,b0,b0,b0,b0,b1,b2,b3,b4,b5,b6,b7,b8,b9,b10,b11,b12,b13,b14,b15,b16,b17,b18,b19,b20,b21,b22,b23,b24,b25,b26,b27 ;deg W sertxd (b0,b1,b2,".",b3,b4,b5,b6,b7,b8,b9,b10,b11,b12,cr,lf) sertxd ("Speed = ",b13,b14,b15,b16,"knots",cr,lf) sertxd ("Heading = ",b18,b19,b20,b21,b22,b23," degs",cr,lf) serin c.2,t4800_32,("$GPRMC,"), b0,b0,b0,b0,b0,b0,b0,b0,b0,b0,b0,b0,b0,b0,b0,b0,b0,b0,b0,b0,b0,b0,b0,b0,b0,b0,b0,b0,b0,b0,b0,b1,b2,b3,b4,b5,b6,b7,b8,b9,b10,b11,b12,b13,b14,b15,b16,b17,b18,b19,b20,b21,b22,b23,b24,b25,b26,b27 sertxd( "Day =",b20,b21," Mon = ",b22,b23," Yr = ",b24,b25, cr,lf,cr,lf) wait 32 goto main
I seriously suggest that you orderCode:serin c.3,t4800_32,("$GPRMC,") SERIN 3, t4800_32, ( "A" ) ;A = GPS tracking or V = not yet tracking SERIN 3, t4800_32, ( ",W," ) SERIN 3, t4800_32, ( "," ) SERIN 3, t4800_32, w2 'the GPS heading the boat is travelling sertxd ("Heading = ",W2," degs",cr,lf) wait 10 goto main
a couple of 08M2 chips.
They are seriously powerful little beasts.
e