Cruisers Forum
 


Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 25-04-2020, 19:11   #1
Registered User

Join Date: Apr 2020
Posts: 4
ESP8266 Fuel Sender Help

Currently have a SignalK/OpenCPN setup that I would like to connect my fuel senders to. The gauge is a Faria fuel gauge (12v) and the sender is a KUS SSL style fuel gauge with two wire (signal and ground). The big issue is I would like to also keep my old analog gauges active. From what I can tell the 12V from the gauge gets sent to the sender at 125mW and the analog gauge reads the resistance back. I have a resistance circuit built for a ESP8266 but I was wondering how I should connect it up to the existing analog circuit. I take it I have to somehow bring the voltage down from 12V to 3.3 on the signal line? How does that effect the resistance that is going to go to the analog unit?
Link to Sender https://kus-usa.com/wp-content/uploa...US_SSS-SSL.pdf

Thanks
Vijay
vijaysub is offline   Reply With Quote
Old 26-04-2020, 03:11   #2
Senior Cruiser
 
GordMay's Avatar

Cruisers Forum Supporter

Join Date: Mar 2003
Location: Thunder Bay, Ontario - 48-29N x 89-20W
Boat: (Cruiser Living On Dirt)
Posts: 49,849
Images: 241
Re: ESP8266 Fuel Sender Help

Greetings and welcome aboard the CF, Vijay.

Ask KUS?
1-(954) 463-1075
https://kus-usa.com/contact-us/
__________________
Gord May
"If you didn't have the time or money to do it right in the first place, when will you get the time/$ to fix it?"



GordMay is offline   Reply With Quote
Old 26-04-2020, 03:41   #3
cruiser

Join Date: Nov 2007
Location: Probably in an anchorage or a boatyard..
Boat: Ebbtide 33' steel cutter
Posts: 5,030
Re: ESP8266 Fuel Sender Help

If the gauge works on voltage drop then measuring the voltage with an esp8266 isn't too hard, though the built in ADV isn't that great, better off with something like an ADS1115 voltage sensor. A tidy way to go would be design a board with header sockets for the esp and a surface mount ADS1115 , JLCPCB do this quite cheap then you could add the resister network surface mount as well and have channels free to measure battery voltage as well. I got some with 2 voltage sensors and various other bits - code is very much work in progress but voltage, current and barometer work - available here if it's any use, in micropython >
https://github.com/boatybits/boatymonpy
Came out at £40 for 5 boards.
conachair is offline   Reply With Quote
Old 26-04-2020, 04:26   #4
Registered User

Join Date: Apr 2020
Posts: 4
Re: ESP8266 Fuel Sender Help

Thanks for the info.I actually have some of those laying around from a reef-pi fishtanks project I did a couple of months ago. Will I be able to run this in parallel with the original gauge? Thanks for the GitHub link that is amazing!
vijaysub is offline   Reply With Quote
Old 26-04-2020, 04:46   #5
cruiser

Join Date: Nov 2007
Location: Probably in an anchorage or a boatyard..
Boat: Ebbtide 33' steel cutter
Posts: 5,030
Re: ESP8266 Fuel Sender Help

Also, there was some code in openplotter to change the values into signalk in a previous version of openplotter, maybe a search on the openplotter forums might find something -
OpenMarine
conachair is offline   Reply With Quote
Old 26-04-2020, 04:58   #6
mrm
Registered User

Join Date: Feb 2011
Location: Poland, EU
Boat: crew on Bavaria 38 Cruiser
Posts: 654
Re: ESP8266 Fuel Sender Help

If I remember correctly, ESP8266 ADC input range is 0-1V.
What you want to measure is voltage going to analog gauge. I would follow these steps:
- measure voltage with the multimeter when tank is full;
- to be on the safe side, measure the same voltage with analog gauge disconnected, see if it is higher and what the difference is;
- while doing that you might measure resistance of the disconnected gauge, to know what load is seen by the sender in original setup;
- now simply connect a voltage divider between sender signal and ground, and use the output voltage as input to ESP (possibly with some voltage clamping diodes thrown in).


I would use a precision, 10 kOhm multi turn variable resistor (potentiometer) as a voltage divider. They are sealed, so perfect for the expected usage environment. Simply adjust with full tank, to get around 0.9V output. If input impedance of ESP will alter the reading once connected, simply readjust slightly.
Attached Thumbnails
Click image for larger version

