Mad Eye Moody always knows what’s happening in Harry Potter. Always. His magical moving eye helps him. You can make your very own, and though it won’t actually let you see everything occuring around you, it looks the part. Instructables user Boldevin used a 3D printed eye (the file’s from Thingiverse), paint, a servo motor, and an Arduino to make the eye come to life–so to speak.
He explains the electronics along with a diagram:
Solder the wires for the Servo motor to the arduino as shown in the picture and upload the code to the arduino. The code will wait for 2-12 seconds and move the servo to a position 70-90 degrees.
The 3D printed surfaces will have very high friction and don’t glide easily. So you might need to put tape on the inside of the base to let the eye glide.
Stop breadboarding and soldering – start making immediately! Adafruit’s Circuit Playground is jam-packed with LEDs, sensors, buttons, alligator clip pads and more. Build projects with Circuit Playground in a few minutes with the drag-and-drop MakeCode programming site, learn computer science using the CS Discoveries class on code.org, jump into CircuitPython to learn Python and hardware together, or even use Arduino IDE. Circuit Playground Express is the newest and best Circuit Playground board, with support for MakeCode, CircuitPython, and Arduino. It has a powerful processor, 10 NeoPixels, mini speaker, InfraRed receive and transmit, two buttons, a switch, 14 alligator clip pads, and lots of sensors: capacitive touch, IR proximity, temperature, light, motion and sound. A whole wide world of electronics and coding is waiting for you, and it fits in the palm of your hand.