About the Nesco VS-12 ESP32-S3 Controller

Work in progress The firmware and hardware are still being built. Heater control, temperature sensing, and a Wi-Fi status page are on the roadmap.

Stock Nesco VS-12 vacuum sealer on a cutting mat, viewed from above, before the teardown
The stock Nesco VS-12 on the bench before the teardown.

The project

I replaced the front-panel control board of a Nesco VS-12 vacuum sealer with an ESP32-S3. The stock control board (HZC-VS5165-PCB1) comes out, and the stock power board (PCB20150605W2) stays in as the driver stage for the pump, release valve, and heaters.

The ESP32 runs the pump and the release valve, watches the lid and vacuum switches, and leaves hooks for the seal-bar heaters and thermistor. The firmware is C++ on the Arduino framework, built with PlatformIO.

By the numbers

The firmware came together one feature per commit: a serial-controlled pump test with a safety timeout, the lid interlock, an RGB status LED, the vacuum switch input, the debounced top-off, release-valve timing, and a temporary lid-check bypass for bench testing.

Teardown and reverse engineering

I opened the case and mapped the power board's front-panel connector, CN9, with a multimeter and a Rigol scope. It carries nine signals:

SignalRole
+5VSealer logic supply (kept off the ESP32)
GNDCommon ground
S-SW (SAFE)Lid switch
HEAT1, HEAT2Seal-bar heaters (planned)
MOTORVacuum pump
EVRelease solenoid
P-SWVacuum switch
NTCSeal-bar thermistor (planned)

What I found:

The ESP32-S3 controller

The controller is an ESP32-S3-N16R8 DevKitC-1 on a breadboard, wired into the front-panel connector. A cycle goes like this:

  1. Type m in the serial monitor to start the pump. It won't start with the lid open.
  2. Pump until the P-SW vacuum switch trips and holds for 250 ms.
  3. Keep pumping for a 5-second top-off so the bag can settle.
  4. Stop the pump, wait 3 seconds, then open the release valve for 2 seconds.

The lid interlock and the 20-second pump timeout override everything else. The onboard RGB LED shows the state: off with the lid open, green when idle, blue while pumping.

From the firmware

The lid interlock blocks the pump from starting with the lid open and stops it if the lid opens mid-cycle. The lid switch and P-SW are switches to ground read with pull-ups, and the latest commit temporarily inverts the lid check so I can bench-test the pump with the lid open. The interlock goes back to normal before any heater work:

src/main.cpp: lid interlock
bool lidClosed() {
  // Polarity depends on how the lid switch is wired.
  // Current hookup reads HIGH when the lid is closed.
  return digitalRead(SAFE_PIN) == HIGH;
}

void setPump(bool on) {
  if (on && !lidClosed()) {
    Serial.println(">> Lid open, pump blocked");
    on = false;
  }
  // ...
}

// Stop if the lid opens while running
if (pumpOn && !lid) {
  Serial.println(">> Lid opened");
  setPump(false);
}

The vacuum switch can flicker near its trip point, so it has to read "vacuum" for 250 ms before the trip counts. Then the pump keeps running for a 5-second top-off:

src/main.cpp: debounced vacuum trip and top-off
// Debounced vacuum trip, then a top-off period
if (pumpOn) {
  if (vacuumReached()) {
    if (vacSince == 0) {
      vacSince = millis();
    }
    if (vacTripAt == 0 && millis() - vacSince >= VAC_DEBOUNCE_MS) {
      vacTripAt = millis();
      Serial.println(">> Vacuum reached, topping off");
    }
  } else {
    vacSince = 0;  // flicker, reset debounce
  }

  if (vacTripAt && millis() - vacTripAt >= VAC_EXTRA_MS) {
    Serial.println(">> Top-off done");
    setPump(false);
  }
}

And a hard stop, so the pump can't run forever if something goes wrong:

src/main.cpp: pump safety timeout
// Safety timeout
if (pumpOn && millis() - pumpStart > PUMP_MAX_MS) {
  Serial.println(">> Pump timeout");
  setPump(false);
}

The full source is on GitHub at TacticalPenGuinn/nesco-vs12-esp32, under the MIT license.

What's next

The sealer runs on mains voltage. It stays unplugged whenever the case is open or I'm probing the power board.

View the code