lifting keel sensor, how to integrate ? - Printable Version +- OpenMarine (https://forum.openmarine.net) +-- Forum: OpenPlotter (https://forum.openmarine.net/forumdisplay.php?fid=1) +--- Forum: How do I...? (https://forum.openmarine.net/forumdisplay.php?fid=3) +--- Thread: lifting keel sensor, how to integrate ? (/showthread.php?tid=225) |
lifting keel sensor, how to integrate ? - gniersma - 2016-11-20 Hi, I have a boat with a lifting keel. I know it is not that common. But i would like to make a sensor which tells me the position of the lifting keel. So I've found a sensor which measures distance. This sensor has an I2C interface. And there is an C arduino library available, which arrange calibration, measuring etc. On the end I would like to have a signal K format signal, which can be displayed. Code: /vessels/<RegExp>/design/keel/lift related to this is of course Code: Description: Depth related data I now come to the implementation part and have several possibilities;
c. via NMEA 0183 (Private) messages between (sensor/arduino) and OP/PI 3. ?? I'm sailor and not an experienced programmer .. Any suggestions are welcome G. RE: lifting keel sensor, how to integrate ? - PaddyB - 2016-11-21 (2016-11-20, 02:00 PM)gniersma Wrote: Hi, I might be worth looking at node red, already installed in raspian, just type "node-red" in a terminal to check it out, very powerful. It has an i2c input so it may be a way to get the data and format a signalk message then send it out to openplotter. https://www.npmjs.com/package/node-red-contrib-i2c RE: lifting keel sensor, how to integrate ? - gniersma - 2016-12-07 thx Paddy, Managed to get this working via node-red. Signalpath: Sensor (I2C or SPI)--> arduino --> USB(serial) --> Openplotter PI --> Serial interface node-red Point now is that in the real practice the sensor has to be installed outside, harsh environment, seawater. So USB is not the correct way i think. ESP8266(wifi) is not reliable on an aluminium boat. So thinking of RS485. N2k looks to complex to me G. |