# Christmas Hoovy Box

2

1

## Introduction: Christmas Hoovy Box

So, you want an easy to make a Christmas gift for a loved one or friend with simple but fine coding? Do you have access to some plie wood, an Arduino Uno, Laser cutter and some LED lights? Well, then you should get to making the Santa Hoovy box! The Santa Hoovy box is cheap and easy to code. And I have brought you a full guide on how to make one!

### Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

## Step 1: The Coding

int fsrAnalogPin = 0;

int LEDpin = 13; int LEDpin2 = 12; int LEDpin3 = 10; int fsrReading; int LEDbrightness; int LEDbrightness2; int LEDbrightness3; int ServoPin = 9; int val = 0;

#include

Servo servo;

int angle = 0; void setup(void) { Serial.begin(9600); pinMode(LEDpin, OUTPUT); pinMode(LEDpin2, OUTPUT); pinMode(LEDpin3, OUTPUT); servo.attach(ServoPin); servo.write(0); }

{ Serial.println("Moving");

for (angle = 0; angle < 180; angle++) { servo.write(angle); delay(15); } } LEDbrightness = map(fsrReading, 0, 1023, 0, 255); LEDbrightness2 = map(fsrReading, 0, 1023, 0, 255); LEDbrightness3 = map(fsrReading, 0, 1023, 0, 255);

analogWrite(LEDpin, LEDbrightness); analogWrite(LEDpin2, LEDbrightness2); analogWrite(LEDpin3, LEDbrightness3); delay(100); }

## Step 2: Use an LED to Test the Force Sensor

If the light turns on when force is put on the Sensor, then you have copied the code correctly.

## Step 5: Lazer Cutting

Use a laser cutter to cut a wooden box and Christmas Hoovy(From Team Fortress 2), then put the box together and drill two holes in the box (one on top and one on the backside).

## Step 6: Gluing

Glue the servo on top of the Box and glue a piece of rope on the servos motor, the rope goes through the hole on top and is glued to the Hoovy.

## Step 7: Finish Up

Put Both of the LED lights through the hole on the back of the box behind the Hoovy.

Now when you push on the force sensor the Hoovy will move up and down in the box with lights turning on behind him.

## Recommendations

Lamps Class

9,922 Enrolled