### 💡 The Backstory: Turning Laziness into Engineering
Let’s be honest: great inventions are often born from a desire to make life easier. The story of this project started because I was simply too lazy to get out of my cozy bed just to turn off the room lights at night! 😂
Instead of accepting this daily struggle, I decided to use my passion for robotics and automation to solve it. I thought, "Why walk to the switch when I can make a robot do it for me?"
Since I didn't want to mess with the dangerous high-voltage AC wiring of the house (and risk getting electrocuted or making my parents mad), I chose a purely mechanical, non-invasive approach.
---
### 🛠️ How It Works
The system is divided into three main parts:
1. **The Brain:** An **Arduino Nano** constantly listens for signals from the infrared receiver.
2. **The Input:** I use a standard **IR Remote Control**. When a button is pressed, the **IR Receiver Module** decodes the signal and sends it to the Arduino.
3. **The Muscle:** A high-torque **TowerPro MG90S servo motor** is mounted directly onto the wall light switch using hot glue.
When I press the "ON" button on my remote, the servo rotates to a specific angle to physically flip the switch down. When I press "OFF", it rotates back to flip the switch up.
---
### 🚀 What I Learned
This project was a fantastic way to practice:
- **State Machine Logic:** Writing clean C++ code in the Arduino IDE to toggle states based on hex codes from the remote.
- **Mechanical Prototyping:** Finding the exact angle and physical alignment for the servo arm so it applies enough pressure without breaking the plastic switch.
Now, I can control my room's atmosphere with a click of a button—straight from my bed. Proof that a little bit of laziness can lead to some pretty cool engineering!












Comments