2021-01-18, 03:50 AM
the pypilot motor controller outputs -12 to +12 volts (or whatever you supply it with) to reverse polarity to the motor to drive it in both directions.
the pypilot autopilot computer communicates with the controller with digital logic.
So it achieve 0-8 volts with 4 volts average you would need to make your own motor controller. This should be relatively easy if you have used arduino much, you can modify motor.ino. It already has a mode for rc motor controllers which outputs pwm pulses. You would want to extend this from 0-100% and then add an 8 volt regulator. The arduino would need to drive external transistors to modulate the 8 volts to emulate a DAC.
I recommend you simply replace all of the electronics instead. This way you need to attach the wires directly from the brushed dc motor to the pypilot motor controller and do not need to modify source code and add additional hardware, but it is up to you. Either way you will find support here.
the pypilot autopilot computer communicates with the controller with digital logic.
So it achieve 0-8 volts with 4 volts average you would need to make your own motor controller. This should be relatively easy if you have used arduino much, you can modify motor.ino. It already has a mode for rc motor controllers which outputs pwm pulses. You would want to extend this from 0-100% and then add an 8 volt regulator. The arduino would need to drive external transistors to modulate the 8 volts to emulate a DAC.
I recommend you simply replace all of the electronics instead. This way you need to attach the wires directly from the brushed dc motor to the pypilot motor controller and do not need to modify source code and add additional hardware, but it is up to you. Either way you will find support here.

