| # | Hz | dB | mA | rpm if fundamental |
|---|
| # | t s | thr % | tach | FFT rpm | +- | peak Hz | err % | SNR dB | I A | ripple A | pass | note |
|---|
1. Zero current
Switch the ESC / motor power OFF (no current through the sensor), then press. Takes about 2 seconds.
Device
Broker (this browser)
Must match MQTT_URI in the firmware. Applies the next time you connect.
Wiring
- ACS712 VCC to ESP32 5V (VIN), GND to GND.
- ACS712 OUT -> R1 (10k) -> node A. Node A: R2 (20k) to GND, and R3 (1k) on to node B.
- Node B: C1 (15 nF) to GND, and to ESP32 GPIO34. The divider brings the 0-5 V sensor output into 0-3.3 V.
- All grounds common (battery negative). Power the ESP32 from USB only.
Pass criteria
At every throttle step the FFT rpm must be within the error limit of the laser tach (default 3 %) and the peak must be at least the SNR limit (default 10 dB) above the noise floor.
Formulas
I = (mV_pin - zero) / (sensitivity x ratio) x gainf_ripple = k x pole pairs x rpm / 60(6 x 7 x rpm / 60 = 0.7 x rpm)rpm = f_peak x 60 / (k x pole pairs)fc = 1 / (2 pi (R1||R2 + R3) C1)(about 1.38 kHz for 10k/20k/1k/15nF)SNR = 20 log10(peak / median bin amplitude in the band, excluding +-5 bins around the peak)
Connection
This page talks to your ESP32 through a public MQTT broker. The PIN is the only thing that pairs them. Anyone who guesses a PIN could watch and control that device, so use it for bench tests only.
Troubleshooting
- "No device with PIN found": check the PIN on the Serial Monitor (115200 baud) and that the ESP32 is on Wi-Fi (LED solid on).
- Data age red: no live data for 5 s. The ESP32 lost Wi-Fi, or the broker is unreachable.
- ADC clipping: the pin voltage reaches 0 or 3.1 V. Check the divider and zero.
- Sample rate mismatch: measured rate differs more than 20 % from the setting; rpm uses the setting.
- Low signal / no current: motor stopped, ESC off, or sensor wiring. Raise throttle.
- Peak at half or double the expected rpm: look at the strongest-lines table: a harmonic or a mechanical line is winning.
- Peak stuck near 1.4 kHz: the filter corner. Above fc the signal is attenuated; use the amplitude compensation or a higher corner.