Introduction:                                                                                                                                                                                                                  Before you can manage your Arduino device using the online dashboard, you must setup your device and install the Cayenne Arduino Library onto the device.

Preparation:

Hardware:

1x Osoyoo UNO R3 Board with USB Cable

1x W5500 Ethernet Module

Software:

Arduino IDE(Please download IDE from: www.arduino.cc)

Cayenne Library

Step 1: Choose Arduino to start our IOT project

Please visit: https://cayenne.mydevices.com/cayenne/login enter your user name and password to login.

You will see the interface as followed picture, then select Arduino to start our IOT project.

Step 2: Set up your Arduino

Step 2 Arduino

Fristly, connect your UNO R3 board with W5500 ethernet module:

Arduino UNO W5500
5V 5v
GND GND
D10 SCS
D11 MOSI
D12 MISO
D13 SCLK

Power on your Arduino by connecting your Uno board with a USB cable . You should see the power LED lit on your board.

Add Cayenne Library to your Arduino IDE

The Cayenne Library is a collection of code, known as sketch files, that makes it easy for you to connect and send data to and from sensors, actuators and devices connected to Arduino boards. Cayenne sketch files can be combined with other sketch files for your IoT projects.

The Cayenne Library is available directly from the Arduino IDE Libraries list. To install the library, select Sketch > Include library > Manage Libraries. The Library Manager dialog will appear. From here, search for the Cayenne library and install it.
arduino-ide-manage-libraries

arduino-ide-add-cayenne-lib-using-lib-manager

The Cayenne library has now been expanded in the libraries folder in your Arduino sketches directory. You can verify this by going to the Sketch > Include Library menu where you should now see the Cayenne library at the bottom of the drop-down menu under Contributed Libraries. The Cayenne library is now ready to be used in your project.
Cayenne Library Installed
Another important library is Ethernet2. The installation method is similar to installation of Cayenne library.  In  Library Manager dialog window, simply search Ethernet2 and install it. Without Ethernet2 library, you may have missing file error during compiling.

Configure Arduino IDE

In order to successfully program your Arduino board, you will need to verify that the appropriate Board and Port are selected in the Arduino IDE.

First, verify that the correct Board is selected in the Tools > Board menu. Be sure to select the board type that you will be programming.
Arduino IDE board selection

Then, verify that you have the correct Port selected for communicating with your Arduino. Pick the correct port based upon how you are connecting your Arduino to your PC/Mac.
Arduino IDE port selection

Step 3: Connect your Arduino

After setting up your PC/Mac computer with the Arduino IDE and the Cayenne Library, you are ready to install Cayenne onto your device. Continue to Step 3 of the Arduino installation, where you will connect your board with Cayenne.

On this screen, when select your Arduino board, a list of connections appears below the board name. Select the Arduino Uno, and select Ethernet shield W5500.
Arduino Step 3

Click on the Sketch button next to “Ethernet Shield W5500”,   you will get a pop-up window which has Arduino Sketch code as following picture:

Copy & paste the sketch code into Arduino IDE and select Sketch > Upload to compile and upload the sketch into Arduino UNO board
Arduino IDE paste example sketch

As soon as your Arduino device comes online and connects to Cayenne, you will see your Arduino Board in the online dashboard.
Arduino 1st Experience

Leave a Reply

WordPress spam blocked by CleanTalk.
Bombax Theme designed by itx