Your channel is awesome. One request I would like to make is for reading RPM of the main engine. I tried some circuits I found online, trying to read from the W signal of the alternator with no luck... Cheers
@@SVRockChalk Im my latest video about Bilge Pumps I have a tips and tricks chapter for esp32 amd esphome. Watch that and especially the part about removing non essential yaml.
Thank You for some very impressive work. Very helpful information. I'm hoping to get some feedback regarding the oil pressure sensor you are using. You talk about hooking the INA219 IN+ terminal up to a wire marked "gauge". You also mention additional wires for a warning light and isolated earth terminal. My diesel generator oil sensor has one terminal and is nothing more than a variable resistor connected to engine ground. I'm very new to this but I'm thinking your sensor puts out voltage while mine does not. Is there a way I can make my sensor work and also not impact the operation of its analog gauge? Is there a schematic I can refer to?
Thanks. The oil sensor in my video, and nearly all ones on the market, are based on resistence. Yours also sounds like a single terminal resistence based sensor. The single wire from the ina219 will also be connected to this sensor along with your existing connection. There is a schematic diagram in the video. As the sensor resistence changes with varying pressure we will measure the different resulting voltage. For best results use the engine ground as the negative to the esp32. This ensures that that the voltage reading is accurate. Let me know how you get on.
Appreciate the feedback. I followed your instructions and I now have things working. What I didn't realize is that the generator's sender and gauge had to be fully hooked up and supplied voltage in order for the INA219 to get a reading. The even better news is that the INA219 sensor being connected to the generator's sender does not change the existing gauge reading. Outstanding!
Great to hear you got it working. Yes the INA219 is not very obtrusive when it reads voltages this way. In theory it might change the reading very slightly but in practice it is impossible to view this minor change via a manual gauge. @@user-et4oe7pv9z
Thanks. I am glad you are enjoying it. I am planning on developing a custom integration to take data from SignalK into the SmartBoat Home Assistant, but in the other direction I'm not quite sure what SignalK could do with information from the SmartBoat Home Assistant.
The setup I have shown works for sensors that work on resistance. And because of OHMs law we can then measure the voltage to determine the reading. Most sensors are in the range 10 - 184 Ohm.
I'm trying this project using a new oil pressure sensor that has 3 wires (red black yellow). I believe this sensor (5V) is quite common on aliexpress, etc and the output is voltage. Any suggestions for how to connect this type of sensor?
The method I show in this video is for a sensor that is also connected to an analogue gauge. This analogue gauge supplies voltage and has a voltage divider circuit. If your sensor has 3 wires then I presume red is +5ve, black is -ve and the yellow would be a signal that corresponds to a variable voltage depending on the pressure. Try connecting the yellow wire to the INA219 VIN+ like I have in the video. You then need to supply +5v and ground as well tonthe sensor. If my assumption is correct the yellow wire voltage will be a range from 0v to 5v depending on the pressure. The Aliexpress product page should have a calibtation chart that matches voltage to psi or bar. You then use this info on the yaml configuration I provided.
Absolutely, this setup will work with your oil sensor. It's quite common for oil pressure sensors, like yours, to operate based on changes in resistance in response to varying oil pressures. In the video, we use the ESP32 and INA219 module to measure the voltage derived from this resistance change. This allows us to accurately calculate the oil pressure. This approach is effective for sensors that function on resistance changes, ensuring that you can reliably monitor your oil pressure using the method described. I hope this helps you in your DIY project!
Has anyone gotten this to work for them? Mine doesn't see the INA219 (tried three different boards and checked wiring a hundred times) [16:45:30][I][i2c.arduino:096]: Results from i2c bus scan: [16:45:30][I][i2c.arduino:098]: Found no i2c devices!
Yes many have. It is also used for the digital gauges. Not sure what is going wrong. Set the logger level to DEBUG in esphome. This might show you the problem. And make sure you have the i2c part in the yaml with the correct GPI pins. If it still does not work send me a email with pics of your wiring, yaml and debug logs. In the debug logs you should see the i2c connection with the esp32.
Very nice and helpful video, Rob. Thank you for sharing your knowledge. Looking forward to the next one. :)
Thanks a lot, Yannis! I'm glad you found it helpful. Your feedback encourages me to share more. Stay tuned for the next video! 😊
Your channel is awesome. One request I would like to make is for reading RPM of the main engine. I tried some circuits I found online, trying to read from the W signal of the alternator with no luck... Cheers
Thanks! I am hoping to make a RPM video next.
I now have a Tachometer video. Works great.
ruclips.net/video/-xflWB3R2Go/видео.html
Had to start over, long story, lol. But upload to ESP32 via WiFi and get error code 104 any wear from 24% to 63%.
@@SVRockChalk Im my latest video about Bilge Pumps I have a tips and tricks chapter for esp32 amd esphome. Watch that and especially the part about removing non essential yaml.
Thank You for some very impressive work. Very helpful information. I'm hoping to get some feedback regarding the oil pressure sensor you are using. You talk about hooking the INA219 IN+ terminal up to a wire marked "gauge". You also mention additional wires for a warning light and isolated earth terminal. My diesel generator oil sensor has one terminal and is nothing more than a variable resistor connected to engine ground. I'm very new to this but I'm thinking your sensor puts out voltage while mine does not. Is there a way I can make my sensor work and also not impact the operation of its analog gauge? Is there a schematic I can refer to?
Thanks. The oil sensor in my video, and nearly all ones on the market, are based on resistence. Yours also sounds like a single terminal resistence based sensor. The single wire from the ina219 will also be connected to this sensor along with your existing connection. There is a schematic diagram in the video. As the sensor resistence changes with varying pressure we will measure the different resulting voltage. For best results use the engine ground as the negative to the esp32. This ensures that that the voltage reading is accurate. Let me know how you get on.
Appreciate the feedback. I followed your instructions and I now have things working. What I didn't realize is that the generator's sender and gauge had to be fully hooked up and supplied voltage in order for the INA219 to get a reading. The even better news is that the INA219 sensor being connected to the generator's sender does not change the existing gauge reading. Outstanding!
Great to hear you got it working. Yes the INA219 is not very obtrusive when it reads voltages this way. In theory it might change the reading very slightly but in practice it is impossible to view this minor change via a manual gauge. @@user-et4oe7pv9z
Thanks for sharing your knowledge. It's a very interesting project. Are you considering sending the data to signalk server?
Thanks. I am glad you are enjoying it. I am planning on developing a custom integration to take data from SignalK into the SmartBoat Home Assistant, but in the other direction I'm not quite sure what SignalK could do with information from the SmartBoat Home Assistant.
is this with a DS18B20 based temp sensor ?
This video uses the DS18B20...
ruclips.net/video/hfo4Pd6KxlE/видео.html
Will this work if you are reading resistance or oms will this work if you are reading resistance or ohms?
The setup I have shown works for sensors that work on resistance. And because of OHMs law we can then measure the voltage to determine the reading. Most sensors are in the range 10 - 184 Ohm.
I'm trying this project using a new oil pressure sensor that has 3 wires (red black yellow). I believe this sensor (5V) is quite common on aliexpress, etc and the output is voltage. Any suggestions for how to connect this type of sensor?
The method I show in this video is for a sensor that is also connected to an analogue gauge. This analogue gauge supplies voltage and has a voltage divider circuit. If your sensor has 3 wires then I presume red is +5ve, black is -ve and the yellow would be a signal that corresponds to a variable voltage depending on the pressure. Try connecting the yellow wire to the INA219 VIN+ like I have in the video. You then need to supply +5v and ground as well tonthe sensor. If my assumption is correct the yellow wire voltage will be a range from 0v to 5v depending on the pressure. The Aliexpress product page should have a calibtation chart that matches voltage to psi or bar. You then use this info on the yaml configuration I provided.
@@SmartBoatInnovations Thanks so much. That all makes sense and I will give it a try.
I know that my Oil sensor is monitored via resistance. Will this still work?
Absolutely, this setup will work with your oil sensor. It's quite common for oil pressure sensors, like yours, to operate based on changes in resistance in response to varying oil pressures. In the video, we use the ESP32 and INA219 module to measure the voltage derived from this resistance change. This allows us to accurately calculate the oil pressure. This approach is effective for sensors that function on resistance changes, ensuring that you can reliably monitor your oil pressure using the method described. I hope this helps you in your DIY project!
Has anyone gotten this to work for them? Mine doesn't see the INA219 (tried three different boards and checked wiring a hundred times)
[16:45:30][I][i2c.arduino:096]: Results from i2c bus scan:
[16:45:30][I][i2c.arduino:098]: Found no i2c devices!
Yes many have. It is also used for the digital gauges. Not sure what is going wrong. Set the logger level to DEBUG in esphome. This might show you the problem. And make sure you have the i2c part in the yaml with the correct GPI pins. If it still does not work send me a email with pics of your wiring, yaml and debug logs. In the debug logs you should see the i2c connection with the esp32.
@@SmartBoatInnovations Thank you, I will keep trying.