Introduction: What a SURPRISE-- Ghost House

In the realm of electronics and DIY projects, Arduino microcontrollers have become synonymous with innovation and creativity. One fascinating device that showcases the power of Arduino is a project utilizing an infrared (IR) sensor to control a servo motor. Let's delve into the intricacies of this device and explore its functionality.


Supplies

The device employs an Arduino microcontroller along with a servo motor, some electric wire, and an infrared sensor. The heart of the device lies in its code, written in the Arduino IDE, which dictates the behavior of the components based on the input received from the IR sensor.

Step 1: Connect Wires

Connect the servo motor to the Arduino board by using D9.Connect the infrared sensor to D2.

Step 2: Enter Codes

The Arduino codes for this project are below (Ghost_house.ino), Download this code and open it in Arduino IDE.

Step 3: Exterior

DECORATE IT

Step 4: Finished

You're Finished

Step 5: End Picture

Step 6: All the Pictures