Introduction
This is log of tips and trouble shooting.
1. Update default parameters
Problem:
- Parameter setting on tiny 1.3 inch screen using buttons are frustrating. Directly implement your eBike specific parameters in zip container is easy.
Solution:
File include/eeprom.h contains default parameters, like assist factor, torque sensor calibration and so on.
Build, get zip file and flash via nRF connect app (on iPhone in my case).Open configuration setting of your eBike, select "Display" section and choose "yes" on "Reset def". Existing configuration long pressing power button and power off. Green LED on nRF-dongle appears and finished.
2. Longer motor initialization time in lower temperature environment
Problem:
- Display is locked at boot screen for 3-5 min in winter time. Lower temperature is longer locked time. It seems depends on temperature atmosphere, obviously observed in lower than 10degC environment. Once display transits main screen, everything works perfectly.
Solution:
- I strongly want to solve this issue. This is why I made up build environment even binary is provided.
3. Assist level unintentionally changed
Problem:
- Assist level is suddenly changed during riding without any +/- button operation.
Solution:
- Add 0.1uF(104) capacitor between 2 wire of each Up/Down button. This issue seems due to electrical noise.
4. Not show anything on OELD SPI display
Problem:
- SH1106 based OELD display with SPI communication does not show anything at startup. I2C OELD baed on SH1106 works fine.
Solution:
- not yet. Maybe I need to establish debuger environment to identify the cause.
5. Compiler warning
Problem:
- Whenever compile, it says warning. Of course, I can ignore but I don't like it.
Solution:
- 1. Set as comment unused variables to suppress warning.
- 2. add unlisted states in "case" rules.
- 3. It's better to leave warnings. State transition might be impacted...
(end of article)
Top comments (0)
Some comments may only be visible to logged-in visitors. Sign in to view all comments.