This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Speed-Data directly from Sensor
#3
Hi gypsylon,

Yes, you can read seatalk 9-bit with the arduino mega. That works, but than you have to write a sketch to transform it to nmea. I have none, so you have to write your own.

You idea of reading the pulses of the speed sensor directly with the raspberry pi might work. But as you noticed, you will need optoisolation and - again - some piece of script that translates it into nmea. Here too, I have no such script and you have to develop you own.

So - the easiest way is to rrad the pulses of the speed sensor with an arduino and use the sketch of Mike Holden (see link above) to translate them to nmea.
No hassle with optoisolation and a ready to use piece of software.
For reducing the 12V of the sensor to readable 3.3-5.2V your pull down resistor should work.

If you run into any probs, just send me a pm. Should be easy to copy my running solution to your environment.....
_____
OP on Raspberry Pi 3+
OpenCPN tactics plugin compiled on raspbian
Step up/step down power converter
AIS and GPS over USB / Serial2USB
Speed data converted directly from Sensor to NMEA by arduino
Wind data: Davis anemometer using Pypilots weather sensor
Pypilot driving Simrad TP22 Tillerpilot

Reply


Messages In This Thread
RE: Speed-Data directly from Sensor - by CVL - 2019-01-20, 11:08 AM
RE: Speed-Data directly from Sensor - by michael.trilling@gmail.com - 2019-01-06, 05:49 PM
RE: Speed-Data directly from Sensor - by abarrow - 2019-01-07, 03:03 PM
RE: Speed-Data directly from Sensor - by abarrow - 2019-01-20, 03:42 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)