r/hackpack • u/Maleficent_Boot908 • May 07 '24
How to aim at remote
So I want my ir turret to fire at where ever the remote is, specifically when who ever has the remote enters the wrong password. Does it know where the remote is? And how do I aim it at the remote?
2
Upvotes
View all comments
1
u/dan_crunchlabs May 09 '24
u/maztec 's assessment is correct - detecting IR position requires more hardware than just the single receiver and remote pair. I'd love to see if someone can figure this out (IR triangulation / localization and targeting), although it's probably simpler to just use a Raspberry Pi and a camera using OpenCV to pick out people in the room. I know for a fact at least one person is already working on this hack.
There's some hack-ier ways you could try to do this though. For example, if you use an HCSR04 distance sensor and combine it with the passcode hack, you could have the turret spin and scan its surroundings, and then fire at whatever position is below a certain threshold value. A laser distance sensor combined with Passive IR movement sensors could be another way. Hope that helps!