DIY Marine Diesel Engine Monitoring using SensESP/ESP32 - part 1 - Après Sail -Tech E11

Поділитися
Вставка
  • Опубліковано 24 січ 2023
  • In this episode we set up a ESP32-E Firebeetle 2 to be able to monitor key data from my Yanmar 3GM30 (and applicable to any engine). The device will run a program based on SensESP from the Signal K team and interface with my Openplotter system on my boat Raspberry Pi. This system could be easily extended to be NMEA 2000 for integration into an existing NMEA 2000 marine electronics system.
    The data that the device will provide is as follows:
    • Oil Pressure - requires a pressure sender and a port on the engine to connect to.
    • RPM - requires a pulse from the spinning engine, this is usually the 'W' terminal or Tachometer Signal wire. This could also be done using a flywheel sensor or something similar
    • Fuel Burn Rate - this will be calculated from the RPM
    • Temperature Sensors - I am using 1-Wire sensors for the following:
    ○ Oil Temperature
    ○ Aft Cabin Temperature
    ○ Exhaust Elbow Temperature
    ○ Exhaust Barrel Temperature
    ○ Alternator Temperature
    • Environmental Sensor - this device will report Temperature, Relative Humidity and Air Pressure in the engine bay
    SV Après is a 1996 Hunter 336 Captained and Maintained by Jason and usually sailing out of Milwaukee's South Shore Yacht Club in Lake Michigan, one of the US's Great Lakes. The filming is done via GoPro's, DJI Mavic drone and iPhone and spliced together a bit hap hazardly.
    Please Like and Subscribe, and drop me a comment - I love to hear from people!
    Here are links to the products I used - most are Amazon affiliate links, which means I get a little commission and it cost you nothing
    • Firebeetle 2 ESP32-E - www.dfrobot.com/product-2231....
    • I/O Sheild for above - www.dfrobot.com/product-2395....
    • Buck converter - amzn.to/3rvaHif
    • Waveshare BME280 environmental sensor - amzn.to/3QGxQcd
    • 1-Wire Temperature sensors - amzn.to/3kkkZ3f
    • Optocoupler (RPM) - amzn.to/3GuPF7m
    The code can be found on Github at: github.com/Techstyleuk/senses...
    Here is a link to the SensESP documentation: signalk.org/SensESP/pages/get...
    And here is a link to the SensESP project template that you would need, before replacing the main.cpp and platform.io from my repository: github.com/SensESP/SensESP-pr...
    Thanks to @boatingwiththebaileys ( / boatingwiththebaileys ) and their Github page: github.com/Boatingwiththebail...
    the episode was filmed with 2 cameras and Snagit for screen shots.
    The two cameras were:
    • GoPro Hero 7 Black - amzn.to/3VlH6nZ
    • iPhone XR attached to a DJI OM 5 Smartphone Gimbal Stabilizer - amzn.to/3eqAy78
  • Розваги

