You are on page 1of 2

Required components:

 Raspberry Pi 4 Model B (4GB RAM)


 Power Adaptor for RPi
 SD Card (32GB)
 4 channel relays
 Light Strips (12v)
 Cooling fan (12v)
 Door lock (12v)
 Battery Case for (12v)
 8pcs AA Battery (12v)
 Jumper wire (Female to Female)
 Speaker wire (for wiring)

How to operate:

Setting up the Raspberry Pi 4

Insert SD card in PC/desktop to set up Raspberry Pi 4


Go to Raspbian OS Link and Install Raspberry Pi OS
Format Sd Card
Open Raspberry Pi Imager
Choose Operating System, click “Raspberry Pi OS (32-bit)
Click “Choose Storage” for SD card you’ve inserted
“write” & verify SD card
Then insert the SD card in Raspberry Pi
Plug in the power adapter of raspberry Pi

Installing the Cayenne onto the Raspberry Pi

Proceed to “MyDevicesCayenne” and sign up.


Use the terminal on Raspberry Pi to install cayenne
Run the ff. commands
wget https;//cayenne.mydevices.com/dl/rpi_dg25s0okdhsh
sudo bash rpi_dg25s0okdh.sh _v
Once installed the dashboard will display

Setting up the circuits and connecting the Raspberry Pi

Mount all the components to the raspberry pi (relay module, light strips, door lock, fan, battery case and
batteries)
Connect the jumper wires from relay to raspberry
Use speaker wires to connect the relay to light strips, door lock, fan, battery case
And put AA batteries on battery case
Setting up the Cayenne to the Devices

From the dashboard click “add new” to select the device from the drop-down box
Find the “device/widget”. Select the “Relay Switch” from the “Actuators” (An actuator is device that
moves or controls some mechanism. An actuator turns control signal into mechanical action such as an
electric motor.)
Select the “Device” and find “Raspberry Pi” from the “single board computers”
In the “Connectivity”, the “Integrated GPIO” choose the channel from the respective GPIO pins (P6, P13,
P19, P26)
Choose the widget to “Button” and invert to logic and click button “Add Actuator”
Repeat this to add more actuator for the remaining 3 channels

Adding the Triggers to send notification in phone number or email

To add the “Trigger”

Go to “add new” in the upper left corner of the dashboard

Select “trigger’ from the drop-down box

Put a name in the trigger

Drag and drop the Raspberry Pi in the far-left corner into the “if” box

Click “select trigger” and click which channel you want to trigger and choose “on or off”

Now in the “then” box select “set up notification” and add phone number and email number on “add
custom recipient” and make sure to tick the checkboxes

It should now be saved and will send notification whenever the button are on or off

How it works:

Install the app to your smartphone to control the devices (light strips, door lock, and fan)

And you can now use your smartphone to control your devices with the help of WiFI

You might also like