This is an old revision of the document!


Led Ring with Web Application

Author: Nuță Mihaela-Mădălina

Introduction

The purpose of this project is to control a NeoPixel Led Ring in a beautiful manner.

The user should be able to control it using a simple web application or a push button. The web page provides several predefined styles that can be selected or a color picker that can be used in order to select a specific color. The push button can be used to cycle through all the predefined styles.

Hardware Description

Components:

  • ESP32 Microcontroller
  • NeoPixel Led Ring
  • Push Button
  • Wires
  • Breadboard

The electronic schema that I created with www.draw.io

Software Description

The flow of the project

The web application was created using Javascript, HTML and CSS and deployed using Firebase Hosting https://firebase.google.com/docs/hosting/quickstart.

The application gives the possibility to control the NeoPixel LedRing in 2 ways:

  1. predefined styles selection
  2. color picker

When having a style selected, the application writes into the database 2 variables:

  • type of selection: style
  • the name of the selected style

When having a color selected, the application writes into the database 2 variables:

  • type of selection: color
  • the color as an array of 3 values

The microcontroller is connected to the WIFI. Using the WIFI connection, it is reading from the database in a loop and based on the provided data, it changes the style of the led ring.

Snapshots of the Web App and Firebase Realtime Database

  1. Style Selection

  1. Color Selection

Used Libraries

#include <iostream>
#include <Adafruit_NeoPixel.h> // to control the NeoPixel Ring
#include <WiFi.h> // to connect the ESP32 microcontroller to WIFI
#include <Firebase_ESP_Client.h> // used for Firebase Realtime Database
#include "addons/TokenHelper.h"
#include "addons/RTDBHelper.h"

Conclusion

Bibliography

iothings/proiecte/2022sric/ledring.1685269779.txt.gz · Last modified: 2023/05/28 13:29 by mihaela.nuta1207
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0