prv
Well-Known Member
A couple of months ago when Angus was considering new YAPP ideas, I described a gadget I'd like, to silence the depth alarm while berthing in a shallow harbour: http://www.ybw.com/forums/showthread.php?411851-YAPP-ideas&p=4990868#post4990868
The guru himself wasn't interested, which is of course his prerogative. However, while working on something else yesterday that needed the instrument power turned on, and being beeped at every twenty seconds, I decided I'd have a bash myself.
My previous attempts to program PICs the proper way have not gone well. I can crank out adequate rusty C to describe the behaviour I want, but I lack a lot of the assumed knowledge in dealing with the hardware.
However, just before Christmas I discovered the Picaxe system. It was developed for use in schools so is about my level
. The actual hardware is a PIC, but it is pre-programmed with a sort of minimal OS that accepts and runs programs compiled from a form of specialised BASIC. The OS and compiler between them handle a lot of the low-level details, so you can just say things like "read in a serial byte" without having to manually set all kinds of registers and flags first.
With this system I was able to knock up a basic but useful project in a couple of hours, and apart from a couple of syntax errors and tweaking some tone values to make nice-sounding beeps, it more or less worked first go. So, given that my needs are generally simple, I think this is what I'll stick with for now.
I just wondered whether anyone else had used Picaxe, and happened to have got it working with Seatalk? Standard serial would be easy, it's built-in, but the extra "command bit" in Seatalk complicates matters. If I can piggyback on someone else's work for that, it would be nice
(The actual behaviour will be pretty simple - as long as it has power, the device will watch for message 00, and if it sees one with the "Shallow Depth Alarm is active" flag set, it will output message 68 (or possibly 70 if that doesn't work). Rinse and repeat.)
Pete
The guru himself wasn't interested, which is of course his prerogative. However, while working on something else yesterday that needed the instrument power turned on, and being beeped at every twenty seconds, I decided I'd have a bash myself.
My previous attempts to program PICs the proper way have not gone well. I can crank out adequate rusty C to describe the behaviour I want, but I lack a lot of the assumed knowledge in dealing with the hardware.
However, just before Christmas I discovered the Picaxe system. It was developed for use in schools so is about my level
With this system I was able to knock up a basic but useful project in a couple of hours, and apart from a couple of syntax errors and tweaking some tone values to make nice-sounding beeps, it more or less worked first go. So, given that my needs are generally simple, I think this is what I'll stick with for now.
I just wondered whether anyone else had used Picaxe, and happened to have got it working with Seatalk? Standard serial would be easy, it's built-in, but the extra "command bit" in Seatalk complicates matters. If I can piggyback on someone else's work for that, it would be nice
(The actual behaviour will be pretty simple - as long as it has power, the device will watch for message 00, and if it sees one with the "Shallow Depth Alarm is active" flag set, it will output message 68 (or possibly 70 if that doesn't work). Rinse and repeat.)
Pete