I've been playing with my olde Yamaha XPC26 (24v NiMH battery, bottom bracket DC brushed motor, torque sensor). It has a fault where it'll run fine but if you stop pedalling for a few seconds it indicates a problem, giving two flashes on the LEDs. That's when it's freshly charged and the multimeter shows it has about 26.4v. Turning the PAS off and on again makes it work again. When I scope it the battery voltage is rock steady under load.
The controller is pretty simple, having inputs:
Under power (giving a steady voltage into the torque input rather than pedalling) it gives 24v PWM to the motor, with some filtering (ie cut the torque and it gradually ramps the power down over a few seconds)
I am pondering whether it's feasible to replace the controller with something more modern. What I'd like is a controller that can cope with the torque sensor and the DC motor. Since throttles also have a 0-5V output, I wonder if it's possible to use the torque sensor instead of/in addition to a throttle input.
What would be very nice is if it had a sensible gas gauge - for example, put a coulomb counter in the battery like a laptop, so it knows how much went in (via the external charger) and how much came out. I'm pretty sure the existing gauge is just looking at voltage. I'm happy to replace the handlebar controller with something more useful.
Will the common e-bike controllers handle this kind of thing? I see a lot of three-phase and 'torque simulation' controllers, but not sure if the brushed controllers will handle a real torque sensor.
The controller is pretty simple, having inputs:
- 24V battery +/-
- 1K battery thermistor in series with thermal fuse (no markings on the fuse or that thermistor, but the charger side has a 103AT - appears to be 10K, beta=3435)
- Motor +/-
- Torque sensor: +5V/GND/torque, with idle at 0.8V, under torque gives up to about 1.5 V (I'm a little suspicious that the pedalling fault is related to this sensor)
- Handlebar unit (7 pins) - my guess is that's power switch (3 positions, 3 wires) and 3 LEDs (4 wires). It's possible the unit is cleverer than that, but I doubt it.
Under power (giving a steady voltage into the torque input rather than pedalling) it gives 24v PWM to the motor, with some filtering (ie cut the torque and it gradually ramps the power down over a few seconds)
I am pondering whether it's feasible to replace the controller with something more modern. What I'd like is a controller that can cope with the torque sensor and the DC motor. Since throttles also have a 0-5V output, I wonder if it's possible to use the torque sensor instead of/in addition to a throttle input.
What would be very nice is if it had a sensible gas gauge - for example, put a coulomb counter in the battery like a laptop, so it knows how much went in (via the external charger) and how much came out. I'm pretty sure the existing gauge is just looking at voltage. I'm happy to replace the handlebar controller with something more useful.
Will the common e-bike controllers handle this kind of thing? I see a lot of three-phase and 'torque simulation' controllers, but not sure if the brushed controllers will handle a real torque sensor.