Simple IoT LED Control (Turn a LED On/off Over the Internet With a Raspberry Pi)

by LimitOS in Circuits > Raspberry Pi

1685 Views, 0 Favorites, 0 Comments

Simple IoT LED Control (Turn a LED On/off Over the Internet With a Raspberry Pi)

IoT LED
led_on-dbe7c1774851f57a301ee2098515766fbc13b2c268bf2a387bf19388aada23c7.jpg

What you'll be building

This tutorial teaches you how to turn a light-emitting diode (LED) on and off via the internet.

Requirements

Raspberry Pi connected to the internet

Raspberry Pi OS (Buster)

Circuit materials: LED, breadboard, wires, 330 ohm resistor

Set Up the Circuit

led_circuit-5a0e82d04131ee278f55cb7e869e7000f3708f11da35761f9044583d0ce1997a.png
led_off-3929514fcf7ae399ba2030ff971113f592672b788a2bf8db12d6c2c4447d2493.jpg

Connect the LED to GPIO pin 4, and add a 330 ohm resistor in series.

Run LimitOS on the Raspberry Pi

limitos run.GIF

LimitOS runs alongside your existing operating system, and can be run via:

curl -sS https://limitos.com/run | bash

Follow the on-screen instructions to register the device afterwards.

Set Up the Device on the LimitOS Website

led_on-dbe7c1774851f57a301ee2098515766fbc13b2c268bf2a387bf19388aada23c7.jpg

After registering your device, you'll be on the LimitOS website at https://limitos.com . From there, go to your device by clicking "My Devices" and selecting your device. Then add pin 4 as a digital output, and you can then click the "on" or "off" buttons on the website to turn the LED on or off.