2021-05-13, 02:47 PM
How bad is the latency? Maybe the latency from wifi is a bigger issue?
You could for example connect your rudder feedback arduino to the usb of the tinypilot eliminating wifi.
Otherwise, what you want is a DAC. I'm not sure you need to worry about voltage 64kh, unless you experience inaccuracy over temperature?? The rudder stops should be set to have a few degrees extra in case of this.
To make a DAC with arduino, the simplest way is to use PWM output varying duty cycle (not frequency) with rudder angle. I would use fastest frequency po.ssible and low-pass filter it with say 10k and 0.1uF capacitor as a starting point and feed this into the rudder feedback. You might power this arduino from the rudder feedback pins of the motor controller.
You could for example connect your rudder feedback arduino to the usb of the tinypilot eliminating wifi.
Otherwise, what you want is a DAC. I'm not sure you need to worry about voltage 64kh, unless you experience inaccuracy over temperature?? The rudder stops should be set to have a few degrees extra in case of this.
To make a DAC with arduino, the simplest way is to use PWM output varying duty cycle (not frequency) with rudder angle. I would use fastest frequency po.ssible and low-pass filter it with say 10k and 0.1uF capacitor as a starting point and feed this into the rudder feedback. You might power this arduino from the rudder feedback pins of the motor controller.