Trybotics Logo

FNAF Freddy Animatronic Head

DESCRIPTION

Here is my arduino project for HKU a head of freddy that triggers when you out your hand in his mouth.

Description:

Get yourself a some materials it's not necessary that you have all the item on the list you can also use materials from around the house.

Freddy head:

1. Draft foam/ industrial foam.

2. Duct tape.

3. Glue

4. Hot glue gun.

5. Felt.

6. iron wire.

7. brown fabric.

Arduino:

1. Arduino uno.

2. Wires.

3. Servo.

4. Bread board.

5. LED.

6. Buzzer.

7. Distance sensor.

Description:

Step 2: Making the Head
2 More Images

REMEMBER TO MAKE YOUR FREDDY HEAD BIG ENOUGH TO FIT ALL YOUR ELECTRONICS!

If you want it to fit your head make the dimensions are for your head and make sure that it still fits with the electronics.

. First make a cylinder out of foam make it slightly tapered.

2. Then make a dome out of foam for on the cylinder.

3. The hat is made with a circle of foam then a cylinder on top plus felt over the hat is optional.

4. The nose is a piece of foam heated up then put a ball under it too make it round.

5. For the upper jaw i used a foam ball and cut it in 4 pieces and used 1 as the upper jaw the other for the lower jaw.

6. Then take 2 pieces of foam t0 make the cheeks and stick every thing together with tape and glue.

7. For the fabric you need to pull it tight over the ball and fix it to the inside of the head, use needles to set the fabric in place then use fabric glue or your hot glue gun.

8. Make holes for the eyes.

9. Take some felt cut it to make the freckles and to make the eyebrows.

10. Make the ears out of foam then use felt to cover them.

11. The lower jaw is the same as the upper but with thin wooden plates to hold the jaw and make it able to make up and down.

12. Stick some black felt on the inside of the eyes.

13. attach some iron wire to the lower jaw so you can mount it to the servo later(it will lift the jaw up).

Description:

Dimensions

Height: 20 cm

Width: 16 cm

In this drawing is shown where to put the led, buzzer and servo. You can choose yourself where you want to put the distance sensor.

If you are cutting holes remember to measure correctly!

Description:

Here is my code:

#include
#define trigPin 11

#define echoPin 12

Servo SERVO;

int sound = 250;

int LED = 9;

int buzzer = 13;

int servoPin = 3;

void setup() {

pinMode(buzzer,OUTPUT);

pinMode(trigPin, OUTPUT);

pinMode(echoPin, INPUT);

pinMode(LED, OUTPUT);

SERVO.attach(servoPin);

Serial.begin (9600); } // this function makes the buzzer use random tones when activated.

void randSound(int maximum){

tone(buzzer,random(maximum,10*maximum));

delay(maximum); } //this is a loop function that will work when the distance sensor is triggered.

void loop() {

long duration, distance;

digitalWrite(trigPin, LOW);

delayMicroseconds(10);

digitalWrite(trigPin, HIGH);

delayMicroseconds(10);

digitalWrite(trigPin, LOW);

duration = pulseIn(echoPin, HIGH);

distance = (duration/2) / 29.1;

if (distance < 5) {

//if your distance from the sensor is less than 5cm it will trigger the LED, servo and buzzer.

Serial.println("the distance is less than 5");

SERVO.write(170);

delay(10);

digitalWrite(LED,HIGH);

randSound(10); }

//if the distance is bigger than 5 all the components won't activate.

else {

SERVO.write(0);

digitalWrite(LED,LOW);

noTone(buzzer); }

//shows you that your not close enough to the sensor.

if (distance > 20 || distance <= 0){

Serial.println("The distance is more than 20"); }

//prints the distance if its less than 20 and more than 5.

else {

Serial.print(distance);

Serial.println(" cm"); }

//is the delay until the sensor is triggered.

delay(30); }

Description:

Place your Arduino with al the correct wiring in the head and check if everything fits.

Make sure your LED will reach to the eye and make sure the servo can be attached to the jaws iron wire.

Optional is to put a battery pack inside your head so you can walk around with it.

for me it was a must.

Description:

Now have fun with it and make it your own!


YOU MIGHT ALSO LIKE