Welcome to this tutorial on Raspberry Pi. From the title itself, you got an idea of what we will be doing. What do you think about turning an AC and lights on just 5 mins before arriving home, and you get that heavenly feeling in an instant on opening the door after a tiring day. Sounds cool, isn’t it? So stick to this Instructables, and also have a look at our video. I am sure you will enjoy it.
Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.
Step 1: What You Will Need?
Here is the list of components:
1. Raspberry Pi (we are using Pi 3 Model B)
2. Relay Module
3. Light Bulb
Step 2: Software!
Step 3: Circuit
The circuit is very easy. No need to explain. Just make sure you are connecting the right GPIO pin that I will discuss in the next step.
Step 4: Follow the Steps in Cayenne
- Open Cayenne my device. If you are not familiar with this IoT platform, then please watch our 1st video on it by clicking here.
- After logging in, make sure you care connected to your Pi.
- Then click on Add New, followed by Device/Widget.
- Search for Digital output and add it. Name it as Switch and select the GPIO number correctly.
- Give the icon of a bulb and press Add Actuator.
Step 5: It's Done!
Now open your Cayenne App in your mobile and touch the switch to turn the light ON and OFF. This method will light up any home appliances from any corner of the world as long as you are connected to the internet.
So simple! If you are new, then do subscribe to our YouTube channel Being Engineers for more cool Arduino and Raspberry Pi projects. It really helps us a lot. Follow us on Instagram and Facebook for more updates. I will catch you guys later. Peace :)
Participated in the
Microcontroller Contest 2017