Vehicle Detection Project #21343
Unanswered
Tanner102
asked this question in
Support request
Replies: 4 comments 10 replies
-
Any logic that can be handled by arduino could be done in Berry.
There are border cases that shuld be taken into account.
Human crossing , stopped car mid way, etc
El El sáb, 4 may. 2024 a la(s) 09:31, Tanner102 ***@***.***>
escribió:
… Hi,
I am working on a project to install two time of flight sensors at my
automatic front gate. I want to use logic to detect whether a vehicle has
entered or exited the gateway so that I can base automations on the events.
I am experimenting with VL53L0X tof sensors in long range, but with the
2.2m limit I will probably deploy VL6180X tof sensors with 4m range. The
sensors will be about 3m apart. I'm using mqtt broker on a dedicated pi
zero W and home assistant on lenovo thinkcentre in docker. I had planned to
run automations in home assistant to run the vehicle direction logic. Ie.
When tof1 is passed and tof2 is off - direction 'A', and vice versa. Using
helper switches, etc.
The problem I have encounted, and don't have the knowledge to overcome,
the sensors update to homeassistant slowly, and if sensor measurement reads
null on Tasmota, home assistant holds last value and doesn't update until
next keep alive message.
Is it possible to setup tasmota to perform all of the logic itself? And
only mqtt home assistant the vehicle direction detected?
Also, I would like to have a 'virtual' relay which can activate the logic
only if the gate is open. I can easily build gate open/close binaries in
home assistant, it would be great if this could control when the logic runs.
Maybe I'd be better off running an arduino code for this project? I'm
thinking local logic is better to avoid increasing TelePeriod and flooding
my network with constant mqtt messages..
Thank you.
—
Reply to this email directly, view it on GitHub
<#21343>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACXBW4NUBEONTK2P2VF3NWLZATILVAVCNFSM6AAAAABHGZOLWCVHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZWGYYDKMJUGI>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Beta Was this translation helpful? Give feedback.
4 replies
-
The laser option is a good one. You can put the sensor in a deep black
tube, so light from other sorces is minimized.
I used them on a 1/4 mille car race chrono.
No problem 6m apart.
El El dom, 5 may. 2024 a la(s) 02:00, pkkrusty ***@***.***>
escribió:
… For such a short distance a laser or infrared sensor could work. Break the
beam and a LDR analog value changes.
Or like they do for traffic studies, an air tube with a pressure sensor.
But that would only detect vehicles.
A camera with AI object detection would be pretty cheap too. Maybe $40.
—
Reply to this email directly, view it on GitHub
<#21343 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACXBW4II6YBGKXSSOPSOJ4LZAW4FJAVCNFSM6AAAAABHGZOLWCVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TGMJXG4ZTG>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
-
The laser and sensor could be on the same side, pointing to a mirror on the
other side.
;-)
El El dom, 5 may. 2024 a la(s) 13:20, Tanner102 ***@***.***>
escribió:
… I have seen this method used industrially, to detect if a flag on a
mechanical device had not been pushed clear of the beam. It would be a
great way to do it, but I have been tring to avoid using a method which
would require units on both sides of the gateway. I'm not keen on digging a
trench for power/data supply.
—
Reply to this email directly, view it on GitHub
<#21343 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACXBW4LOOU6LRB3HYPTM7JTZAZL55AVCNFSM6AAAAABHGZOLWCVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TGMRQG42TQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am working on a project to install two time of flight sensors at my automatic front gate. I want to use logic to detect whether a vehicle has entered or exited the gateway so that I can base automations on the events.
I am experimenting with VL53L0X tof sensors in long range, but with the 2.2m limit I will probably deploy VL6180X tof sensors with 4m range. The sensors will be about 3m apart. I'm using mqtt broker on a dedicated pi zero W and home assistant on lenovo thinkcentre in docker. I had planned to run automations in home assistant to run the vehicle direction logic. Ie. When tof1 is passed and tof2 is off - direction 'A', and vice versa. Using helper switches, etc.
The problem I have encounted, and don't have the knowledge to overcome, the sensors update to homeassistant slowly, and if sensor measurement reads null on Tasmota, home assistant holds last value and doesn't update until next keep alive message.
Is it possible to setup tasmota to perform all of the logic itself? And only mqtt home assistant the vehicle direction detected?
Also, I would like to have a 'virtual' relay which can activate the logic only if the gate is open. I can easily build gate open/close binaries in home assistant, it would be great if this could control when the logic runs.
Maybe I'd be better off running an arduino code for this project? I'm thinking local logic is better to avoid increasing TelePeriod and flooding my network with constant mqtt messages..
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions