EN / USD
Getting Started with Cayenne, introduction to cayenne, welcome to cayenne, cayenne tutorial
TEP , The Engineering Projects , Boxes

Getting Started with Cayenne - Arduino

Shares 2.5K Views
Reaction 40
Reaction 700
Reaction 60
Reaction 25
Reaction 60
Shares: 691
TEP , The Engineering Projects , PCBWAY

Getting Started with Cayenne, introduction to cayenne, welcome to cayenne, cayenne tutorial
Hello friends, I hope you all are fine and having fun with your lives. Today, I am going to share a new and very exciting service with you guys which is named as myDevices Cayenne, we will have a look at getting started with Cayenne. Its really an awesome platform for students and hobbyist who wants to work on embedded systems but are afraid of programming codes.

Cayenne is an online project building platform using drag and drop. Currently it supports Arduino and Raspberry Pi. In simple words, you can design any of your Arduino or Raspberry Pi project simply by drag and drop different components. You don't need to write any code, you just need to place your blocks and upload it to your Arduino board. Its also known as the Graphical coding.

I came to know about Cayenne a few days ago and I have really enjoyed working on it so I thought to share it with you guys so that you can also get benefit from it. In today's tutorial, I am just gonna give an overview of Cayenne and we will design a simple Arduino LED project on it. In the coming tutorials I will share different projects on Cayenne, which will help you guys in your projects. Moreover, first we will cover the Arduino Project on Cayenne and later we will work on Raspberry Pi as well. So, let's have a look at Getting Started with Cayenne.

Getting Started with Cayenne

  • First of all, what you need to do is to open this myDevices Cayenne Website.
  • Now on this myDevices Cayenne Website you have a to create a free account so click on the Green Button which says Get Started for Free.
Getting Started with Cayenne, introduction to cayenne, welcome to cayenne, cayenne tutorial
  • So, fill out the form on the Registration page and then it will ask you which one you want to use as shown in below figure:
Getting Started with Cayenne, introduction to cayenne, welcome to cayenne, cayenne tutorial
  • Now as we are gonna work on Arduino so I will select Arduino among them.
  • You must have the Arduino IDE installed on your computer and you should also install the Cayenne Library for Arduino.
Note:
  • When I first started working on Cayenne, I had an older version of Arduino software and when I compiled the code then it generated errors, so I updated my Arduino software and it worked fine.
  • So, you just make sure to have the latest Arduino IDE.
  • Next thing you need is the Arduino Ethernet or Arduino Wifi Shield, which will be used for uploading the code to Arduino board from Cayenne website.
  • So, now plug your Ethernet or Wifi shield on the Arduino board.
  • I have plugged Arduino Wifi shield with Arduino UNO.
  • So, now once you selected the Arduino then on the nex page you will get some instructions, which I have already disscused.
  • Now you should plug your Arduino board with your computer and click Next.
  • In this step you need to select your device as shown in below figure:
Getting Started with Cayenne, introduction to cayenne, welcome to cayenne, cayenne tutorial
  • In the above figure, you can see first of all, I have selected the Arduino UNO shield becasue I want to upload the code in this shield and then I have selected the Wifi Shield using which the code will be uploaded.
  • Now when you click on the Sketch button you will get a small sketch which you need to upload in your Arduino board.
  • This is the only code which you need to upload, this code is acting as a bridge between Arduino and Cayenne.
  • Once you uploaded that code then Cayenne will automatically detect your board, you just need to wait.
  • As soon as your board is detected, you will be redirected to your Dashboard, where you can design your first project as shown in below figure. :)
Getting Started with Cayenne, introduction to cayenne, welcome to cayenne, cayenne tutorial

Arduino LED Blinking Project in Cayenne

  • Now Click on the Create new Project button and give it a name, I have given it Arduino LED and click OK.
  • The new project will be created, now we need to add the LED Control in it.
  • So, in order to do so you need to click on the Add new button and then Device/ Widget as shown in below figure:
Getting Started with Cayenne, introduction to cayenne, welcome to cayenne, cayenne tutorial
  • You can see in the above figure, that all the devices are now visible.
  • As we are working on the LED, so you need to click the Light icon, which is among Actuators.
  • When you click it you will get something as shown in below figure:
Getting Started with Cayenne, introduction to cayenne, welcome to cayenne, cayenne tutorial
  • So, I have selected the Light switch and in its properties, I have selected the D8 which is 8th digital Pin of Arduino.
  • Now click on the Add Actuator button and you are done.
  • You first LED Blinking Project is done on Cayenne and it will look something as shown in below figure:
