Hello Everyone,
Its been quite a while since i played with ebikes, but i’ve been tinkering over last few months time and energy permitting
I finally succeeded to program my FP2 ive had for several years using esp32. I was considering to build a pcb for the hardware and enclosure and produce a batch for anyone interested. Seems like the leonardo board is no longer available and other kits some vendors here that have been put together no longer exist. Below i’ve listed the features and functions my code version is capable of. Also the hardware I used. Will look to implement autologin in future version.
Hardware
- ESP32 microcontroller (control, UI, storage, future Wi-Fi/BLE)
- MCP2515 CAN controller + CAN transceiver (CAN bus interface)
- 2.42” 128×64 I²C OLED (SSD1306) (status display)
- Single momentary push button (user input)
Features & Functions
- Real-time CAN monitoring of DC voltage, current, power, AC input voltage, temperature estimate, and SOC
- OLED dashboard with centered layout and charging status indicator (
blinking in CC mode)
- Single-button interface to adjust DC voltage and current
- User-settable DC voltage (43.5–57.5 V) and current with AC-aware current limiting
- Automatic CC/CV behavior with visual feedback
- Persistent memory — remembers last voltage/current settings after power loss
-Steveo