1 Overview

in this lesson, we’ll show how to control the servo motor remotely through Cayenn IOT platform.

2 Hardware Preparation

UNO Board 1
Ethernet Shield W5100 1
USB cable 1
 Servo motor SG90 1
Jumper wires  Several
Breadboard 1

3 Hareware connecion

Connect the servo motor SG90 with  UNO as following diagram:

4  Add new Device

Log in Cayenne IOT platform, Add new…->Device/Widget

Choose: Actuators->”Motor”

Click “Motor”->”Servo Motor”

Change the datasheet as followed:

In you dashboard, click”Step 1:Sketch File”, the sample sketch will be displayed,copy and paste the sketch into Arduino IDE.

Choose the Board type Arduino Uno and corret Port, remember to use your authentication token. upload the sketch to Uno board, in your Cayenne dashboad click”Setp 2 :Add Actuators” then you should see the Servo Motor was added on your dashboad:

Now, no matter where you are, you can control the servo motor by clicking the slider icon from your smartphone or web browser.the servo will move depending on the slider value.

Leave a Reply

WordPress spam blocked by CleanTalk.
Bombax Theme designed by itx