Arduino / Raspberry Pi based instrumentation? - Page 2 - SailNet Community

   Search Sailnet:

 forums  store  


Quick Menu
Forums           
Articles          
Galleries        
Boat Reviews  
Classifieds     
Search SailNet 
Boat Search (new)

Shop the
SailNet Store
Anchor Locker
Boatbuilding & Repair
Charts
Clothing
Electrical
Electronics
Engine
Hatches and Portlights
Interior And Galley
Maintenance
Marine Electronics
Navigation
Other Items
Plumbing and Pumps
Rigging
Safety
Sailing Hardware
Trailer & Watersports
Clearance Items

Advertise Here






Go Back   SailNet Community > On Board > Gear & Maintenance > Electronics
 Not a Member? 


Like Tree1Likes
Reply
 
LinkBack Thread Tools
  #11  
Old 2 Weeks Ago
WoobaGooba's Avatar
Member
 
Join Date: Oct 2012
Posts: 83
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 2
WoobaGooba is on a distinguished road
Re: Arduino / Raspberry Pi based instrumentation?

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?
Reply With Quote Share with Facebook
  #12  
Old 2 Weeks Ago
hellosailor's Avatar
Plausible Deniability
 
Join Date: Apr 2006
Posts: 10,415
Thanks: 1
Thanked 74 Times in 72 Posts
Rep Power: 10
hellosailor has a spectacular aura about hellosailor has a spectacular aura about
Re: Arduino / Raspberry Pi based instrumentation?

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.
night0wl likes this.
Reply With Quote Share with Facebook
  #13  
Old 2 Weeks Ago
night0wl's Avatar
Senior Member
 
Join Date: Mar 2006
Location: Fort Lauderdale
Posts: 1,397
Thanks: 0
Thanked 15 Times in 15 Posts
Rep Power: 9
night0wl is on a distinguished road
Re: Arduino / Raspberry Pi based instrumentation?

Quote:
Originally Posted by WoobaGooba View Post
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?
Here are my goals.

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.
__________________
S/V Jendai
Beneteau 343
Reply With Quote Share with Facebook
  #14  
Old 2 Weeks Ago
night0wl's Avatar
Senior Member
 
Join Date: Mar 2006
Location: Fort Lauderdale
Posts: 1,397
Thanks: 0
Thanked 15 Times in 15 Posts
Rep Power: 9
night0wl is on a distinguished road
Re: Arduino / Raspberry Pi based instrumentation?

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?
__________________
S/V Jendai
Beneteau 343
Reply With Quote Share with Facebook
  #15  
Old 2 Weeks Ago
night0wl's Avatar
Senior Member
 
Join Date: Mar 2006
Location: Fort Lauderdale
Posts: 1,397
Thanks: 0
Thanked 15 Times in 15 Posts
Rep Power: 9
night0wl is on a distinguished road
Re: Arduino / Raspberry Pi based instrumentation?

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!

__________________
S/V Jendai
Beneteau 343

Last edited by night0wl; 2 Weeks Ago at 10:06 PM.
Reply With Quote Share with Facebook
  #16  
Old 2 Weeks Ago
Alex W's Avatar
always busy with sailing
 
Join Date: Oct 2012
Location: Seattle, WA
Posts: 2,067
Thanks: 2
Thanked 120 Times in 115 Posts
Rep Power: 2
Alex W is on a distinguished road
Re: Arduino / Raspberry Pi based instrumentation?

There are a lot of DC to DC power supplies available for under $10. I'm using this one for my Netduino-based wind instrument:
Amazon.com: Retailstore 2PCS LM2596 Buck DC-DC Adjustable Step Down Power Supply Module Converter New: Computers & Accessories Amazon.com: Retailstore 2PCS LM2596 Buck DC-DC Adjustable Step Down Power Supply Module Converter New: Computers & Accessories



It works for me, but there are tons of other options to select from as well.
__________________
boats that I sail on regularly: Pearson 28-2, Rondar 505, Yankee 30, Blanchard Junior
Seattle, WA
Reply With Quote Share with Facebook
  #17  
Old 2 Weeks Ago
night0wl's Avatar
Senior Member
 
