I need some guidance from the forum please. Would it be better/easier to use esphome esp32 with a color sensor to measure the red/white ratio, or an esp32 cam to determine the guage reading?
I could not find a post where someone has tried this approach to measure this type of guage.
I have used ESP32cam as a colour sensor with MQTT connection for sensor data. The code may be able to read that gauge with some mods - but it’s covered by a NDA so can’t link it unfortunately.
The concept was based on some open source code - if you decide to try the ESP32cam I can see if I can find that.
Thank for all the replies.
Tank is on the generator, so vibration is an issue for ultrasonic.
Could not find a drop in electrical replacement sensor that fit.
I like the option to 3d print a cap with an electrical sensor. Also like the magnet and linear hall sensor.
I had started building a colour detection sensor using a row of red leds and a cool white light source.
Will feed back on how that worked out. If it does not work, I will try the magnet option next.
I have a similar gauge on my home hardware portable generator.
I used esp32 cam module to take a photo every 5 minutes and compare the percentage of white in the gauge window. Defines a region of interest (ROI) with number of pixels…100% white pixels = fuel empty, 0% white = fuel full.
Because it’s a photo it handles the genny vibration well. I added a couple of white LEDs to help the camera “see” in the dark enclosure.
The issue I am trying to solve next is that I don’t leave my genny outside so I am having issues with the ROI when I take out and put the genny back in - it is not 100% in the exact same spot.