Getting Started with Cayenne, introduction to cayenne, welcome to cayenne, cayenne tutorial
  • So, now when you click this light switch your LED on pin 8 will go ON and if you click it again then it will go OFF.
  • I have plugged an LED on Pin # 8 on my hardware.
  • In the below video, I have explained this Arduino LED project in more detail, so must watch it:
I hope you guys have enjoyed today's tutorial and are gonna like this Cayenne online Platform. I will post more tutorial on it in which I will interface all these devices with Arduino. So, stay tuned and have fun !!! :)
TEP , The Engineering Projects , Tags
Comments

Write a Comment

WordPress Google Twitter Facebook User
Robot
Comments Comments on ‘’ Getting Started with Cayenne - Arduino ‘’ (10)
Comment
Reaction 40
Reaction 700
Reaction 60
Reaction 25
Reaction 60
Hi. I read your article and it really helps to solve many of my problems. Keep going. To collect data from esp8266 dev board, i am using Cayenne programmed combine with Arduino IDE. When I tested the Cayenne ESP8266 as an example, i get good connection with the time data received. My question is I did not find the documentation on the Cayenne. why is that? I also don’t know the best possible way to collect data from devices. And also guide me how can I save power battery with the dev board? I will really appreciate your valuable suggestions.
Comment
Reaction 40
Reaction 700
Reaction 60
Reaction 25
Reaction 60
Hey! Thanks for writing a detailed article about cayenne. I need to ask some questions about cayenne dashboard. Please mention the mydevice cayenne compatibility with the voice assistants? Such as Alexa or Google assistant? How can I use it? What is the maximum memory or time that cayenne dashboard can record? I am trying to create electric energy consumption graph in kWh but the values are not showing on the graph. Please suggest the solution? When I try to create a graph of electric energy consumption, in kWh, the values don’t appear in the graph. I’m using the data from a sensor current in the form of electric power, in kW. Any solutions?
Comment
Reaction 40
Reaction 700
Reaction 60
Reaction 25
Reaction 60
You have talked about the code in article. I want to know how to use code for my Devices Cayenne? I have tried many other platforms and they required the code. In order to control it, do I have to connect to the same wifi as my Raspberry Pi? is it necessary? Lastly, is it normal for the dashboard account that it is taking some time to recognize when I powered on my Raspberry Pi. Why is it taking time?
Comment
Reaction 40
Reaction 700
Reaction 60
Reaction 25
Reaction 60
Good one. I want to know that how to apply more complex triggers in the cayenne dashboard. I want to create a trigger. And during creating a trigger, we use a device with condition “if” side and action on the other device on the “then” side. So tell me how can I apply a double if? Thank you
Comment
Reaction 40
Reaction 700
Reaction 60
Reaction 25
Reaction 60
Hello! Jack here. I am connecting Arduino to the cayenne server using the ESP8266 wifi shield. After connecting once, the chip is heat up. And showed some message after sometime but the Cayenne didn't get connected to the Arduino. Can you solve this issue? Thanks in advance
Comment
Reaction 40
Reaction 700
Reaction 60
Reaction 25
Reaction 60
Hi. This is a very well written article. I need to connect Ethernet shield to Arduino uno and I am following the instructions to connect to Cayenne site. But it is taking too much time to connect and the board is also not appearing on website. Help plz.
Comment
Reaction 40
Reaction 700
Reaction 60
Reaction 25
Reaction 60
Hello everyone. Very impressive article. As I am new to Cayenne and I really found this article helpful for me. I think Cayenne is very interesting combine with Raspberry. I have some questions about this. How can I use a widget to light up 3 LEDs with a set delay and in a sequence? Further, please mention what is the system if we want to change the status of widget when the interrupter is off or on? And last question is that Cayenne can control the display 4 as output or not? Thanks
Comment
Reaction 40
Reaction 700
Reaction 60
Reaction 25
Reaction 60
How’s everyone? When I connected to Cayenne then how can I check the Arduino sketch? I know it is going to print that but I want that LE start blinking after the boar come online at mydevices.com. So any idea about this?
Comment
Reaction 40
Reaction 700
Reaction 60
Reaction 25
Reaction 60
I am facing the connection problem of my Arduino 5100 Shield with the Cayyene platform. It already has been connected to internet but I don’t know why it is not connecting to Cayyene. Any help? I specified Gateway and DNS for my internet connection. Is there any problem with these stuff? What are the things that I need to check for my connection with Cayyene . Thanks in advance.