IoT with Raspberry Pi and Cayenne – Zero Ohm Electronics

IoT with Raspberry Pi and Cayenne

Posted by Momen Odeh on

Welcome to Zeroohm Raspberry Pi Training series. In this series of Raspberry Pi Training, Zeroohm will focus its efforts on helping the community learn more about Raspberry Pi fundamentals and basics starting with basic control of LED's, motors, sensors and utilizing of wirless communication. We hope that you find this useful, Please, leave a comment for any questions or comments or reviews!
We provide all our trainings for groups from schools, universities, public sector and private sector in Abu Dhabi, Dubai, Sharjah, Fujirah, RAK or anywhere in UAE. Please,click here to contact us directly for any training inquires.
Our Raspberry Pi training series:
This tutorial is looking to understand the concept of IOT using Raspberry Pi connecting with Cayenne software and doing simple projects.
What is Cayenne ?  
Is a software that designed to help programmers to use Internet of thing(IOT) with drag and drop interface to create projects and prototype in a simple way.
Cayenne divided into two platforms:
  1. Mobile App: used as remote monitor to control the iot using Android or iOS
  2. Online Dashboard: used to share the projects, set up roles and more
Is the Interface where you can manage, control your Raspberry Pi and Arduino, view device and sensor data history, setup automatic triggers, receive notification alerts and Create IoT projects.
Drag-and-drop widgets
Widgets here uses to control input / output data, status and actions. Every device, sensor and actuator that gets added in Cayenne has many widgets associated depending on the hardware capabilities. You can find widgets on the left side of your hand, and the lift side to each device’s Dashboard. Widgets can be edited on your dashboard by drag and dropping them anywhere you want.
The Projects feature allows you to make your own projects with specific name for each one, and each project devices has one custom dashboard. Each project has its own set of triggers and widgets that you can be setup.
Creating a Project
To begin creating a new project click the + Create New Project entry in the main menu, here you can add new device as you want
You will need software and hardware equipment:
  1. Raspberry Pi connected to the internet
  2. 220 Ohm Resistor
  3. Light -Emitting Diode (LED)
  4. Breadboard
  5. Jumper leads
  1. Cayenne Software
Note: You can download it in your smartphone by searching on google play or play store.
First of all, after download Cayenne you have to create an account to go further.
Getting started:
  1. Turn on your Raspberry Pi and connect it to the internet.
  2. Open GUI for Raspberry Pi
Note: if you don’t have screen click here and follow steps to open Graphical User Interface (GUI) on your laptop.
       3. Connect your Raspberry Pi to your local network by clicking on the network icon in the top right of the screen as shown below
          4. Click to your network name and Insert password, now you are connected with the Wi-Fi.
          5. Go to mobile app, choose Raspberry Pi as a device then click continue and search, now the app will search to the Raspberry Pi that connected to your network.
          6. Choose Raspberry Pi based on its IP, then click setup, now Cayenne will install on your Raspberry Pi automatically in 4 steps:
Step 1: Installing libraries
Step 2: Installing agent
Step 3: Installing software
Step 4: Installing drivers
Note: Those steps will take around 10 minutes or more.
Now Raspberry Pi is ready to use, and you will see an interface contain of many things like, RAM, CPU and Storage.
Start your first simple project:
Create new circuit as shown below:
Software implementations:
  1. Click on the plus icon in top right, and go to view all Actuators
  2. Choose light, then light switch, you will see many fields fill them as following:
First field: Type any name you, here we will name it blink-LED
Second field: choose your board as Raspberry Pi
Third field: Integrated GPIO
Fourth field: choose 11, means that you will connect your LED to pin 11.
Fifth field: enable Invert logic
 Sixth field: choose Button
Seventh field: choose Light button
Then press Add Sensor, and you will see that a new button will add to the interface, click on it and notice what happens to LED

Share this post

← Older Post Newer Post →

Leave a comment

Please note, comments must be approved before they are published.

Liquid error: Could not find asset snippets/bold-currency-converter.liquid