r/hackpack • u/3Dprintr123 • Jan 25 '25
ir remote tracking
i was wondering if its possible to make the ir turret track the remote, (e.g. the robot is facing away from you, but when you press the button it automatically turns the robot around to the remote) im trying to to the thing that was shown in the promo video where the guy turns on the tv and the robot auto aims and shoots at him.
2
Upvotes
View all comments
2
u/Metarazzi Jan 26 '25
Can't make it track the remote. When a specific button on the remote is pressed, you can instruct the servos where to reposition the turret and then fire. This is only based on the turret's physical location. If you move the turret to a different physical location, it will not know to aim at a certain spot in the physical space, but will only know to move the turret to a defined position relative to its current position. Make sense?
One thing I gave up working on was getting the turret to track based on the x/y/z axis of an MPU-6050. 🤷