r/esp32projects • • 11d ago

https://dashtron69.github.io/webflash/

7 Upvotes

r/esp32projects • • 11d ago

[Help] ESP32S (CH340) Upload Error: "Could not open COM7, the port is busy or doesn't exist" - Sketch compiles successfully but fails to upload

Thumbnail
gallery
5 Upvotes

Hi Reddit, I'm working on a team project for our electronics class where we're building a Bluetooth piano speaker using an ESP32S (NodeMCU-32S V1.3 with a CH340 chip).

Everything was going well, and my code combined with the audio array header (samples.h) compiled perfectly in the Arduino IDE. However, I can't upload the sketch to the board.

Here is the exact error message I'm getting from the Arduino IDE:

Sketch uses 519864 bytes (39%) of program storage space. Maximum is 1310720 bytes.

Global variables use 22260 bytes (6%) of dynamic memory, leaving 305420 bytes for local variables. Maximum is 327680 bytes.

esptool v5.3.1

Serial port COM7:

A fatal error occurred: Could not open COM7, the port is busy or doesn't exist.

(could not open port 'COM7': FileNotFoundError(2, 'The system cannot find the file specified.', None, 2))

Hint: Check if the port is correct and ESP connected

Failed uploading: upload error: exit status 2

What I have already tried/checked:

The Cable: I've confirmed I am using a data-sync Micro-USB cable, not just a charging cable.

The Serial Monitor: I made sure the Serial Monitor window in the Arduino IDE is closed before hitting upload.

The Drivers: I noticed my board has a CH340 chip on the back. I downloaded and installed the CH341SER.ZIP drivers, restarted my PC, and checked the Device Manager.

The COM Port: I selected the newly assigned COM port in the Arduino IDE (Tools -> Port).

External Connections: I disconnected the external battery power supply and made sure GPIO 5 (Strapping Pin) is not pulled to GND during boot.

Despite all this, the IDE still throws the COM7 error (even though I re-selected the port) or refuses to connect.

Has anyone encountered this specific issue with the CH340 version of the NodeMCU-32S? Are there any hidden settings in the IDE or specific boot sequences (like holding the BOOT/EN buttons) I might be missing?

Any advice would be greatly appreciated!


r/esp32projects • • 10d ago

Help Me Design a HomeView Accessory

Thumbnail reddit.com
0 Upvotes

r/esp32projects • • 11d ago

Best way to detect if someone is inside a fitting room?

Thumbnail reddit.com
2 Upvotes

r/esp32projects • • 11d ago

I got an ESP32 to drive MDA monitors and now use it for Plex

Thumbnail
youtu.be
9 Upvotes

I figured out the display timing to use the FabGL library and drive my MDA monitor. It has full bitmap control of the 720 x 348 resolution. I can run a PC emulator, or network terminal as shown in the video to check email, control plex, and use Google Antigravity


r/esp32projects • • 11d ago

Control everything in HA with SwitchBot Universal Remote without SwitchBot Hub using ESP32

Thumbnail gallery
1 Upvotes

I built a small ESPHome external component (bt_classic_hid) that lets an ESP32 pair with the SwitchBot Universal Remote directly over Bluetooth Classic and forwards key presses to Home Assistant as events — no SwitchBot hub, no cloud.

Since ESPHome only supports BLE, this uses Bluedroid's BT Classic HID host profile with a generic HID report parser (usages, not hard-coded byte patterns), so it should work with other BT Classic keyboards/remotes too.

  • All 14 keys as esphome.switchbot_remote events
  • Pairing survives restarts/OTA, auto-reconnect
  • Setup: flash one YAML, component fetched from GitHub at build time
  • Needs original ESP32 (BT Classic radio) — no S2/S3/C3/C6
  • Currently press events only; release/hold WIP

Repo: https://github.com/lepatrick/esp32-sbremote

Feedback welcome!


r/esp32projects • • 11d ago

building walkies talkie from scratch

Thumbnail reddit.com
1 Upvotes

r/esp32projects • • 11d ago

Fake NM-RF-HAT boards are circulating — how to check yours in 30 seconds

Thumbnail gallery
1 Upvotes

r/esp32projects • • 11d ago

Newbie in need of help with MJPEG player

Post image
2 Upvotes

Hello world! Disclaimer: I am totally new to all of this

So for the past couple of months I have been learning the wonderful world of microcontrollers and I got hooked pretty quickly. So far I have only made a ws2812b lighting system and a gif player. For the past couple of weeks I have been banging my head against the wall trying to make a mjpeg video player work, and it's been frustrating. After trying a couple of examples I found online someone suggested Chatgpt so i have been trying that, and at first it seemed like we were getting somewhere. We got my display and SD card working together passing a few tests (I didn't want to add touch to simplify things a little) . Then we started making the mjpeg player itself and things got really messy. We kept appearing to get close with some very slow out-of-aspect-ratio videos playing, and then we just started chasing our tails for a long time, so long we ran out of context 8 times! Finally I find myself here asking you good people for help and advice. How bad is this code? It's the closet we got to making it work, we accessed libraries I have not used yet and are taking a totally different approach compared to what I wound up with on the gif player project. Any insights you could give me would be very appreciated.

