About This Project
I wanted to take advantage of the little things i already know. When I first met Cayenne, I wanted it to be the platform for a project culminating all the little things I already knew.
Now I have two options here, one is to have my sensors and controllers each have wifi modules and communicate them all through Cayenne, or to have 1 MCU communicating to many MCUs by relaying data to Cayenne and vice versa. The second choice was a choice for me for its challenge although this means I have to use the MQTT API of Cayenne. This project will not use any wires between two MCUs. I am using NRF24L01+. It is very cheap. I could have them in a network later in the project.
This project tackles Home Automation using that wall switches and wall plugs however there is that thing with the light switches at home that is in SERIES with its switch. This means you will have to add another wire making it 3 wires (AC live, AC Neutral, From Light).
Raspberry pi (this is connected to Cayenne)
Arduino Nano (MCU for the devices we are controlling)
NRF24L01 (RF module)
Zero Crossing circuit
Light switches (these are overide switches, just incase you want to manually switch device)
Wall Power supply (i cant find those with switches, so I added mine into it)
Triggers & Alerts
Proximity sensor will tell if you have visitors at your door. At night, this could turn on a light when ever it detects motion.
when it gets too hot, it turns your Fan (due to SSR limit, but change SSR then you can turn AC)
when the temperature drops below lower limit, turn off Fan
Scheduling Doesn't work with MQTT at the moment
I want to make New Project Tab where I can add the RPi Commands as you can see in the left, to shutdown, reboot RPi, or even code in it. Note: the two devices (DeviceX and RPi) are the same device. it seems there is a bug where project tab disappears.
Photos of the Project
The Acrylic box represents your wall. I made it transparent so i can take pictures on what is inside. It is for presentation only.
Each utility box, houses 1 Arduino Nano, 1 RF module, 2 SSR, AC to 5Vdc adapter.
The two light switches control each LEDs on the side.
The center, will be a dimmer circuit controlling a bulb in the middle. That CFL will not do.
The right side are two power plugs, the switches are for manual switching (Added a switch).
My Dimmer prototype and Cayenne's Slider. Sorry for the broken screen.
Dimmer connects to Arduino with NRF and to RPi. RPi connects to Cayenne.
I'll post my final project soon.