An open API service indexing awesome lists of open source software.

https://github.com/v1peridae/bedroom-light-automation

automating my bedroom lights + alexa support soon
https://github.com/v1peridae/bedroom-light-automation

arduino homeautomation

Last synced: 6 months ago
JSON representation

automating my bedroom lights + alexa support soon

Awesome Lists containing this project

README

          

# Light Automation Using Ultrasonic Sensor and Servo Motor

This Arduino project uses an ultrasonic sensor to detect when a door is opened or closed, and moves a servo motor to turn a light switch on or off.

## Components Required
- Arduino Uno R3
- Ultrasonic sensor (HC-SR04)
- Servo motor
- Jumper wires
- Breadboard

## Schematics Diagram

![Schematics Diagram](image.png)

## Connections
- **Ultrasonic Sensor:**
- VCC to Arduino 5V
- GND to Arduino GND
- Trig to Arduino pin 9
- Echo to Arduino pin 8
- **Servo Motor:**
- VCC to Arduino 5V
- GND to Arduino GND
- Signal to Arduino pin 6

## Usage
1. Connect the components as per the circuit diagram.
2. Upload the code to your Arduino board.
3. Mount the wall with ultrasonic sensor facing door.
4. Observe the servo motor movement as the door opens and closes.

## Update 1:
- I made a simple 3d design for a case, I'm going to get it printed later this week and I'll add pics of it working. For now the STL is in one of the files so feel free to check it out or edit it :)