Name:	voltageDivider.png
Views:	91
Size:	6.1 KB
ID:	213735  
mrm is offline   Reply With Quote
Old 26-04-2020, 17:38   #7
Registered User

Join Date: Apr 2020
Posts: 4
Re: ESP8266 Fuel Sender Help

Thanks everyone for the information. I'll build the circuit based on recommendations and further review of the the data sheets and let you know how it goes.

Vijay
vijaysub is offline   Reply With Quote
Old 26-04-2020, 18:23   #8
cruiser

Join Date: Nov 2007
Location: Probably in an anchorage or a boatyard..
Boat: Ebbtide 33' steel cutter
Posts: 5,030
Re: ESP8266 Fuel Sender Help

Quote:
Originally Posted by mrm View Post
If I remember correctly, ESP8266 ADC input range is 0-1V.
What you want to measure is voltage going to analog gauge. I would follow these steps:
- measure voltage with the multimeter when tank is full;
- to be on the safe side, measure the same voltage with analog gauge disconnected, see if it is higher and what the difference is;
- while doing that you might measure resistance of the disconnected gauge, to know what load is seen by the sender in original setup;
- now simply connect a voltage divider between sender signal and ground, and use the output voltage as input to ESP (possibly with some voltage clamping diodes thrown in).


I would use a precision, 10 kOhm multi turn variable resistor (potentiometer) as a voltage divider. They are sealed, so perfect for the expected usage environment. Simply adjust with full tank, to get around 0.9V output. If input impedance of ESP will alter the reading once connected, simply readjust slightly.
Though probably just as easy to fit an ADS1115 with a couple of resisters to drop the voltage, esp8266 ADC isn't great. The ADS can work in differential mode so no need to worry about any earth loop and have a couple of spare differential inputs to monitor battery voltage at the same time. Any calibration can be done in software in the ESP. Signalk/openplotter makes it easy to save to a database which is just great for monitoring.
conachair is offline   Reply With Quote
Old 28-04-2020, 19:05   #9
Registered User

Join Date: Apr 2020
Posts: 4
Re: ESP8266 Fuel Sender Help

Conachair,

Thanks for the link to your PCB and Micropython. I was able to write a quick sensor for the ADS1115 to get the resistance and voltages. I wasn't sure how to send it to signalK but I am using your example to learn how!

I am not a coder so muddling thru this at my own pace

Vijay
vijaysub is offline   Reply With Quote
Old 28-04-2020, 19:39   #10
Registered User

Join Date: May 2011
Location: Lake Ont
Posts: 8,561
Re: ESP8266 Fuel Sender Help

The A/D on an ESP8266 isn't terrible. I've been using it for battery voltage. It should be sufficient for fuel level, assuming enough swing between empty and full voltages. Especially if the OP's gauge is that KUS reed-switch type (limited number of steps!)

From datasheets, I believe that many A/D inputs want to be fed by a source of less than 10k resistance, so that has to be considered when designing the voltage divider. (mrm's divider circuit satisfies this requirement)
Lake-Effect is offline   Reply With Quote
Old 28-04-2020, 19:40   #11
cruiser

Join Date: Nov 2007
Location: Probably in an anchorage or a boatyard..
Boat: Ebbtide 33' steel cutter
Posts: 5,030
Re: ESP8266 Fuel Sender Help

Quote:
Originally Posted by vijaysub View Post
Conachair,

Thanks for the link to your PCB and Micropython. I was able to write a quick sensor for the ADS1115 to get the resistance and voltages. I wasn't sure how to send it to signalK but I am using your example to learn how!

I am not a coder so muddling thru this at my own pace

Vijay
Ask away! I'm not a programmer either, use the CNP language a lot - cut and paste! Though python I'm getting much fonder of as a few days later you might actually understand what you wrote
conachair is offline   Reply With Quote
Reply

Tags
fuel


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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Arduino ESP8266 stream wifi Capt.Don OpenCPN 20 27-12-2019 14:19
Fuel sender rbrb Marine Electronics 15 02-07-2016 05:19
General Info: Fuel Sender Ohms for Lagoon Hyprdrv Lagoon Catamarans 9 15-08-2011 05:52
One Fuel Sender, Two Gauges. Captin_Kirk Electrical: Batteries, Generators & Solar 2 31-03-2011 05:40
Wema Fuel Tank Sender Under-ring Chief Engineer Engines and Propulsion Systems 9 29-06-2009 17:24

Advertise Here


All times are GMT -7. The time now is 04:45.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.