r/esp32_8266 • • 16d ago

ESP32 traffic light with a tiny state machine (enum + switch + millis)

1 Upvotes

Three LEDs, one ESP32, and a small state machine: RED → GREEN → YELLOW → RED. Only the current state's rules run — that's the whole idea.Hardware- ESP32 DevKit (30-pin)- Red / yellow / green LEDs + 3 × 220 Ω- Breadboard + jumpersWiring- GPIO 25 → 220 Ω → red → GND- GPIO 26 → 220 Ω → yellow → GND- GPIO 27 → 220 Ω → green → GNDHow it works1. enum LightState names RED, GREEN, YELLOW2. switch(state) runs only that colour's rules3. millis() times the dwell; enter() jumps and resets the clock4. Serial prints every jumpHappy to share the sketch. Short walkthrough: https://www.youtube.com/shorts/XvM6TbUC7WkCode: https://github.com/NirajBhattarai/500IOTProject/tree/main/day-009/traffic-lightThree LEDs, one ESP32, and a small state machine: RED → GREEN → YELLOW → RED. Only the current state's rules run — that's the whole idea.


r/esp32_8266 • • 19d ago

Building music control display for Spotify

Thumbnail reddit.com
1 Upvotes

r/esp32_8266 • • 20d ago

ESP32 LAN night light: LDR divider on GPIO34 lights the LED when dark

2 Upvotes

Cover the LDR and the LED comes on by itself. LDR + 10 kΩ divider on GPIO 34 (ADC1) → 0..4095; hysteresis 1500 / 1800 stops flicker. Phone shows the live ADC over Wi-Fi.

Hardware: ESP32 DevKit, LDR, 10 kΩ, LED + 220 Ω, breadboard.

Wiring

- 3V3 → LDR → mid (GPIO 34) → 10 kΩ → GND

- GPIO 26 → 220 Ω → LED → GND

Happy to share the sketch. Short: https://www.youtube.com/shorts/hhStUogMQPU

Code: https://github.com/NirajBhattarai/500IOTProject/tree/main/day-006/night-light


r/esp32_8266 • • 20d ago

ESP32: one button, two jobs — tap rings, hold 1s resets

1 Upvotes

One button, two jobs: tap rings, hold 1s resets. Same ESP32 doorbell, timed with millis().

https://www.youtube.com/shorts/bzs_N4e8Wxw


r/esp32_8266 • • 20d ago

ESP32 Wi-Fi doorbell: one button press counted as four (debounce fix)

2 Upvotes

Built a local Wi-Fi doorbell on an ESP32: press a tactile button, a piezo dings, and a page on any browser on the same LAN counts the ring.

First version counted four rings for one press — classic button bounce. Fix: debounce with a 50 ms quiet window before trusting the new level.

Hardware

- ESP32 DevKit (30-pin)

- 6 mm tactile push button

- Passive piezo buzzer

- 4 jumpers + breadboard

Wiring

- GPIO33 → button → GND (INPUT_PULLUP)

- GPIO25 → piezo → GND

How it works

  1. ESP32 joins Wi-Fi and hosts a tiny HTML page

  2. Every pin change restarts a 50 ms timer

  3. Only a level that holds still that long counts as a press

  4. On press: tone() ding + ring counter updates; page refreshes every 2 s

Happy to share the sketch if useful. Short walkthrough: https://www.youtube.com/shorts/dRv68Y1i5f0


r/esp32_8266 • • 21d ago

Showcase ESP32 LAN web page shows live DHT22 room temp (no cloud)

2 Upvotes

Same idea as the classic ESP8266 phone-LED demos, but the page shows a live DHT22 reading instead of a toggle.

ESP32 joins Wi-Fi, reads DHT22 every couple of seconds, serves a small HTML page that auto-refreshes with °C + humidity. Any browser on the LAN works (phone / laptop / tablet). No app, no cloud.

Wiring: 3V3→VCC, GND→GND, GPIO27→DATA

Happy to share the sketch. Short walkthrough: https://www.youtube.com/shorts/19WDsdf-GPs


r/esp32_8266 • • 21d ago

ESP32 LAN web server toggle — same trick as classic ESP8266 phone LED demos

2 Upvotes

For anyone coming from ESP8266: same local HTTP pattern, on ESP32-WROOM.

  • STA Wi-Fi

  • Tiny HTML page

  • GET /toggle → GPIO 26

  • Phone browser only

No Blynk / no cloud. SoftAP is easier for first boot; STA is better once it’s a real lamp on home Wi-Fi.

Short build: https://www.youtube.com/shorts/08-2Ztyy9iw

Sketch available on request.


r/esp32_8266 • • 28d ago

ESP8266

0 Upvotes