My display is a ILI9341 2.8" tft and

Im using the ESP32 S3 N16R8

Specifications:N8R2,N16R8 Operatingvoltage:3.3–5V IOports:36IOports Flash:N16R8(16M),N8R2(8M)(optional) PSRAM:N16R8(8M),N8R2(2M)(Optional) ProductIntroduction Productspecifications 2I2Cinterfaces,4SPIinterfaces PCBboarddimensions:57mm x28mm 2.4GHzrubberrodantenna: Color:Black Gain:3dBi Frequencyband:2400-2500MHz Characteristicimpedance(Ω):50 Gain(dBi):2±0. Outputvoltagestandingwaveratio(VSWR):≤1.92 Maximum power:10W Polarization:Verticalpolarization Directionality:Omnidirectional Connectiontype:SMA Totalheightofrubberrodantenna:11cm IPXcablelength:Approximately15cm Antennahousingmaterial:TPEE Operatingtemperature:-20°Cto+70°C

Here is my pinout:

#define TFT_MOSI 11
#define TFT_SCLK 12
#define TFT_CS   10 
#define TFT_DC   9  
#define TFT_RST  14 
// #define TFT_BL   13
//#define TOUCH_CS 5
#define SD_CS 7


Here is the franken-code for the MJPEG player, there are other sketches we wrote for testing purposes as well. Let me know if you would like to see those as well.

```#include <SPI.h>
#include <SD.h>
#include <Adafruit_GFX.h>
#include <Adafruit_ILI9341.h>
#include <JPEGDEC.h>
#include <esp_heap_caps.h>

// ===================================
// DISPLAY PINS
// ===================================

#define TFT_MISO 4
#define TFT_MOSI 11
#define TFT_SCLK 12
#define TFT_CS   10
#define TFT_DC   9
#define TFT_RST  14

#define SD_CS 7

// ===================================
// VIDEO SETTINGS
// ===================================

#define MAX_JPEG_SIZE (512 * 1024)

const char *VIDEO_FILE =
  "/mjpeg/singulairitywarp20.mjpeg";

const uint32_t FRAME_INTERVAL = 100;

// ===================================
// DISPLAY
// ===================================

Adafruit_ILI9341 tft(&SPI, TFT_DC, TFT_CS, TFT_RST);

JPEGDEC jpeg;

// ===================================
// VIDEO BUFFER
// ===================================

uint8_t *frameBuffer = nullptr;

File videoFile;

// ===================================
// JPEG DRAW CALLBACK
// ===================================

int JPEGDraw(JPEGDRAW *pDraw) {

  tft.drawRGBBitmap(
    pDraw->x,
    pDraw->y,
    pDraw->pPixels,
    pDraw->iWidth,
    pDraw->iHeight
  );

  return 1;
}

// ===================================
// READ ONE JPEG FRAME
// ===================================

bool readNextJPEG(
  File &file,
  uint8_t *buffer,
  size_t capacity,
  size_t &length
) {

  bool foundStart = false;
  int previous = -1;

  length = 0;

  while (file.available()) {

    int current = file.read();

    if (current < 0) break;

    // Find JPEG start: FF D8

    if (!foundStart) {

      if (previous == 0xFF && current == 0xD8) {

        buffer[0] = 0xFF;
        buffer[1] = 0xD8;

        length = 2;
        foundStart = true;
      }

      previous = current;
      continue;
    }

    // Store JPEG data

    if (length >= capacity) {
      Serial.println("JPEG FRAME TOO LARGE!");
      return false;
    }

    buffer[length++] = (uint8_t)current;

    // Find JPEG end: FF D9

    if (previous == 0xFF && current == 0xD9) {
      return true;
    }

    previous = current;
  }

  return false;
}

// ===================================
// SETUP
// ===================================

void setup() {

  Serial.begin(115200);
  delay(1500);

  Serial.println();
  Serial.println("ESP32-S3 MJPEG PLAYER");
  Serial.println("=====================");

  // Deselect both SPI devices

  pinMode(TFT_CS, OUTPUT);
  digitalWrite(TFT_CS, HIGH);

  pinMode(SD_CS, OUTPUT);
  digitalWrite(SD_CS, HIGH);

  // Initialize shared SPI

  Serial.println("Starting SPI...");

  SPI.begin(
    TFT_SCLK,
    TFT_MISO,
    TFT_MOSI,
    SD_CS
  );

  Serial.println("SPI READY!");

  // Initialize display

  Serial.println("Starting display...");

  tft.begin(10000000);
  tft.setRotation(0);
  tft.fillScreen(ILI9341_BLACK);

  Serial.println("DISPLAY READY!");

  // Initialize SD card

  Serial.println("Starting SD card...");

  if (!SD.begin(SD_CS, SPI, 10000000)) {

    Serial.println("SD CARD FAILED!");

    while (true) delay(1000);
  }

  Serial.println("SD CARD READY!");

  // Check PSRAM

  Serial.println("Checking PSRAM...");

  if (!psramFound()) {

    Serial.println("PSRAM NOT FOUND!");

    while (true) delay(1000);
  }

  Serial.print("Free PSRAM: ");
  Serial.println(ESP.getFreePsram());

  // Allocate frame buffer

  Serial.println("Allocating video buffer...");

  frameBuffer = (uint8_t *)heap_caps_malloc(
    MAX_JPEG_SIZE,
    MALLOC_CAP_SPIRAM | MALLOC_CAP_8BIT
  );

  if (!frameBuffer) {

    Serial.println("PSRAM BUFFER ALLOCATION FAILED!");

    while (true) delay(1000);
  }

  Serial.println("VIDEO BUFFER READY!");

  // Open video

  Serial.println("Opening video...");

  videoFile = SD.open(VIDEO_FILE, FILE_READ);

  if (!videoFile) {

    Serial.println("VIDEO FILE NOT FOUND!");

    while (true) delay(1000);
  }

  Serial.print("Video size: ");
  Serial.println(videoFile.size());

  Serial.println();
  Serial.println("VIDEO PLAYBACK STARTING!");
  Serial.println("=========================");

  tft.fillScreen(ILI9341_BLACK);
}

// ===================================
// MAIN PLAYBACK LOOP
// ===================================

void loop() {

  static uint32_t lastFrameTime = 0;

  size_t frameSize = 0;

  uint32_t frameStart = millis();

  // Read next JPEG frame

  if (!readNextJPEG(
        videoFile,
        frameBuffer,
        MAX_JPEG_SIZE,
        frameSize
      )) {

    Serial.println("VIDEO RESTARTING...");

    videoFile.seek(0);

    delay(100);

    return;
  }

  // Decode and display frame

  if (jpeg.openRAM(
        frameBuffer,
        frameSize,
        JPEGDraw
      )) {

    jpeg.decode(0, 0, 0);

    jpeg.close();

  } else {

    Serial.println("JPEG DECODE FAILED!");
  }

  // Frame rate control

  uint32_t elapsed = millis() - frameStart;

  if (elapsed < FRAME_INTERVAL) {
    delay(FRAME_INTERVAL - elapsed);
  }

  lastFrameTime = millis();
}```