КОМЕНТАРІ • 43

  • @gregs6626
    @gregs6626 6 місяців тому +2

    Super video. Very helpful. Would be interesting to put a temp. sensor on the stuffing box since that's a critical area. Keep up the good work! Greg from the Pacific Northwest USA.

    • @ApresSail
      @ApresSail  6 місяців тому

      That would be an easy addition to my setup, with 1-wire sensors being parallel connections. I would just need to add an extra Signal K address. I may do this!

  • @SSBN506
    @SSBN506 Рік тому +1

    Had no idea I could do this. I already have some of the parts thanks for informing me this was possible. Will do this on my 340.

    • @ApresSail
      @ApresSail  Рік тому

      Glad you found it useful! Let me know how you get on!

  • @martyb3783
    @martyb3783 11 місяців тому +1

    Very nice! I am looking at doing something similar to my boat Well Done!

  • @DidierVDA
    @DidierVDA 8 місяців тому +1

    Thanks a lot. I'm starting to do something similar for my MD22p. Didier

    • @ApresSail
      @ApresSail  8 місяців тому

      Great, glad this helped!

  • @dreupen
    @dreupen 8 місяців тому +3

    Thanks for the video. My only negative comment is with the audio voice much lower than the audio jumps to music which is way too high. I have to tune up the volume to hear the content only to freak out when the painfully high music jumps in. I'm no video expert, but only note this issue to make you aware.

    • @ApresSail
      @ApresSail  8 місяців тому +1

      Yes, sorry about that, I have been putting more focus on this on later videos

  • @SeamusWassman
    @SeamusWassman Рік тому

    I've got a Yanmar 3hM35f that I've been contemplating hooking up to my SignalK system, this video answered a bunch of questions. Would love to see it all hooked up to the Engine, and where to look for things like the oil pressure sender on yanmar engines.

    • @ApresSail
      @ApresSail  Рік тому +1

      I will send you a pic when I am home next, I just sailed on a friends boat from Fort Lauderdale to Bimini. The footage I need is at home.

  • @RonQuire
    @RonQuire Рік тому

    Excellent. Thanks for the inspiration. Any thoughts about a wind sensor?

    • @ApresSail
      @ApresSail  11 місяців тому +1

      I haven't had to make a wind sensor, my boat came with some older Raymarine stuff that provides wind data for me, but I think there are a few Open Source options, take a look at open-boat-projects.org/en/universelle-windsensor-firmware/ Let me know how you get on, I would be interested to build one, just for the experience and to film the process!

  • @jthompsoniii
    @jthompsoniii Рік тому +2

    I recently purchased SV Reflections (1985 Bayfield-29) with the original Yanmar 2GM. This engine monitoring project is EXACTLY what I looking for! Thank you for sharing and I'll let you know how it goes. ... Have you seen an Arduino or RPi solution for wind speed AND wind direction? (P.S. I am an electronics nube :) )

    • @ApresSail
      @ApresSail  Рік тому

      No problem, looking forward to see how your project goes! for the wind sensor, there are a couple of Open Source devices out there that you may be able to build, I haven't tried any of them though, go to this page and scroll down to sensors: open-boat-projects.org/en/

  • @michaelberkemer1796
    @michaelberkemer1796 10 місяців тому +1

    Ho, great project, thanks for sharing. Question: can ypu please send a link for that little project enclosure box? ..its very nice with the clips and transparent cover.

    • @ApresSail
      @ApresSail  9 місяців тому

      Here is a link, but I am not sure the same size is still available, I used the 5.9 x 3.9 x 2.8inch one: amzn.to/3t87Y1i

  • @BoatingwiththeBaileys
    @BoatingwiththeBaileys Рік тому

    Thanks for the shoutout and the link. I really like the breakout board and the oil pressure sensor. Have you had to tee off to attach this? Also be interested to see if the RPM sensor can record maximum rpm.

    • @ApresSail
      @ApresSail  Рік тому

      No problem, I probably wouldn't have started the project if I hadn't seen your video and reviewed your code. The pressure sensor is very similar to the temp sensor you are using, a voltage divider circuit - I just pull 3.3v and the analogue sense pin from the ESP and then have the resistor on the breakout board. I think it will be a little while before I can test the RPM - the boat is on the hard until May. I did see that KIP did not drop the RPM to zero once I stopped simulating pulses so I may have to add some code to set zero if no pulses are detected - I think now it just does not report if their are no counts. Do you see that also?

    • @BoatingwiththeBaileys
      @BoatingwiththeBaileys Рік тому +1

      @@ApresSail I had to think about this but yes my last value would be one at tickover, same with the temperatures and the runtime which is useful to record in the log. Is the oil pressure new or existing? Also do let us know about the RPM and if it does it a maximum.

    • @ApresSail
      @ApresSail  Рік тому

      @BoatingwiththeBaileys - in your case does the power to the ESP32 go off when the engine/ignition goes off? in that case you may have to set something up in SignalK to get it back to zero. if not, you can probably have an if statement that says if no signal in 1 sec then send rpm=0. something like that. I will see about the RPM, but that will be in May when back in the water.

  • @Coyotehello
    @Coyotehello Рік тому +1

    Great video as usual, if I had one small constructive criticism it would be that the "ambient music" is so loud compared to your voice I jump and have to mute it every time.
    I just ordered an Orange Pi 5 (due to Rpi4 shortage) and hope to jump on this project asap.
    Would consider all this navigation etc equipment on the Pi and on the boat as "reliable equipment" or just a "fun project"?
    Cheers.

    • @ApresSail
      @ApresSail  Рік тому +1

      Sorry about the volume, I will look into it and correct for the future, thanks for pointing that out.
      With regard to "reliability" vs "fun project", I think you have to ask yourself - what electronics do you need to get to the safety/risk threshold that you are willing to live with? For instance, Are you willing to take a risk that your chart plotter could fail and what can I do to mitigate the risk? In my case I use the pi system but carry a spare SD card, have two GPS sources (USB GPS and Maiana) and if all fails, I have an old GPSmap2010 that is the absolute backup. I have on the boat a set of Raymarine instruments for Depth, Speed through water and wind. These are integrated into the system, but will work independently if I needed to cut them out. I have never had a failure that I couldn't fix on the spot. If you asked, would I swap out my power panel for controlled by relays connected to the pi, I would probably say not now, unless there was a manual override (oops, that may be a future video....)

    • @Coyotehello
      @Coyotehello Рік тому

      @@ApresSail I very much like your answer. Very close to what I tell my clients: It depends on you tolerance to risk and your back-up.
      We are pretty much old school with our 1990s vintage instrument and a Garming portable G78 and a newer Icom 93 portable VHF. But DO like the idea of having something more elaborate at the nav station and collecting all that data.! LOL
      HAha, glad I gave you an idea for another great video.
      BTW I have the same issue when I post a video regarding balancing the volumes, wish there was some kind of equalizer that would all balance that volume to say 75db! L

  • @lazzarae
    @lazzarae Рік тому +1

    G'day, I'm in the process of setting up this. What resistor do you use in the oil pressure circuit on the yellow wire going to the GND for setting up??

    • @ApresSail
      @ApresSail  Рік тому

      I use a 47ohm resistor with my 10-184ohm sender, with my 3.3v supply voltage, this would give me 0.58v at 10ohms and 2.63v at 184ohms. This gives me good resolution. If you have a different resistance sender you can use a simple calc (there are online calcs) to size the correct resistor you need and maximize the range.

    • @lazzarae
      @lazzarae Рік тому +1

      @@ApresSail Thanks for that, I'll give it a go soon.

  • @Peterix11
    @Peterix11 Місяць тому +1

    Hi, I'm looking for a way to have the RPM in signalk to calculate diesel consumption. This is perfect but I don't understand the need to have the diode and the resistance, if I can put a optocoupler with 12v input and 5v or 3.3v output means I can use the output directly? (Im really noob in electronics) thanks.

    • @ApresSail
      @ApresSail  Місяць тому +1

      the Alternator signal is usually pretty noisy, and the resistor is used to reduce the current flow and the zener diode is used to create a flat to produce a square(ish) wave that can be used to count pulses.

    • @Peterix11
      @Peterix11 Місяць тому

      @@ApresSail Understood, thanks, about the limitation of current I was thinking to put it in serial but your schema is better.

  • @gordansket
    @gordansket 11 місяців тому

    On the RPM schematic, you mention that the resistor is either 4.7k or 10k. How did you define the actual value?

    • @ApresSail
      @ApresSail  10 місяців тому

      Really, it was a little bit of trial and error. you want to get a signal that is usable. if the resistor is too small you the voltage will be higher and may not provide a suitable signal.

  • @ipsc_crab2856
    @ipsc_crab2856 6 місяців тому +1

    Hi there, great channel, love the content. I have been struggling a bit to get my esp32's configure correctly to talk to my signalK server and was wondering if you have any advice. Ive got the esp32's requesting access to the signalK server which is great. But the code on the ESP32 is lacking I think and the documentation is very vague on the sensesp site. I am trying to put some sensors into my boat and a couple of them I am using a esp32. I haven't been able to locate a complete/ relevant guide to do what I need to do, some get me half the way there but not quite.
    I have signalK running on a raspi and 3 dallas 1 wire temp sensors are connected to the gpio on the raspberry pi and work great, gps on the pi works great.
    My code I have used a template, but had to comment a lot of things out that are not connected. I have connected a dallas 1 wire to the esp32 but am yet to get its path through to signalk - pretty sure its my code.
    My main things I want to do with the 2 esp 32's is :
    #1 4 temp sensors
    #2 Rudder angle indicator, I have the KUS dual station angle sensor that produces a resistance value of 0-180
    Ive tried using some other templates but they often contain a code for sensors I dont have and cant seem to get any data paths to show up on the signalk server from the esp32.
    Thanks

    • @ApresSail
      @ApresSail  6 місяців тому +1

      Send me your code: platformio.ini and main.cpp and your schematic and I will take a look for you.
      Do you get values for your temps in the Sensesp web app?

    • @ipsc_crab2856
      @ipsc_crab2856 6 місяців тому

      @@ApresSail in the web app - I can only still see the same options as the initial config. no sensor options are available. Shall I share the code etc here or is there somewhere better to send it ?

    • @ApresSail
      @ApresSail  6 місяців тому

      @@ipsc_crab2856 you can send them to sv.apres@gmail.com. In the webapp you should see the values for all the sensors that are available, let me check the code.

  • @OlaHesselroth
    @OlaHesselroth 9 місяців тому

    Hi, how do connect to engine sensors? I have read that using existing sensors can mess up existing gauges for pressure and temperature. So do you connect the esp32 to the same sensors as the analogue gauges uses and still use these analogue gauges or do you install additional engine sensors for esp32? If using the existing sensors, don't that messing up the ohms to eg the pressure gauge?

    • @ApresSail
      @ApresSail  9 місяців тому +1

      My boat only came with a pressure switch, not sender/sensor - so I added a pressure sender/sensor. Temperature sensor was also added by a 1-wire sensor. if you add a circuit like I have, you will change the analogue output. Your options are to find another port to add an additional sensor, or you could investigate using a voltage sensor (that doesn't consume) and checking the voltage before and after the gauge then calculating the resistance of the sensor from that, you need to know the resistance of the gauge, but you can measure that.

    • @OlaHesselroth
      @OlaHesselroth 9 місяців тому

      @@ApresSail thanks for the answer. Then I have see if I can add additional sensors where they use resistance to messure.

  • @Johnny-ro5kq
    @Johnny-ro5kq Рік тому

    "promosm" 💔