Skip to content

LED control with Arduino, Beebotte

This tutorial presents how Beebotte can be used to control a led connected to an Arduino board.

gemma

Published January 31, 2023

Original author: beebotteOriginal source (new tab)

LED control with Arduino, Beebotte

Components

Hardware components
Software Apps and online services

x 1


Project description

Required Hardware

We need the following hardware in order to complete this tutorial:

  • Arduino UNO board or equivalent
  • Arduino Ethernet Shield to connect to the Internet
  • Breadboard (tiny one is enough)
  • LED
  • 220 Ω resistance
  • Jumper wires

Subscribing to led control messages

Include dependencies:

#include <SPI.h>
#include <Ethernet.h>
#include <PubSubClient.h>
#include <ArduinoJson.h>

Creating a Dashboard with a control widget

In your account page, go to My Dashboards and click Create Dashboard; enter a friendly name and a short description for your dashboard then add an ON/OFF Widget. Indicate the channel and resource you want to control with this widget. Voilà.

Creating a Dashboard with a control widget

 

Comments

Comments