2020-03-11, 02:03 PM
(This post was last modified: 2020-03-11, 02:06 PM by seandepagnier.)
The reasons I'm against using the raspberry for a motor controller:
1) difficulty generating pwm signals from raspberry
2) no adc for measuring stall voltage and other inputs needed
3) less flexible in reusing different hardware components.
4) limited pins on raspberry already used for display, keypad, other sensors..
5) prevent damage to raspberry pi from motor controller problems
6) allow locating motor controller in a different location from sensors and raspberry. If currents in the motor controller are high enough it can throw compass sensor and software doesn't compensate this yet.
A micro controller to run the motor controller is only a few added components.
1) difficulty generating pwm signals from raspberry
2) no adc for measuring stall voltage and other inputs needed
3) less flexible in reusing different hardware components.
4) limited pins on raspberry already used for display, keypad, other sensors..
5) prevent damage to raspberry pi from motor controller problems
6) allow locating motor controller in a different location from sensors and raspberry. If currents in the motor controller are high enough it can throw compass sensor and software doesn't compensate this yet.
A micro controller to run the motor controller is only a few added components.