Freddy Fazbear Animatronic by Zachary and Uriel
by HelstromZ in Circuits > Arduino
71 Views, 0 Favorites, 0 Comments
Freddy Fazbear Animatronic by Zachary and Uriel
For Mechatronics the final project was to design an animatronic that would have 2 sensors, 2 motors, 2 moving parts and output an audio clip that consisted of at least 5 words. This was done with the Freddy Fazbear design consisting of a ultrasonic sensor that would have an audio clip play and move the eyes when something was within 3 ft. The second was a photoresistor that when covered would move Freddy's eyelid to make him blink.
Downloads
Supplies
For this project the following items were required:
- 3-D printer access for printing the chassis
- Arduino Uno kit
- One additional servo motor
- Something to attach the face to
- Cardboard
- Face print of Freddy Fazbear
Design Parts
Designed a 3-D printable Chassis That was then printed and had slots for both servos. The design for the eye was found and printed as well so that it would be able to move. As well as attach print of face to cardboard.
Circuit Design
Make the Circuit that has 2 servos, a photoresistor, and a ultrasonic sensor. Then attach these to the Arduino either directly or through the breadboard included in the Arudio kit. Then attach the servos to the eyes using a paperclip on the wing pieces attached to the servo. Then place the servos into the locations on the chassis.
Coding
Create the code to make the servos move when the photoresistor was covered and the other servo move when the ultrasonic sensor was triggered. The second code made was a script in java using the minim library to make the sound byte play. This was done by having the Arduino print PLAY into the serial monitor which was read by the script to play the uploaded mp3 file.
Combine
Attach the servos to the chassis and the face to the front of the chassis to make the eyes fit in the silts of Freddy's eyes. Then make sure to upload the code to the Arduino Uno and close the Arduino shell. Then open the script and run it this will allow the audio to play when the ultrasonic sensor's conditions are met.
Reflection
In this project we learned a lot about how to practically design and put into work a circuit. This project also showed us how to make a chassis and how to make rotational motion of the servos in a linear motion of the eyes. The biggest hurdle we had was that we did not take into account the amount of power a stepper would use as we had initially wanted the mouth to move using a stepper motor but the power draw was to great and it did not power on. If we would have had more time we would have likely added a battery or some additional source of power to make this work as intended as the stepper was also already in our code to move as intended.