2019-01-07, 07:23 PM
(2019-01-07, 06:01 PM)xfactor99 Wrote:(2019-01-07, 01:38 PM)kalle Wrote: In an older version of motor.ino which I still use I did:
// setup adc
DIDR0 = 0x3f; // disable all digital io on analog pins
ADMUX = _BV(REFS0); // external 5v
// ADMUX = _BV(REFS0)| _BV(REFS1) | _BV(MUX0); // 1.1v
I think in the newer version it could be different. Have a look at line 380.
Kalle
Ha Kalle,
thank you verry much for awnsering.
What you had did not help in tha actual version of motor.ino.
But thanks to your post I´v got the right hint.
I finaly changed the line 632, outcomented the last part of the line to:
"" const uint8_t defmux = _BV(REFS0); //| _BV(REFS1); // 1.1v ""
So this gives me 0-5 Volt (internal) Voltage-Reference to Pin A4 = Ruddersensor
instead of the 0-1.1 Volt
Save sailing
Andreas
Thank you Andreas,
I will remember your hint if I change to the newer version.
Also save sailing for you,
Kalle