Time of Flight Sensor (VL53L0x) for Distance Measuring in ESPHome - Pellet Level Monitor Update

Поделиться
HTML-код
  • Опубликовано: 25 апр 2024
  • Check out Altium Designer and get a 25% discount for a new account: www.altium.com/yt/taste_the_code
    www.altium.com/altium-365
    In this video, I'm testing out the VL53L0x Time Of Flight sensor that optically measures distance with some IR laser to see if it will be a good option to use in future versions of my pellet level monitor. I designed the first one with an ultrasonic sensor and many of the comments suggested that I use this sensor instead. You can see the first video here:
    • Pellet Level Monitor f...
    www.tastethecode.com/making-a...
    To test out the sensor, I first connected it to a NodeMCU board and used some Arduino code to get it to work, before I moved it to ESPHome for integration with Home Assistant.
    In both cases, the sensor worked beautifully, so I will next try and create a standalone version of it that can also be used in case you are not using Home Assistant.
    Tools and materials used in the video:
    NodeMCU Development Board - s.click.aliexpress.com/e/_oCt...
    NodeMCU with ESP32 - s.click.aliexpress.com/e/_mtA...
    VL53L0x ToF Sensor - s.click.aliexpress.com/e/_ol0...
    Mini Breadboards - s.click.aliexpress.com/e/_m0j...
    Jumper Wires - s.click.aliexpress.com/e/_mLI...
    Mini PC for Home Assistant - s.click.aliexpress.com/e/_ExV...
    Soldering Station - s.click.aliexpress.com/e/_mK6...
    Multimeter - s.click.aliexpress.com/e/_m0o...
    Full code and written instructions for the project are available on my website:
    www.tastethecode.com/testing-...
    Adafruit library for the VL53L0x sensor
    github.com/adafruit/Adafruit_...
    VL53L0x ESPHome Component:
    esphome.io/components/sensor/...
    Support my work on Patreon so I can continue producing free content and tutorials!
    / taste_the_code
    My recording gear:
    Canon M50 Mark ii - s.click.aliexpress.com/e/_ALp9Sp
    GT10 Pro 5G Android Phone - s.click.aliexpress.com/e/_oDn...
    Dragon Touch 4K Action Camera - s.click.aliexpress.com/e/_mrc...
    USB Condenser Microphone - s.click.aliexpress.com/e/_DF5...
    Tripod - s.click.aliexpress.com/e/_Del...
    Phone tripod mount - s.click.aliexpress.com/e/_oDT...
    Time of Flight Sensor (VL53L0x) for Distance Measuring in ESPHome - Pellet Level Monitor Update
    #VL53L0x #tof #esphome #arduino #homeassistant #tastethecode
    Main Site and blog: www.tastethecode.com
    Facebook: / tastethecode
    Instagram: / taste_the_code
    Twitter: / taste_the_code
    Get exclusive Taste The Code t-shirts and merch at
    teespring.com/taste-the-code
    Hosting discounts over at Dreamhost
    click.dreamhost.com/SHiw

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

  • @protoncek
    @protoncek 19 дней назад +3

    I've had exactly the same setup for pellets measuring - at first I've had ultrasonic module, and i can say that it's quite unreliable. I've had to use all sorts of filters to eliminate false empty or/and false full readings to achieve sort-of acceptable result.
    This winter i replaced it with this laser sensor and it's way better. More accurate, and absolutely no false readings. I have only basic median filter (only to eliminate very small deviations) in esphome and results are perfect.
    However, my strong advice: GET IR PROTECTION for this sensor! I've had it without it and had to remove and blow it with air two or three times during winter to correctly read again because of dust. Later i added protection and problems are gone - i only wipe it out occasionally. There are original protections available for this sensor, or you can get sensor with this glass already installed.
    a

  • @major_west
    @major_west Месяц назад +3

    Very cool project. I'm not sure the life expectancy of the laser, but setting the update interval to once a minute or once an hour might be prudent.

    • @TasteTheCode
      @TasteTheCode  Месяц назад

      I'm not sure either but yes, 1s was just for testing purposes. A more real world case is once every 30 minutes or so. Maybe even once every hour as you suggested.

  • @jasondessenberg6096
    @jasondessenberg6096 Месяц назад +1

    Been wanting to do something similar to keep tabs on the salt level on my water softner.

    • @TasteTheCode
      @TasteTheCode  28 дней назад

      Cool! Good luck and let me know how it goes.

  • @markanthonynilo9198
    @markanthonynilo9198 27 дней назад

    The Graphics that I see in the ESP Home is already built in, I mean pre coded in the ESP Home? About 6:14 in the video. Thank You. Nice Project Sir! Keep it Up!
    I see from what I understand as you say Sir, it displays the reads and translate it based on the template...is there any other template that I may use for a basketball arcade more of a seven segment scoring template for a sensor that can function as a ball counter.

    • @TasteTheCode
      @TasteTheCode  27 дней назад

      The graphics are part of Home Assistant, it is the system that ESPHome runs on for smart home management. There are templates for different sensors but I'm not sure which one you can use for a basketball arcade.

  • @sanjurohaze
    @sanjurohaze Месяц назад +6

    Dust dont do well with optics

    • @TasteTheCode
      @TasteTheCode  Месяц назад +1

      Yes, true but there is not that much dust in the bunker.

  • @SmodoStein
    @SmodoStein 19 дней назад

    Does the TOF laser sensor also work outside ?
    For example, can the sensor be protected from splashing water e.g. by a glass pane or does a pane interfere with the measurement?
    I want to build a Distance Sensor for a boat which gives an alarm when getting close to the pier.

    • @TasteTheCode
      @TasteTheCode  19 дней назад

      I haven't used it specifically outside but I do not see a reason why it should not work. Some modules come with a protection glass on the front that can be clued to a case so you can make it water resistant. Let me know how your project goes, it sounds interesting.

    • @n-steam
      @n-steam 19 дней назад

      You would have to ensure you use a protective medium that is transparent to IR. AFAIK most glass is opaque to IR.
      Though there are definately some plastics you can use (the black-looking plastic they have on remote controls for example).

    • @TasteTheCode
      @TasteTheCode  18 дней назад

      Yes, true. The protection that comes with some module is made out of material that allows for IR to pass through.

  • @d5kenn
    @d5kenn 22 дня назад

    Which is more accurate/reliable, the ultrasonic or the TOF?

    • @TasteTheCode
      @TasteTheCode  22 дня назад

      The heating season is over for me but definitely TOF was more stable in the time period that I used it. Hopefully I'll have more data next season.

  • @luminousfractal420
    @luminousfractal420 21 день назад

    ive been lookong for a laser sensor for mwasuring tiny distances, i thought it would be the way forward (its for a blade alignment sensor for my bandsaw, it needs 3 points of reference along the blade) i thought lasers might be available but i cant find any high res/small distance ones for less than 3500. i need micrometer accuracy i guess.
    i had pondered taking apart some optical mice and using the sensors in those somehow, theyre fairly accurate. but i need a measure to tie them to. i fail at programming 😂

    • @TasteTheCode
      @TasteTheCode  19 дней назад

      Well I'm not aware of any. These will not be that precise.