DIY Battery Monitor using SensESP/ESP32 for Openplotter, SignalK & NMEA2000 - Tech E12 - Après Sail

Поделиться
HTML-код
  • Опубликовано: 7 сен 2024
  • When I was putting together the DIY Engine Monitor, Captain Phil from Nautical Sun said "when are you going to make us both battery monitors?" So in this episode we set up a ESP32-E Firebeetle 2 to be able to provide voltage, current flow (draw or charge) and temperature monitoring for my 3 batteries - House 1, House 2 and Start. 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. In addition, Captain Phil doesn't have a Signal K system on board so we will be providing a NMEA 2000 output where he will be able to see it on his Raymarine Axiom MFD.
    The data that the device will provide is as follows:
    • For Each Battery
    ○ Voltage
    ○ Current Draw (+) or charge (-)
    ○ Battery Temperature
    ○ State of charge
    ○ Manually inputted data for NMEA2000 battery identification (Battery Chemistry, Battery capacity, etc)
    The device will output the following sentences, for each battery (if Implemented):
    • PGN 127506 - DC Detailed Status
    • PGN 127508 - Battery Status
    • PGN 127513 - Battery Configuration Status
    Unfortunately, I didn't get chance to finish the NMEA2000 execution, but that will be included in the next video
    The Presentation used in the video can be found here: docs.google.co...
    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.
    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.co...
    • Buck converter - amzn.to/3Z54veM
    • INA219 Current sensor boards - amzn.to/3EIlT1d
    • Waveshare CAN board - amzn.to/3Kud8ew
    • 1-Wire Temperature sensors - amzn.to/3kkkZ3f
    • Ceramic Capacitors - amzn.to/3KjGs7s
    • Resistors - amzn.to/3IdH7VA
    • 500µohm Shunt - www.newark.com...
    The code can be found on Github at: github.com/Tec...
    Here is a link to the SensESP documentation: signalk.org/Se...
    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/Sen...
    Please Like and Subscribe, and drop me a comment - I love to hear from people!

