• Stars
    star
    148
  • Rank 249,983 (Top 5 %)
  • Language
    C++
  • License
    Creative Commons ...
  • Created over 4 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Using an ESP32 Camera board to create self organising LEDs

ko-fi

Self Organising LEDs

Demo Video

And the latest demo on the Christmas tree:

Demo Video

This project uses an esp32 board to drive a string of WS2118 LEDs. It uses some basic image processing to detect where the LEDs are so that you can display geometric patterns even if the LEDs are not arranged in a grid.

If you have an espcam then you can just follow the instructions on the Setup section. On first boot the espcam will try and calibrate the LED positions.

Once calibrated these are stored in nvram. If you need to recalibrate just navigate to the web interface: http://espcam.local and hit the calibrate button.

If you do not have an ESP-CAM and want to use your phone for calibration then you will need to jump through some hoops.

You cannot access the phone's camera unless you are using https - currently the webserver that I am using only supports http.

To get an https connection I would suggest using ngrok - https://ngrok.com/.

You can create an https tunnel on your computer to the esp32 device. I would recommend using the ip address.

Do something like:

ping espcam.local

And take a note of the ip-address. Then do:

ngrok http IP_ADDRESS

This will create an https endpoint in the cloud that you can use to access the esp32 securely.

You will need a steady hand or a tripod as the calibration takes about 20-30 seconds depending on how many LEDs you have.

Setup

You will need python3, node and yarn installed.

Create a virtual environment, activate it and install the requirements using:

python3 -m venv venv
source ./venv/bin/activate
pip install -r requirements.txt

Create a file WifiCredentials.h in the firmware/src and populate it with your wifi SSID and PASSWORD:

#define SSID "<SSID>"
#define PASSWORD "<PASSWORD>"

In main.cpp update the defines for the number of LEDs you have and if you have an ESP-CAM or a normal ESP32 board.

#define LED_COUNT 100
#define CAMERA_ENABLED 1

You can now use the Makefile to build the firmware, frontend and upload them to your device.

make upload

More Repositories

1

VisionCoreMLSample

Sample application using Vision Framework and Core ML
Swift
597
star
2

esp32-walkie-talkie

A Walkie-Talkie based around the ESP32 using UDP broadcast or ESP-NOW
C++
424
star
3

diy-alexa

DIY Alexa
Jupyter Notebook
387
star
4

diy-esp32-epub-reader

An ESP32 e-reader
C
323
star
5

esp32_audio

Sample code for reading audio samples from the ESP32 ADC using I2S
C++
322
star
6

ar-browser-sudoku

Solving Sudoku Puzzles in the Browser Using Augmented Reality
Jupyter Notebook
119
star
7

voice-controlled-robot

A voice-controlled robot using the ESP32 and TensorFlow Lite
Jupyter Notebook
108
star
8

tensorflow-lite-esp32

SImple example getting TensorFlow Lite up and running on the ESP32 with Platform.io
C++
103
star
9

command_line_chatgpt

A command line chat bot using the ChatGPT API from OpenAI
Python
95
star
10

kicad-coil-plugins

Some simple plugins for generating stator coils in kicad
Jupyter Notebook
88
star
11

esp32_sdcard_audio

A simple example that shows how to record a WAV file to an SD Card on the ESP32
C++
72
star
12

esp32-play-mp3-demo

A very simple example showing how to play mp3 files on the ESP32
C
72
star
13

m5stack-core2-audio-monitor

A fun little project to test out the mic on the M5Stack CORE2
C
66
star
14

esp32-i2s-mic-test

The Simplest Test Code for an I2S Microphone on the ESP32 I can Imagine
C++
52
star
15

esp32-tft-audio-monitor

Port of my M5Stack Core 2 audio monitor project to generic ESP32s with TFT screens
C
52
star
16

esp32-laser-show

C
50
star
17

esp32_wireless_microphone

Wireless microphone using websockets or TCP sockets
C++
49
star
18

esp-asteroids

Asteroids and lasers - what could possibly go wrong...
C
48
star
19

ESPNowSimpleSample

A simple example of using ESP-NOW for broadcast and peer to peer messaging
C++
32
star
20

platformio-tensorflow-lite

Easily extract the tfmicro framework for use in platform.io
Dockerfile
28
star
21

wordle_robot

A robot to solve wordle puzzles
Python
23
star
22

esp32-hsp-hf

ESP32 hsp_hf bluetooth profile using the bluekitchen/btstack
C
21
star
23

ICS-43434-breakout-board

Sample code for the ICS-43434 breakout board and the ESP32
C++
15
star
24

esp-now-range-test

Some simple code for testing esp now range
C++
14
star
25

ESP32RemoteLogging

This repository shows you how to log messages from your Arduino/ESP device to a remote logging system
C++
12
star
26

micropython-i2s-esp32-test

A simple example showing how to use MicroPython with I2S on the ESP32
C++
10
star
27

esp32_deep_sleep

Examples for ESP32 deep sleep
C++
10
star
28

ChessGPT

A Simple Plugin For ChatGPT to help it play chess
Python
10
star
29

ESP32-E-Paper-Weather

ESP32 E-Paper Weather Display using the LILYGO® TTGO T5s V2.8 ESP32 2.7" EPaper Plus Module
C++
9
star
30

chatgpt-memory

A simple experiment adding memory to ChatGPT
Python
8
star
31

esp32-ulp

A couple of demos showing how to use the Ultra Low Power coprocessor on the ESP32
C++
8
star
32

tensorflow-tutorial

A collection of simple tensorflow tutorials
Jupyter Notebook
8
star
33

ESP32Ota

Simple demonstration of updating the ESP32 Over The Air.
C++
6
star
34

stereo-i2s-amp-board

MAX98357 Stereo Amplifier Breakout Board
6
star
35

ESP32WebSPIFFS

Demonstration project serving html from SPIFFS on the ESP32
C++
5
star
36

as5048a-demo

Sample code for the AS5048A Magnetic Rotary Encoder
C++
4
star
37

supersise-seven-segment

C++
4
star
38

gpt-chess

Play chess against ChatGPT
TypeScript
3
star
39

esp32-gps

A simple example of connecting a GPS module to the ESP32
C++
2
star
40

wio-terminal-audio-monitor

A nice little audio visualiser for the Wio terminal using the built in microphone
C++
1
star
41

esp32-s3-pinouts

ESP32-S3 Pinout Quick Guide
1
star
42

esp32-jpeg-perf-tests

C
1
star
43

crypto-totals

Totals up all your crypto coins and tells you the total value
JavaScript
1
star
44

chatgpt-hangman

A plugin to play hangman with ChatGPT
Python
1
star
45

react-native-web-view

This repository demonstrates how to expose a native Swift view to React Native.
Java
1
star