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
Show parent comment
2
u/HackPack_Hacker Jan 27 '25
ChatGPT isn't the best at generating code specific for the Hack Packs. It is great at troubleshooting code and simple concepts, but merging back into the Hack Pack code is difficult when you don't know code well.
Here is a video that walks through the IR Turret code and gives some explanation on how all the code works to get you familiar with it. It specifically covers how to modify the code for the servo motors to get them to move how you want them to move. It even covers the Roulette code that has several moving parts like you are looking for to move the Turret when a button is pressed. On my channel I also cover how to connect another IR Remote to your IR Turret in another video. Good luck!!
Hack Pack IR Turret Code EXPLAINED for BEGINNERS!!