SailNet is a forum community dedicated to Sailing enthusiasts. Come join the discussion about sailing, modifications, classifieds, troubleshooting, repairs, reviews, maintenance, and more!
So I recently ordered a Raspberry Pi and more associated small equipment to make myself a NMEA wireless bridge/repeater. The plan is to (based on a recent Panbo article) utilize a Win8.1 cheapo tablet to run OpenCPN. I've already run the instrumentation and had it all working on my laptop at the helm, and even had OpenCPN acting as a TCP server....so this is no challenge.
*HOWEVER*, this project got me thinking. My Yanmar 3ym30 has only the idiot lights for water temperature, voltage, and oil pressure. At various stages, I've thought about upgrading the Yanmar Panel ($1000+ all in), buying the Maretron N2k instrument andharness ($700 all in), and the cheapest option, splicing in to the existing wiring and putting in analogy instrument gauges.
Then, I thought, hey, I have the raspberry pi. Why not use an arduino board to tap this data this way!?
The trouble is, I'm not very well versed with arduino and instrumentation. However, if I'm willing and able to fund the hardware purchase(s), is there anyone that can guide me through the project? The best thread I've got is this as a reference: Boat Digital Guage Project - Arduino Forum
I figure I'd start with a simple question...so here goes:
Q1 - can someone tap into existing idiot light gauges (at the sender or at the panel) in order to splice the data? How does one interpret the values being returned by the sender gauges (assuming they return various voltages or resistances back to the idiot lights helmide).
I would think you would need new senders but that should not be expensive as you can use standard ones the idiot lights are controlled by sensors that trigger a signal a to a point not a continuous range. Put in t fittings to keep existing sensors.
Look like a fun project. I doubt you will save money. But will have fun.
I would think you would need new senders but that should not be expensive as you can use standard ones the idiot lights are controlled by sensors that trigger a signal a to a point not a continuous range. Put in t fittings to keep existing sensors.
Look like a fun project. I doubt you will save money. But will have fun.
Can you point to t-fittings that i can use for my senders? Im particularly interested in my oil pressure one?
I'm curious as to the need for new senders. The Maretron unit has a yanmar wiring harness that apparently ties directly into existing senders on my 3ym30 engine. So while they may be hooked up to idiot lights right now, it makes me think that if the Maretron is able to bridge them to NMEA 2000, I should be able to bridge them to plain ol NMEA....right?
Also, I think youre right about saving money, but this is a learning excercise too. Just for reference sake, the cheapest nmea wifi repeaters I've seen are upwards of $350. I'm less than $100 in for my diy one so far. That included the pi, a dc-dc step down/step up, a mini usb hub, a dc power brick to tap into the 12v supply...and misc bits and bots (case, cables). This commodity hardware stuff is amazing.
The Maretron units are pure N2k. Just saying that if Maretron is able to take analog senders from Yanmar and convert to a digital signal....we should be able to do the same.
Still not clear on what you are trying to do. An analog sensor to NMEA 0183 converter? Or an analog sensor to NMEA 2000 converter? If the later, how do you intend to obtain the NMEA 2000 protocol spec information?
1 - true sensors that aren't simple idiot lights/buzzer
2 - sensor should send the data not to the helm, but utilizing arduino to the raspberry pi
3 - raspberry pi should (via kplex) route data to boats wifi network.
This would allow me to use my Win81 tablet to see engine sensors data along with other instrumented data (wind, depth, ais) on a tablet.
nightOwl, you might want to read up on some of those systems and see what gearheads have traditionally done in cars.
A true "sender" for an idiot light may actually be a simple SWITCH. You can't convert that into a resistance-based sender, which typically changes resistance from roughly 0-240 ohms. So you need to find out what is on the engine and confirm what resistance range it is, or what range your replacement will be, and calibrate with it.
Extending or t-ing oil lines is also problematic. More lines, more fittings, and especially t's, tend to give you more oil leaks followed by total loss of oil pressure, a messy problem. That's why electric senders are considered the way to go, with no t's.
yes, you can kludge almost anything but you've got two distinct projects to sort out. One being the "simple" analog-to-digital conversion and display. The other being how to wire up sensors on an engine.
So, update on this project. Hit a stumbling block in the most unexpected place. Oddly enough, AIS when plugged into the Pi repeats over wifi...but *NOT* when directly plugged into my macbook (com issue???). Even stranger, nmea instruments plug into the macbook and display just fine...but WONT when I plug them into the pi. FRUSTRATING!
This picture shows AIS coming via wifi, but NMEA0183 still had to be plugged into the laptop.
Back to the engine instruments.
Yes, I agree..."teeing" into oil pressure seems risky. However how else would preserver the idiot light sender (already there) and then add the proper analog sender for true pressure readings?
Well - I think I figured out why the data isn't flowing for NMEA. Tore the whole aft cabin apart to get to the Raymarine NMEA interface box. After plugging the pi directly into the box (you should see the ghetto setup...Ryobi 18v battery, dc-dc converter, alligator clips, a zip tie), I was able to see NMEA data flowing to the Pi.
Apparently, the USB cable is too long for the Pi to power. I was afraid of this when I ordered my equipment because a marinized USB hub is $50....half the project cost! Was hoping to squeak by with a passive USB hub, but no dice.
So, another trip to Amazon and this project will be continued *NEXT* weekend. Now, back to my dayjob
*edit*
a pic of the ghetto temporary setup. Notice the amazon box housing the dc-dc converter and the 18v ryobi battery powerpack!
I've built some simple things out of Arduino. Looks like from a brief search the Raspberry Pi system doesn't have an on board A/D converter, but people have built them and there maybe some kits.
If you have analog sensors for things like oil pressure, I don't see why you couldn't design a high impedance interface that would just go in parallel across the sensor with whatever gauge you got to measure a voltage level without impacting the gauge. Then you could infer a resistance level and translate in code to an oil pressure for example.
I've never really dug into the NEMA stuff, so no help there.
Warning, every time I start messing with some hack like this, it's more work than originally planned Best of luck.
Your idea is intriguing. I'm concerned about "inferring" resistance levels though. I mean, where do I correlate the values to to determine true pressure without "teeing" in an analog gauage?
Pi is ARM chipset. I believe it *CAN* run OpenCPN, but you're going to have to modify it and recompile it. Even if it does run it, it'll be poor performance since the Pi is only a 700mhz chip (not really apples to apples to compare ARM w/x86). In fact, apparently, here is a youtube video and here is how to make it happen http://www.agurney.com/raspberry-pi/pi-chart
[strike]In my opinion, the Pi really isn't the right board for an ACTIVELY used boat computer. Its better as a lightweight, low power back-end server type device. [/strike]
[EDIT] I stand corrected! Per http://www.mouser.com/applications/open-source-hardware-galileo-pi/ the better board for media type "stuff" is the Pi vs the Galileo...which is based on NUC. THat being said, Intel NUC systems I've seen online are 1.8Ghz...so serious power.
If I were to be making an actively used front end boat computer, I think I'd use the INtel based chipset (non-arm). x86 so much more software available in packages already. Though, I think they consume around 27Watts full/6 watts idel which is much more than a Pi.
Almost all engines are either fitted with analog temp and oil pressure gauges , or have the fitments to easily add them, this includes adding turbo and gearbox oil pressure.
There is no need to have sperate senders for the electronics, you will need to buffer the existing analog senders with a high impedance instrumentation op-amp to avoid affecting the existing gauges. No big deal if you know what you are doing.
as to Pi or NUC, little real difference, You'll be running linux on both almost certainly, it boil down to preference.
To the OP -
Am considering this same project to write NMEA 2k sentences to garmin 740 at the helm - ancient Volvo MD7A and new gauges (analog) - I designed the panel to stub out for this eventual project, so I have the data readily available for collecting - interested to know which Arduino board you chose and why as well as any sketches you can share - PM me if you can...
Its designed around RasPi and has multiplexing for NMEA. If you dont want the charting and instrument interface you can at least poke around the source to see whats libararies are being used for NMEA input.
I prefer the Raspberry Pi.. It has a complete Unix type os with at least three different C-compilers. Windows os.. Connect to HDMI and Wireless keyboard/mouse (to reduce power from pi).. Then develop any software you want. Ethernet to router for complete access to web or...
There are numerous A/D implementations for Pi. They connect I2C or SPI.. 16 bit A/Ds much better that the Ardino 8 bit A/D.
I use a PI as a usb to Ethernet bridge to connect my router to a Mifi so my computers, tablets and phones are always connected..
Bryce
I have been toying with the idea of using a cubieboard 3 (cubietruck)
has reasonable proceesing power lots of i/o pins analog and digital as well as onboard pwm
for autopilot application
If you only look at specific messages on the CAN bus rather than implement the complete protocol.. The software would be quite simple.
Bryce
This is an older thread, you may not receive a response, and could be reviving an old thread. Please consider creating a new thread.
Related Threads
?
?
?
?
?
SailNet Community
1.7M posts
173.8K members
Since 1990
A forum community dedicated to Sailing, boating, cruising, racing & chartering. Come join the discussion about sailing, destinations, maintenance, repairs, navigation, electronics, classifieds and more