We are developing an EBike / EScooter motor controller that have some important advantages:
Easy to build and repair as DIY: no fine pitch components as like a STM32 microcontroller. The resistors and capacitors are 0805. The ICs are SOIC8 and SOIC14. This means it can be easily soldered at home.
Header for custom electronics board: can be other board, maybe one perforated board with some simple electronics for instance to add CAN communications, 2x UARTS: full duplex or half duplex; specific circuit for EBikes torque sensors; SPI or I2C for cheap popular OLED displays; add a Bluetooth module; add NRF52 board with EBike ANT+ LEV wireless standard, etc.
Microcontroller on Bluepill or Blackpill board, meaning easy to support Arduino SimpleFOC on STM32F103 or even more powerful STM32F411 at 100 MHz.
This motor controller follows some original Arduino concepts: easy to build as DIY at home + easy to build different projects (thanks to shields) – so this is in fact a kind of Arduino of EBike / EScooter motor controller.
I really hope I will reuse this motor controller on different devices, since I own EBikes and EScooters and I am being developing OpenSource firmware for it over the last 5 years.
Forgot to mention, the Bluepill / Blackpill board will be moved to left side so the USB port will be available for direct connection to PC. This is really important to send debug data / plot data and configurations on software like VESC tool.
For the ones wanting higher processing power and USB C connection, the Blackpill is the one to go over the old Bluepill:
And here is my custom electronics board, quickly made with a perforated board. Added a button to execute the motor autodetection and two 0805 resistors to adapt the throttle 5V signal to the 3.3V scale:
I assembled the board and I was also adapting and cleaning the motor firmware, and while using the oscilloscope for debugging, I did a short circuit on the PWM pins at the mosfet driver and the STM32F103 did burn - it was quick to repair, just removed the Bluepill with the burned STM32F103 and used a new one
The motor controller source files are on this repository:
And the firmware on this repository - it is not SimpleFOC, but it is simple code for FOC anyway, written from scratch, no dependencies of ST tools for instance. Who knows if someone will adopt this DIY easy to build motor controller, with room for custom electronics / expansion header, and make a SimpleFOC firmware for it??
There are no news about SimpleFOC on this hardware. the only news is a new board version, this time much smaller but still being DIY!!
There are some tricks on the board, like putting a DC-DC on top of the other and the expansion board header directly on top of the Bluepill headers!!
On firmware side, there were some little advances to make easy for user to customized the pins used by the motor controller hardware, but basically is the same.
Let’s see if we get a good hardware to attract new firmware developers, that may implement SimpleFOC for it.