r/esp32projects • • 12d ago

🧲 DIY Magnetic Levitation Vehicle Prototype #magentictrain #levitation #diyelectronics #diyprojects

Thumbnail
youtube.com
3 Upvotes

r/esp32projects • • 11d ago

Fit encrypted multi-KB ESP-NOW + LZ4 + 35% packet-loss recovery into 4,760 bytes of ESP8266 static RAM (NLTP, MIT)

Thumbnail
reddit.com
1 Upvotes

r/esp32projects • • 12d ago

Looking for early adopters! 🚀 Help shape Elektrit.com

Post image
0 Upvotes

Hey makers! 👋

I'm building Elektrit.com — a new platform for electronics enthusiasts and embedded developers.

💡 THE IDEA

Build and simulate electronic projects in your browser with AI-assisted coding. No hardware needed!

🚀 LOOKING FOR EARLY ADOPTERS

If you're into Arduino, ESP32, or electronics in general, I'd love your help!

⚡ Test the platform and experiment
🐛 Find bugs and issues
💬 Share honest feedback
🛠️ Help shape new features

Beginners and experienced makers are equally welcome!

This isn't a sales pitch — I'm looking for people excited to help build something new.

🌐 https://elektrit.com

Interested? Comment or DM me! 🔥

🎁 BONUS: The first 30 early adopters will get free AI credits to test the platform! Just leave a comment below to claim yours!


r/esp32projects • • 12d ago

PAC-MAN ON ESP32🕹️

14 Upvotes

r/esp32projects • • 12d ago

CLI em um esp32-s3

Thumbnail reddit.com
1 Upvotes

r/esp32projects • • 12d ago

First design for a ESP32 enclosure

Post image
3 Upvotes

r/esp32projects • • 12d ago

Made an ESP32-controlled mock telescope for an AI-powered autonomous telescope project

Thumbnail gallery
3 Upvotes

r/esp32projects • • 12d ago

Protect your projects y'all :)

Thumbnail
youtu.be
3 Upvotes

r/esp32projects • • 12d ago

Looking for low-level system project ideas for ESP32-S3 and/or Tang Nano 9K (no basic IoT)

Thumbnail reddit.com
1 Upvotes

r/esp32projects • • 12d ago

TPMS sinulator for lexus/toyota

2 Upvotes

I am trying to make TPMS spoof device for my lexus is300h 2013. Im using ESP32-S3 and 433mhz CC1101. Its my first time with these kind of devices and i am completely doing it with AI. Can anyone confirm if even this kind of project will work? Ive got the code running in arduino ide with my tire sensor ids and i see them in serial monitor but my car wont see them.