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:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sailor Hat with ESP32
#19
(2023-12-07, 02:45 PM)dwynalda Wrote: I am looking to do the same thing you seem to have done here but am admittedly a sensESP newbie.  I've done a few arduino monitoring projects in the past and I have managed to get sensESP working doing digital and analog input (the examples).  

My question is this.   How does the tankedge sensor work for you?   I want to tape one to my fresh water tank and then measure the water level in my boat tank using this.   What type of range did you get from the device?   I'm assuming since you feed it 12V and step it down with a divider (something I think I have the equipment to do), you're measuring the voltage it passes.  What type of voltage range did you find and how did it vary based on tank level?   

Before I go and buy a sensor I'd like to make sure this will do what I'd like it to do.  Eventually I'd like to feed this reading to SignalK so I can find my tank level from any browser...     

Also - have you considered/done this with a WASTE tank?   Is the resistance similar and does sludge that sticks to the tank sides affect the readings through the plastic tank?    

In the end I'm sick of climbing in my bilge to see if I have fresh water to make it through another day -- and waste levels low enough I'm not in danger of a mess...    I've got esp32 wrooms, I've connected them to signalK.   My questions are more about this specific sensor and it's integration and what range of voltage you got in your example.    (Plus, has it worked for two years now that you've got this installed?)

This worked well. You are correct that I fed the tankedge sensor 12 volt and got a reading through a voltage divider into SensESP. However, I got a digital value (0-1024), not a voltage. And I didn't bother converting it to anything else. The value was enough for the code to work. I just needed to read a "low" value and a "high" value. My low was something like "46" and my high was like "823." I plugged those two values into the code and SensESP did the rest, ultimately returning a ratio to the SignalK path tanks.blackwater.0.currentLevel.

I did this on my holding tank and it worked great. I could tell when sludge would "settle out" on the bottom. After a pump out, I wouldn't be at 0%, so I would know I needed to take extra steps to clean tank. Sure is nice to know when you are getting close to full. I used SignalK Zones to set up alarms letting me know when it was time to head over to the pump our, rather than wait for the Raritan sensor light to come on and shut off the toilet. 

Unfortunately, I sold that boat, but will be doing something similar to whatever next boat I get next year. I have the visual studio code on an old boat computer. I'll see if I can find it and I'll post it here.
Reply


Messages In This Thread
Sailor Hat with ESP32 - by mairas - 2021-03-29, 10:09 AM
RE: Sailor Hat with ESP32 - by Sailoog - 2021-03-29, 12:50 PM
RE: Sailor Hat with ESP32 - by mairas - 2021-03-29, 12:59 PM
RE: Sailor Hat with ESP32 - by Sailoog - 2021-03-29, 01:12 PM
RE: Sailor Hat with ESP32 - by mairas - 2021-04-01, 07:06 PM
RE: Sailor Hat with ESP32 - by SCarns - 2021-05-18, 03:35 AM
RE: Sailor Hat with ESP32 - by mairas - 2021-05-19, 07:37 AM
RE: Sailor Hat with ESP32 - by SCarns - 2021-05-19, 04:07 PM
RE: Sailor Hat with ESP32 - by SCarns - 2021-06-24, 09:00 PM
RE: Sailor Hat with ESP32 - by mairas - 2021-06-26, 12:08 PM
RE: Sailor Hat with ESP32 - by theseal - 2021-05-18, 11:40 AM
RE: Sailor Hat with ESP32 - by SCarns - 2021-06-26, 11:14 PM
RE: Sailor Hat with ESP32 - by mairas - 2021-06-28, 03:22 PM
RE: Sailor Hat with ESP32 - by SCarns - 2021-07-03, 05:47 PM
RE: Sailor Hat with ESP32 - by SCarns - 2021-07-21, 06:33 PM
RE: Sailor Hat with ESP32 - by mairas - 2021-07-23, 08:38 PM
RE: Sailor Hat with ESP32 - by SCarns - 2021-11-22, 12:18 PM
RE: Sailor Hat with ESP32 - by dwynalda - 2023-12-07, 02:45 PM
RE: Sailor Hat with ESP32 - by SCarns - 2023-12-08, 01:51 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)