Roadmap: induction and OEM-motor support (Discovery + IHM08M1 bench) #1

Open
opened 2026-11-01 19:20:04 +00:00 by Steve · 1 comment
Owner

ESCargot's firmware today drives the permanent-magnet hub and mid-drive motors that VESC® controllers are built for. This tracks the work to also run:

  • AC induction motors: the Tesla large drive unit and industrial three-phase motors.
  • OEM traction motors read by a resolver: the Prius MG1/MG2, the Nissan Leaf and similar. These are permanent-magnet motors, but they report rotor angle through a resolver rather than Hall sensors or an encoder.

Both start on a cheap bench before any real controller is involved: an STM32F407G-DISC1 driving an X-NUCLEO-IHM08M1 power stage over jumpers.

Wiring: https://escargot.free/bench/disco-ihm08m1.html

Done (firmware, built from source; not in a release yet)

  • Board file for the Discovery + IHM08M1 bench (hwconf/escargot/disco_ihm08m1). Pins are checked against ST's UM1472, UM1996 and the L6398 datasheet, but not yet on hardware.
  • Software resolver decoder, for resolvers without a resolver-to-digital chip. It uses synchronous demodulation into a type-II tracking observer and checks the signal level on every sample. It has host-side tests, but no hardware yet.
  • Motor temperature from a table, for thermistors that match none of the built-in curves (common on OEM motors).

Next

  • Bring the bench up: flash, read the bus voltage and current, run motor detection on a small motor.
  • Encoder (AMT102) on the bench, as a known-good angle reference.
  • Wire the resolver decoder into a board: excitation output, the two winding inputs, sampling at the excitation peak.
  • Induction-motor control: slip estimation and field weakening, tested on a small industrial motor first.
  • Then a real power stage.

Hardware for the bench is on order. Progress updates will be posted here.

ESCargot's firmware today drives the permanent-magnet hub and mid-drive motors that VESC® controllers are built for. This tracks the work to also run: - **AC induction motors**: the Tesla large drive unit and industrial three-phase motors. - **OEM traction motors read by a resolver**: the Prius MG1/MG2, the Nissan Leaf and similar. These are permanent-magnet motors, but they report rotor angle through a resolver rather than Hall sensors or an encoder. Both start on a cheap bench before any real controller is involved: an STM32F407G-DISC1 driving an X-NUCLEO-IHM08M1 power stage over jumpers. **Wiring:** https://escargot.free/bench/disco-ihm08m1.html ## Done (firmware, built from source; not in a release yet) - [x] Board file for the Discovery + IHM08M1 bench (`hwconf/escargot/disco_ihm08m1`). Pins are checked against ST's UM1472, UM1996 and the L6398 datasheet, but not yet on hardware. - [x] Software resolver decoder, for resolvers without a resolver-to-digital chip. It uses synchronous demodulation into a type-II tracking observer and checks the signal level on every sample. It has host-side tests, but no hardware yet. - [x] Motor temperature from a table, for thermistors that match none of the built-in curves (common on OEM motors). ## Next - [ ] Bring the bench up: flash, read the bus voltage and current, run motor detection on a small motor. - [ ] Encoder (AMT102) on the bench, as a known-good angle reference. - [ ] Wire the resolver decoder into a board: excitation output, the two winding inputs, sampling at the excitation peak. - [ ] Induction-motor control: slip estimation and field weakening, tested on a small industrial motor first. - [ ] Then a real power stage. Hardware for the bench is on order. Progress updates will be posted here.
Author
Owner

Bench progress, 2026-11-03. The STM32F407G-DISC1 has arrived; the X-NUCLEO-IHM08M1 shield and the motor have not yet.

  • Flashed ESCargot (bldc 6e3e9763, board disco_ihm08m1) and the VESC® bootloader through the Discovery's own ST-LINK (its mini-USB port), after saving the factory firmware.
  • The firmware runs: ESCargot Tool connects over the Discovery's micro-USB port and reports hardware DISCO_IHM08M1, firmware 7.1.
  • With no power stage wired, the current-sense and voltage inputs float, and the firmware does what it should: it raises high offset current sensor faults and will not drive. The voltage reads about 14 V of noise.

Next, once the shield is here: set it up for three-shunt FOC (JP1 and JP2 closed, J5 and J6 on the 3-Sh side, C3, C5 and C7 removed), wire it to the pins in the wiring card, and power it from a current-limited supply with no motor, checking the bus voltage and that the current offsets settle without faults. Then a small motor and detection.

For the detection: ESCargot Tool's new step-by-step motor detection, which shows each measurement and how the settings follow from it, has been run on the bench 75100. Running it turned up an Express bug that lost the answer of any long command forwarded over CAN. That bug is fixed in a local build of the Express firmware, not yet in a release.

**Bench progress, 2026-11-03.** The STM32F407G-DISC1 has arrived; the X-NUCLEO-IHM08M1 shield and the motor have not yet. - Flashed ESCargot (`bldc` 6e3e9763, board `disco_ihm08m1`) and the VESC® bootloader through the Discovery's own ST-LINK (its mini-USB port), after saving the factory firmware. - The firmware runs: ESCargot Tool connects over the Discovery's micro-USB port and reports hardware `DISCO_IHM08M1`, firmware 7.1. - With no power stage wired, the current-sense and voltage inputs float, and the firmware does what it should: it raises *high offset current sensor* faults and will not drive. The voltage reads about 14 V of noise. **Next**, once the shield is here: set it up for three-shunt FOC (JP1 and JP2 closed, J5 and J6 on the 3-Sh side, C3, C5 and C7 removed), wire it to the pins in the wiring card, and power it from a current-limited supply with no motor, checking the bus voltage and that the current offsets settle without faults. Then a small motor and detection. For the detection: ESCargot Tool's new step-by-step motor detection, which shows each measurement and how the settings follow from it, has been run on the bench 75100. Running it turned up an Express bug that lost the answer of any long command forwarded over CAN. That bug is fixed in a local build of the Express firmware, not yet in a release.
Sign in to join this conversation.
No description provided.