2021-05-13, 07:39 PM
(2021-05-13, 06:36 PM)seandepagnier Wrote: you could also conceivable connect the arduinos together via i2c or spi, one arduino just samples rudder. This would work as well without needing analog or worrying about voltage references, but would require modifying the motor.ino source code.
two arguments against that:
first: Modyfing motor.ino is far above my actual knowlege, I´m happy beeng able to select and modifiy the options it gives to us.
second: I would have to modyfy every future update you make, so I better leave it as it is.
Reconsidering I guess a 10 bit resolution is good inough for the PWM of the voltage. This will give an accuranciey of better then
a 10th of degree of rudder possition movement ......
So I will not use the MCP4826 and instead use the TimerOne library and an set analogReference(EXTERNAL) to have the correct
Voltage refererence