HillCruiser
10 W
- Joined
- Jan 19, 2022
- Messages
- 81
I'm working on an alternate to PAS/Torque; namely terrain control.
I live in a hilly area and basing the motor power on the terrain seems intuitive.
Since I have plenty of power, I usually say in 7th mechanical gear and just up/down on the PAS based on terrain so basically, I am the inclinometer controller.
Automating would eliminate the endless PAS 1,2,3,4,5,4,3,2,1 going up and down a steep hill and give almost infinite PAS levels; never more or less than you need
I know I burn a lot of excess battery when hill climbing because of the granularity of 5 levels.
For testing this idea, I've mounted an Arduino (with a Pi/touchscreen for HMI) and located an inclinometer sensor near the bottom bracket.
Terrain Mode is triggered on by a button and is cancelled by a brake signal.
The throttle cable was dissected and fed V+ and com from the arduino; which receives the throttle signal input as an analog input, This works really good but the signal is a bit jittery so a rolling average was used to smooth it out.
The arduino can output the incoming throttle signal or override it with the inclinometer based signal.
The throttle output (PWM) is fed through a cycle analyst to the controller. The data stream from the cycle analyst is read by the Arduino and communicated to the pi for display and archiving.
The wiring is finished and I'm working on the Arduino program right now so any comments are welcome.
I live in a hilly area and basing the motor power on the terrain seems intuitive.
Since I have plenty of power, I usually say in 7th mechanical gear and just up/down on the PAS based on terrain so basically, I am the inclinometer controller.
Automating would eliminate the endless PAS 1,2,3,4,5,4,3,2,1 going up and down a steep hill and give almost infinite PAS levels; never more or less than you need
I know I burn a lot of excess battery when hill climbing because of the granularity of 5 levels.
For testing this idea, I've mounted an Arduino (with a Pi/touchscreen for HMI) and located an inclinometer sensor near the bottom bracket.
Terrain Mode is triggered on by a button and is cancelled by a brake signal.
The throttle cable was dissected and fed V+ and com from the arduino; which receives the throttle signal input as an analog input, This works really good but the signal is a bit jittery so a rolling average was used to smooth it out.
The arduino can output the incoming throttle signal or override it with the inclinometer based signal.
The throttle output (PWM) is fed through a cycle analyst to the controller. The data stream from the cycle analyst is read by the Arduino and communicated to the pi for display and archiving.
The wiring is finished and I'm working on the Arduino program right now so any comments are welcome.