Комментарии • 31

  • @-suncheez-
    @-suncheez- 3 месяца назад +1

    Thanks, man. Your projects are awesome. Pity you have so little subscribers with such useful things.

    • @ApresSail
      @ApresSail  3 месяца назад +1

      Thanks! feel free to round up some more subscribers for me!

  • @pmgear
    @pmgear 8 месяцев назад +1

    awesome project, thanks for taking the time to share it.

    • @ApresSail
      @ApresSail  8 месяцев назад

      No Problem, anytime

  • @LesCollier
    @LesCollier 10 месяцев назад +1

    Nice video, you have saved me a lot of hard work, thank you

    • @ApresSail
      @ApresSail  9 месяцев назад

      No problem, thanks for watching

  • @FredCyrdotcom
    @FredCyrdotcom 3 месяца назад +1

    Hi Jason, Thanks for sharing a lot of valuable video. I appreciate your work! By any chance, would you share the power point presentation you are using in the video?

    • @ApresSail
      @ApresSail  2 месяца назад

      I just added a link to the description and here it is: docs.google.com/presentation/d/1gUk_Dv9XsKVsI_aG6KP8dv5CLRo1A5vv/edit?usp=sharing&ouid=108443467110705163627&rtpof=true&sd=true

  • @paulpvhl1930
    @paulpvhl1930 6 месяцев назад

    Just found your channel and appreciate it greatly, both content and production. About to start my project and a new channel for my sailboat; looks like a huge part of the work is already done for me -- except I'll be using 24v LFP, a 21 HP Westerbeke diesel and a pair of DIY electrified and air-powered old 6 HP outboard conversions with variable pitch props. Eventual goal is a boat pet that comes when I call and knows how to get to the next location when I ask it to and anchor effectively built of mostly recycled and repurposed parts. Looking forward to going through your github content. Many thanks. (Also appreciate your channel's name as a deeply philosophically meaningful outlook on life quite similar to my own. Cheers.

    • @ApresSail
      @ApresSail  6 месяцев назад +1

      Sounds like an awesome project!! let me know if you see anything on my Github you are unsure of. I have a another project coming up when I get chance with some automated switches.

    • @paulpvhl1930
      @paulpvhl1930 6 месяцев назад +1

      @@ApresSail Thanks for this. I'm feeling much less procrastination now that I've found so much help!

  • @arkadybron1994
    @arkadybron1994 Год назад +1

    Slightly disappointed that you didn't use a hall effect current sensor instead of the shunt, but nevertheless, a much better than the average YT marine-electronics video.

    • @ApresSail
      @ApresSail  Год назад

      The Hall effect versions are more expensive than the Shunt version, and the 50mv loss is not a big deal really. For other viewers can you think of other pro's and cons of Hall vs shunt?

  • @mrginoromano
    @mrginoromano 3 месяца назад

    Thanks!Awesome project,I don't have NMEA2000 but Seatalk (first version), which canbus can I use? thanks for help and taking the time to share your projects.......

    • @ApresSail
      @ApresSail  3 месяца назад

      No problem! if you have Seatalk 1, then you can connect it to your Raspberry Pi via an Opticoupler and be able to decode it. Take a look at my Tech Episode 2.

  • @hephey63
    @hephey63 Год назад +1

    Nice video thanks a lot. Could you please post a picture of the battery with the shunt from the frontsite?

    • @ApresSail
      @ApresSail  Год назад +1

      I can't do it in the comments but I just updated the Github page at: github.com/Techstyleuk/SensESP_3_Battery_Monitor with 2 pics, I hope that helps. the shunts were smaller than expected, I didn't really look, I assumed the connection was going to be a standard battery terminal and it isn't. I am either going to mount these or buy something else. Vishay do one with bigger holes or there was one at Aliexpress that was mounted

    • @hephey63
      @hephey63 Год назад

      @@ApresSail That is perfect - thank you so much

  • @Coyotehello
    @Coyotehello 7 месяцев назад +1

    Hi Jason, nice detailed video, as usual.
    Are you actually writing all the code yourself?
    If so, Kudos to you, that is a fair amount of work.
    Quick question:
    The buck converter you are using could that power a small 5V bus bar?
    I am trying to find a clean way to provide 5V for all my 5V components (RPi, likely a McArthur hat, small computer accessories).
    What is your solution on s/v Après?
    Cheers,
    a.

    • @ApresSail
      @ApresSail  7 месяцев назад +1

      the buck converter I use is 3A and I use one for the RPI, with several peripherals, but then attached I have a 12V powered USB hub with 4 ports for extra RPI connections and a 2.4A power USB that you could power the RPI with, if you wanted too (amzn.to/49baLGN). I have a second hub at the helm for Maiana and the touchscreen.
      I thought the MacArthur Hat took 12V supply and provided safe shutdown, similar to the circuit that I use. Couldn't you just use that?

    • @Coyotehello
      @Coyotehello 7 месяцев назад +1

      @@ApresSail Excellent information thank you. Yes the MacArthur does what you mentioned above and 12V to 5V.

    • @Coyotehello
      @Coyotehello 7 месяцев назад +1

      @@ApresSail Yes, but apart from the MacArthur hat providing 5V to the Pi5 , how can I use that 5V for other peripherals?

    • @ApresSail
      @ApresSail  7 месяцев назад +1

      @@Coyotehello like I said, I would either use a 12v USB Hub - then every peripheral is locally powered - the one I use is up to 24watts. I have GPS dongle, RTL-SDR, RS422-USB (NMEA0183), wireless KBRD/mouse dongle and 10" Navstation touchscreen on one, Maiana and the 15.6" Screen touchscreen on another.
      with regard to the code, I wrote it with help from many examples and the literature for SensESP from Matti Airas - github.com/hatlabs/

    • @Coyotehello
      @Coyotehello 7 месяцев назад

      @@ApresSail Cool stuff.

  • @pietromaurizio8990
    @pietromaurizio8990 7 месяцев назад +2

    Hi, interesting project. Can you provide me with the list of components and the link to the code?

    • @ApresSail
      @ApresSail  7 месяцев назад

      Links to components and the code can be found in the description - thanks

  • @somyrab
    @somyrab 10 месяцев назад +1

    Can you turn up the volume?

    • @ApresSail
      @ApresSail  10 месяцев назад

      Sorry about that, I trying to improve the sound as we go forward

  • @llablancheHermineBZH
    @llablancheHermineBZH 10 месяцев назад

    bonjour
    est il possible de monitore 4 batteries avec votre système en rajoutant un module can bus
    car j'ais un parc batterie de 3 x 4 batteries a regarde sur home assistant
    vidéo simple efficace
    merci beaucoup 👍👍 france bretagne Kenavo
    Good morning
    is it possible to monitor 4 batteries with your system by adding a can bus module
    because I have a battery bank of 3 x 4 batteries looked on home assistant
    simple effective video
    thank you very much 👍👍 France Brittany Kenavo

    • @ApresSail
      @ApresSail  10 месяцев назад +1

      The INA219 voltage/current sensor board has 4 possible addresses which means 4 can be used on one I2C bus, so you could monitor up to 4 quite easily. Over 4 you could use a multiplexer (amzn.to/49cVGoY) or there is a INA3221 which will do 3 batteries each and 4 addresses (12 batteries total) - amzn.to/3MoASRv. You would have to make some code adjustments but just using 4x INA219 would be mostly copy and paste from my code

    • @llablancheHermineBZH
      @llablancheHermineBZH 10 месяцев назад

      @@ApresSail Thank you for answering my question so quickly because I have 12 batteries to look at and see the balancing of such a park is important to have good solar autonomy
      you just gained a subscriber
      Kenavo