r/ArduinoProjects • • Oct 27 '21

Turned my auto-aiming turret into a tracking eyeball for Spooky Time. (Build video in comments)

158 Upvotes

8 comments sorted by

4

u/AllPartsCombined Oct 27 '21

Basically, a Kinect tracks people and sends angle data over to a microcontroller controlling a pair of servos.

Initial Turret Build: https://youtu.be/e5JpQQOPFPk
Spooky conversion: https://youtu.be/jNCQnDVfFmA

1

u/ivoidwarranty Oct 27 '21

Too bad you have to use a separate PC computer the run the Kinect (via its SDK)- the Kinect coupled with the SDK does do an amazing amount of real-time motion, position and ID leg work though. What programing language are you using for the Kinect part?

2

u/AllPartsCombined Oct 27 '21

Yeah, it is a shame. Will be hard to find a way to put it outside Halloween night.

I programmed it with C# and actually build the app in Unity Engine, using Microsoft's Kinect plugin.

2

u/ivoidwarranty Oct 28 '21

Yeah, C#- brings back memories of using Kinect to do people tracking for an animatronic (control eye direction and neck rotation). Next best thing is using Raspi and camera/openCV in Python, but nowhere near as good as Kinect (bc it has IR, stereo camera, etc).

2

u/AllPartsCombined Oct 28 '21

Yeah, Kinect makes it really easy. I did another version of my original turret that used Opencv (C# version) to color-track a laser pointer on the turret and a colored target, plus PID control to align the laser with the target. Fun solution to work on, but man, Kinect makes it easy.

2

u/[deleted] Oct 27 '21

Very cool