Join Date: Mar 2006
Location: Fort Lauderdale
Posts: 1,397
Thanks: 0
Thanked 15 Times in 15 Posts
Rep Power: 9
night0wl is on a distinguished road
Re: Arduino / Raspberry Pi based instrumentation?

Quote:
Originally Posted by Alex W View Post
There are a lot of DC to DC power supplies available for under $10. I'm using this one for my Netduino-based wind instrument:
Amazon.com: Retailstore 2PCS LM2596 Buck DC-DC Adjustable Step Down Power Supply Module Converter New: Computers & Accessories

It works for me, but there are tons of other options to select from as well.
Yep, I considered this one, but chose
Amazon.com: DC-DC Converter Module Step up and down In 3.5-28V Out 1.25-26V Adjustable (LM2596S+LM2577S): Car Electronics Amazon.com: DC-DC Converter Module Step up and down In 3.5-28V Out 1.25-26V Adjustable (LM2596S+LM2577S): Car Electronics


. Simply put, I wanted the input voltage to always be 12v. Sometimes boat batteries can drop below that due to discharge, so I wanted the ability of the Pi to keep running. Those step downs wont work in that situation.
__________________
S/V Jendai
Beneteau 343
Reply With Quote Share with Facebook
  #18  
Old 2 Weeks Ago
Senior Member
 
Join Date: Oct 2009
Location: Cape Cod
Posts: 512
Thanks: 4
Thanked 18 Times in 18 Posts
Rep Power: 5
capecodda is on a distinguished road
Re: Arduino / Raspberry Pi based instrumentation?

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.
Reply With Quote Share with Facebook
  #19  
Old 1 Week Ago
Alex W's Avatar
always busy with sailing
 
Join Date: Oct 2012
Location: Seattle, WA
Posts: 2,067
Thanks: 2
Thanked 120 Times in 115 Posts
Rep Power: 2
Alex W is on a distinguished road
Re: Arduino / Raspberry Pi based instrumentation?

Quote:
Originally Posted by night0wl View Post
Simply put, I wanted the input voltage to always be 12v. Sometimes boat batteries can drop below that due to discharge, so I wanted the ability of the Pi to keep running. Those step downs wont work in that situation.
I thought that the Pi could run on 5V, but didn't look closely at it. My Netduino wants 7-10V ideally, so a step-down only power supply was more than adequate.
__________________
boats that I sail on regularly: Pearson 28-2, Rondar 505, Yankee 30, Blanchard Junior
Seattle, WA
Reply With Quote Share with Facebook
  #20  
Old 1 Week Ago
night0wl's Avatar
Senior Member
 
Join Date: Mar 2006
Location: Fort Lauderdale
Posts: 1,397
Thanks: 0
Thanked 15 Times in 15 Posts
Rep Power: 9
night0wl is on a distinguished road
Re: Arduino / Raspberry Pi based instrumentation?

Quote:
Originally Posted by Alex W View Post
I thought that the Pi could run on 5V, but didn't look closely at it. My Netduino wants 7-10V ideally, so a step-down only power supply was more than adequate.
You know you're right. But I dont have the pi hardwired. It goes through a 12v -5v brick...or through a usb hub which takes in 12v. Just wanted the 12v to be steady.
__________________
S/V Jendai
Beneteau 343
Reply With Quote Share with Facebook
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

 
Posting Rules
You may post new threads
You may post replies
You may post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On


Similar Threads
Thread Thread Starter Forum Replies Last Post
ipad as instrumentation... blutoyz Electronics 40 02-10-2014 12:07 AM
Raspberry Pi Storm Warning nsweeting General Discussion (sailing related) 10 12-17-2012 04:57 PM
ST 60 instrumentation mounting brokesailor Gear & Maintenance 17 08-07-2011 07:18 AM
Datamarine Instrumentation Retracs Electronics 2 09-04-2010 07:22 AM
Racing instrumentation advice? mcagney Gear & Maintenance 1 06-22-2005 04:21 PM


All times are GMT -4. The time now is 04:01 AM.

Add to My Yahoo!         
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.1
(c) Marine.com LLC 2000-2012