dpe743
10 mW
I won't be purchasing an e-bike kit until next spring, but want to get started on the general design. One of those pieces is building my own bike computer using either an Arduino or a Raspberry Pi. So on the technical side: what types of components are easily obtainable to interface with the various controller inputs?
1) Throttle input -- if the throttle is a regular potentiometer, I can use one of the A2D pins on the Arduino
2) Throttle output (to controller) -- A digital potentiometer chip (which costs a couple bucks)
3) Reading voltage from battery -- A resistor bridge circuit would allow reading the voltage using one of the 5v A2D pins -- but would I be better off using an external A2D chip that can directly handle higher voltages?
4) Reading current draw -- again, use an A2D pin (or external A2D chip) to measure the voltage drop across a shunt resistor
5) Cadence / speed -- I'm assuming the cadence sensor that hooks on the bottom bracket is just a reed switch. For wheel speed, I could hook up a separate reed switch to the wheel (from a cheap bicycle speedometer).
I've looked through the forums, to see if there are any existing projects I could follow along for ideas, but haven't found anything that has been completed and fully documented. Also, I realize that the Cycle Analyst from Grin (Justin) can do quite a bit, but I like to experiment with some additional functionality, such as:
-- Accelerometer input to measure hill incline, to implement "hill flaten" mode
-- Using speed, and amperage and cadendce measurement to estimate pedal input wattage, to implement proper torque pedelec mode without needing a torque sensor
-- Implement a mode where you enter the miles you need to go on the trip, and have it automatically adjust the assist level so that you won't run out of juice
-- Automatically shut down the system if too high of amperage is drawn for an extended period of time.
-- gps logging
1) Throttle input -- if the throttle is a regular potentiometer, I can use one of the A2D pins on the Arduino
2) Throttle output (to controller) -- A digital potentiometer chip (which costs a couple bucks)
3) Reading voltage from battery -- A resistor bridge circuit would allow reading the voltage using one of the 5v A2D pins -- but would I be better off using an external A2D chip that can directly handle higher voltages?
4) Reading current draw -- again, use an A2D pin (or external A2D chip) to measure the voltage drop across a shunt resistor
5) Cadence / speed -- I'm assuming the cadence sensor that hooks on the bottom bracket is just a reed switch. For wheel speed, I could hook up a separate reed switch to the wheel (from a cheap bicycle speedometer).
I've looked through the forums, to see if there are any existing projects I could follow along for ideas, but haven't found anything that has been completed and fully documented. Also, I realize that the Cycle Analyst from Grin (Justin) can do quite a bit, but I like to experiment with some additional functionality, such as:
-- Accelerometer input to measure hill incline, to implement "hill flaten" mode
-- Using speed, and amperage and cadendce measurement to estimate pedal input wattage, to implement proper torque pedelec mode without needing a torque sensor
-- Implement a mode where you enter the miles you need to go on the trip, and have it automatically adjust the assist level so that you won't run out of juice
-- Automatically shut down the system if too high of amperage is drawn for an extended period of time.
-- gps logging