Controlling the LED from a cloud dashboard

It's nice to be able to control an LED from your web browser, but what we really want is to be able to control it from a nice graphical interface, from anywhere in the world.

This is exactly what we are going to do in this section, by using a service called the aREST dashboard. We will actually use it not only to control the LED, but also to dim the LED using a slider, right from your browser.

If it's not been done yet, create an account at:

http://dashboard.arest.io/

You should be able to create a new dashboard from the main interface:

Controlling the LED from a cloud dashboard

Now, inside the dashboard, we are going to create a new element to control and dim the LED.

Create a dashboard element of the Analog type, and also insert the ID of the device you want to control. Also don't forget to set the pin to 5:

Controlling the LED from a cloud dashboard

You should instantly see the newly created element inside the dashboard:

Controlling the LED from a cloud dashboard

Now, try the slider that you just created:

Controlling the LED from a cloud dashboard

You should notice that whenever you move this slider and release the mouse, it should dim the LED accordingly. This is, for example, perfect for dimming an LED light that you have in your home.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.222.167.183