Controlling controllers via 5V throttle.

aae34

100 W
Joined
Jun 21, 2023
Messages
110
Location
fi
Has anyone used ie. part below to do "MITM throttle control" with a separate mcu to ebike motor controller(s)?

12-Bit Single Output DAC w/EEPROM and I2C MCP4725 (datasheet):

IMG_20250225_042801768_HDR.jpg

Shared signal is not an option for my plans(trike w/mid-drive+2xhub), and i don't accept several throttles either,
so i must come up with something like this to control the hub controllers.
 
Has anyone used ie. part below to do "MITM throttle control" with a separate mcu to ebike motor controller(s)?

waht is "mitm throttle control"? googling it finds parts for hondas and whatnot, but not a relevant-seeming explanation.

what is your specific goal? if you don't want multiple throttles and don't want a single throttle with shared signal...what do you need this unit to do for you?
 
waht is "mitm throttle control"? googling it finds parts for hondas and whatnot, but not a relevant-seeming explanation.

what is your specific goal? if you don't want multiple throttles and don't want a single throttle with shared signal...what do you need this unit to do for you?
MITM == Man In The Middle. So my mcu would be connected to the throttle, and it would then give the signal
as i want to motor controllers with these parts.
 
It should work fine, but you could also consider a digipot instead of a DAC.
Great. What would be the benefit of using such? As to me this DAC seems as simple as it can get,
but i don't know enough about electronics(==i do alot of guessing). I know the rtos i use has a
driver for mcp4725, so it's likely i wouldn't have to touch any device drivers either if i stick with it.
 
Great. What would be the benefit of using such? As to me this DAC seems as simple as it can get,
but i don't know enough about electronics(==i do alot of guessing). I know the rtos i use has a
driver for mcp4725, so it's likely i wouldn't have to touch any device drivers either if i stick with it.
Mostly being able to combine it with e.g. a physical analog throttle. A good quality DAC implementation is unlikely to cause problems.
 
I see. Perhaps in the second revision, but for now it will be easier for me to use the bafang 5V
thumb throttle + ADC for it on the mcu controlling controllers, to keep things simple.

I guess i should finally buy extra motor w/controller(bbs02 or bbshd) for testing setup on a desk,
and see if i could use ie. gear switch sensor input as an output to be used w/logic analyzer for
measuring timings in runtime easier.
 
Back
Top