This is my first project that connects Arduino and Raspberry Pi, so it's very simple. My goal was to set my Arduino to trigger a relay on my Raspberry Pi to turn on a light at night. I used the Cayenne dashboard for this project.
Flow of connections- The photoresistor is connected to my Arduino
- My Arduino is connected to the Internet so that I can control it with Cayenne
- My lights are connected to a relay
- That relay is connected to my Raspberry Pi
- The Pi is also online so that I can control it with the dashboard
When the light in my house drops below 300 lux, then my Raspberry Pi should turn on the relay to switch on power.
When the light in my house is above 350 lux, then my Raspberry Pi should turn off the relay to switch off power to my lights.
It's simple but it makes my Arduino and Pi work together, which I had not done before.
Screenshots of the dashboardtad.dvor

Comments