In this lesson, we’ll learn how to use Arduino turn on/off a LED through Cayenne IOT platform. the parts needed for this lesson as followed:
Ethernet Shield W5100
200 ohm resistor
2)Circuit Graph:3)Action on Cayenne control panel
Login Cayenne platform and add new device
Select”Add new…”-> Click Device/Widget”
Click: Actuators–>Light，choose Light Switch
all the attributes could be changed:Widget Name: Give your actuator a name
Select Device: Select your Arduino device, this lesson we using UNO, so choose Arduino UNO.
Connectivity: Select your method of connectivity: There are Digital pins, Analog Pins and Cayenne Virtual Pins.
If you’re reading data from an analog sensor, the Arduino may have several analog inputs that can be used. Simply connect your analog sensor to one of the analog pins on the Arduino. Make sure you select the correct corresponding pin when adding a widget for your analog sensor.
A digital pin can be used to read data from a non-analog sensor, but the data will need to be written to a virtual channel. If you’re trying to read data from a non-analog sensor, you’ll most likely use a virtual pin.
VirtualVirtual pins are channels to send and receive different data types from and to the Arduino (e.g. SPI, I2C, 1-Wire and devices connected to Arduino expansion boards). There are 26 virtual pins available for each Arduino board.
The HC-06 is a class 2 slave Bluetooth module designed for transparent wireless serial communication. Once it is paired to a master Bluetooth device such as PC, smart phones and tablet, its operation becomes transparent to the user.