TOF sensors and solving problems with them #1
jazzmonger
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
vl53l0x tof sensor
I originally had planned for these sensors to be at the roof of the box measuring down. Unfortunately they aren't good enough to measure 1-2mm thick letters from 8-10" away. So instead, I mounted them to the bottom of the mailbox and drilled 2 holes for them to "see" up. This works flawlessly every time.
I use 2 of these sensors, one towards the front of the box and one towards the rear so there's a better chance of mail detection no matter where the mailman throws the mail into the box. This version of the sensor has enable pin XSHUT that can be used to enable them and put them in standby, thus drawing negligible current. When the ESP goes into sleep mode, I had to get on Discord to ask how to control those gpio's. The key was "allow_other_uses: true" as that flag allows the same gpio to be used as a switch that can be turned on & off. You learn something new every day!
I used hot glue to surround the sensors and wires to waterproof them, just don't cover the little "eye"in the top of the tof sensor. Our mail is never wet, even in torrential downpours and wind, so this should be just fine.
Then it becomes a case of how and when to turn those pins on & off. Here's how I did that:
Beta Was this translation helpful? Give feedback.
All reactions