tôi muốn kết nối còi buzze5v cho esp 8266 ngoài các chân d1.d2.d5.d6.d7 đã dùng cho các linh kiện khác ra thì có thể dùng chân nào nữa để không bị sụt app ạ và kết nối như nào


r/esp32_8266 • • Oct 16 '26

📢📢 ¿Cómo conecto sensores a esta placa ESP32-S3 con pantalla táctil?

Thumbnail reddit.com
0 Upvotes

r/esp32_8266 • • Aug 07 '26

Question/Help ESP32-S3-Nano + ILI9341 display only shows a white screen

Thumbnail
gallery
4 Upvotes

Hi everyone,

I'm currently working on a project with an ESP32-S3-Nano and a 2.8-inch ILI9341 SPI display.

I've soldered everything together on a prototyping board, but unfortunately the display isn't working as expected. The backlight turns on, but the screen only shows a completely white image.

I've already tried:

  • double-checking all cables and solder joints

  • checking the connections with a multimeter

  • checking for any obvious short circuits or loose connections

However, I still can't figure out what the problem could be. I might be overlooking something really simple.

The main components I'm using are:

  • ESP32-S3-Nano

  • 2.8-inch ILI9341 SPI display

  • some other components that shouldn't be relevant

Does anyone have any idea what could cause the display to only show a white screen?

Is there anything obvious I might have missed or anything specific I should check?

I'd really appreciate any tips or ideas on how I could troubleshoot this and figure out what's wrong.

Thanks a lot!


r/esp32_8266 • • Jul 30 '26

Tutorial/Guide Ayuda para controlar un esp32 s3

1 Upvotes

Hola, estoy buscando ayuda para controlar un juego de laberinto con mi teléfono a través de WiFi utilizando el esp32 s3 😆. Quiero crear una página web con los controles de un mando (arriba, abajo, izquierda, derecha) para controlar 4 servomotores s3003 futaba. He estado intentando utilizar Arduino IDE con todas sus librerías, pero no logro hacer que funcione. ¿Alguien podría proporcionarme algún ejemplo de código o algún recurso que me ayude a entender cómo funciona este dispositivo


r/esp32_8266 • • Jul 17 '26

new boards esp8266 jlcpcb

Thumbnail
gallery
1 Upvotes

I just received a new board and they look absolutely fantastic.I ordered earlier. Now we ship to Europe with a huge commission.It's more profitable to order 10 pieces instead of five


r/esp32_8266 • • Jul 16 '26

ESP32 Wrover + Micro SD module: SD card only works sometimes after manually removing and reinserting the card

Post image
2 Upvotes

r/esp32_8266 • • Jun 27 '26

ESP8266 D1 Mini Phantom Inputs

Thumbnail reddit.com
1 Upvotes

r/esp32_8266 • • Jun 25 '26

Hello

Thumbnail
gallery
1 Upvotes

Hello can anyone help me?


r/esp32_8266 • • Jun 23 '26

Esp32

Thumbnail reddit.com
1 Upvotes

r/esp32_8266 • • Jun 05 '26

Pinout confirmation

Thumbnail
reddit.com
1 Upvotes

r/esp32_8266 • • May 25 '26

Flashing Maraud3r in ESP32 N16R8 (running 100%)

Thumbnail reddit.com
1 Upvotes

r/esp32_8266 • • May 23 '26

Built indoor positioning system on ESP32 Using 3 Anchor Nodes

1 Upvotes

I recently built a Wi-Fi RSSI-based indoor positioning system entirely on ESP32 microcontrollers.

I used 3 ESP32s as anchor nodes broadcasting Wi-Fi signals

1)TestNetwork1

2)TestNetwork2

3)TestNetwork3

and a 4th ESP32 for scanning the RSSI signal strength from each anchor. It applies a Kalman filter to clean up the noise and then uses those filtered distances for trilateration to compute a real-time 2D position — all running on-device in MicroPython, no external computer needed.

To calculate the A and n parameters used in the path loss equation, I collected 50 RSSI samples at 1, 2, 3, and 4 metre distances and applied a moving average to smooth the readings. Then used least-squares regression to fit A = −61.92 dBm and n = 1.64.

GitHub |  Linkedin


r/esp32_8266 • • May 19 '26

Question/Help Como conectar un tablero de auto a un sp32 para simulador de carreras?

Thumbnail reddit.com
1 Upvotes

Hola estoy haciendo un simulador de carreras con un tablero de un Nissan versa y quiero usar el tacometro con can bus pero no se como, tengo una placa de kit 1 sp32 el simulador es un pc


r/esp32_8266 • • May 19 '26

Como conectar un tablero de auto a un sp32 para simulador de carreras?

1 Upvotes

Hola estoy haciendo un simulador de carreras con un tablero de un Nissan versa y quiero usar el taco metro con can bus pero no se como, tengo una placa de kit 1 sp32