This repository contains the code and instructions to implement a simple home automation using raspberry pi zero W and a 2-channel relay. I selected to channel relay to automate tubelight and bulb. Detailed instructions at this link.
- Raspberry Pi zero W
- n - Relay (I used 2 - channel relay)
- Some wires
- Particle.io account
- IFTTT app
- Goto particle.io.
- Goto console.
- Click on webIDE present on the left side of the page.
- Paste the code present in /code/main_program.ino to the WebIDE.
- Save and compile the code and check for errors.
- Install particle.io in your raspberry pi zero w.
- Flash the code to the pi from WebIDE.
- Connect the D0 of the pi to the respective relays.
- Setup IFTTT to trigger the commands.
The instructions are for expert users, I will be writing a detailed blog on how to implement this project step by step.
- Built case
- Add TRIAC support for controlling fan