AngusMcDoon
Well-Known Member
Yet Another Pointless Project...
OpenCPN can now show boat data on the side of its window if wanted, for example boatspeed and wind data. It calls the feature a dashboard and is shown here...
The data is read by OpenCPN in NMEA format on a standard serial port. This is ok if you have all your boat data in NMEA format, and a serial port available. But if, like me, your boat data is in Seatalk format and your laptop does not have a serial port, then you need some extra stuff. You could pay Raymarauder a fortune for a Seatalk to NMEA converter, and then pipe this through a RS-232 to USB converter, but it's a bit of bother. Instead - here's the latest YAPP...
This YAPP uses a cheap PIC processor (£4.50 18F4550) that has USB capability. Attached to it is a small amount of electronics to make the Seatalk bus readable...
This is then converted in the software on the chip to NMEA data format (but not electrical format). The software then works like one of those RS-232 to USB converters. When plugged in to a PC a standard COM port appears, and OpenCPN can be pointed to read its NMEA data from this. In geekspeak, the circuit and software implement a USB class 2 CDC device. The device can be seen as a new port...
A normal serial terminal can be used to see the raw data coming in...
The power for the circuit is taken from the Seatalk 12V line to minimize current draw from the PC's battery. In USB speak this is called self-powered, and the USB standard is quite strict about not supplying current to the USB power lines from a self-powered device. The circuit has to sense when it is connected to USB meet this requirement.
Once Seatalk data is read and parsed (same code as a previous YAPPs) it is simple to re-format it into NMEA and bung them out the USB. A small device .inf file needs to be created that is pointed to when first plugging the device in. Windows requests the driver in the normal way...
Of course, on a small boat, this is all pretty pointless, as I only have to stick my head round the companionway to see the instrument displays anyway.
Total cost of bits was about £6. Sauce code and schematic to anyone who's interested, although it will be 2 weeks before I am back on dry land with a proper internet connection before I can send it.
OpenCPN can now show boat data on the side of its window if wanted, for example boatspeed and wind data. It calls the feature a dashboard and is shown here...
The data is read by OpenCPN in NMEA format on a standard serial port. This is ok if you have all your boat data in NMEA format, and a serial port available. But if, like me, your boat data is in Seatalk format and your laptop does not have a serial port, then you need some extra stuff. You could pay Raymarauder a fortune for a Seatalk to NMEA converter, and then pipe this through a RS-232 to USB converter, but it's a bit of bother. Instead - here's the latest YAPP...
This YAPP uses a cheap PIC processor (£4.50 18F4550) that has USB capability. Attached to it is a small amount of electronics to make the Seatalk bus readable...
This is then converted in the software on the chip to NMEA data format (but not electrical format). The software then works like one of those RS-232 to USB converters. When plugged in to a PC a standard COM port appears, and OpenCPN can be pointed to read its NMEA data from this. In geekspeak, the circuit and software implement a USB class 2 CDC device. The device can be seen as a new port...
A normal serial terminal can be used to see the raw data coming in...
The power for the circuit is taken from the Seatalk 12V line to minimize current draw from the PC's battery. In USB speak this is called self-powered, and the USB standard is quite strict about not supplying current to the USB power lines from a self-powered device. The circuit has to sense when it is connected to USB meet this requirement.
Once Seatalk data is read and parsed (same code as a previous YAPPs) it is simple to re-format it into NMEA and bung them out the USB. A small device .inf file needs to be created that is pointed to when first plugging the device in. Windows requests the driver in the normal way...
Of course, on a small boat, this is all pretty pointless, as I only have to stick my head round the companionway to see the instrument displays anyway.
Total cost of bits was about £6. Sauce code and schematic to anyone who's interested, although it will be 2 weeks before I am back on dry land with a proper internet connection before I can send it.
Last edited: