Simple ADC
Lafet
Posts: 23
Hi,
How it is possible please simply read voltage on resistive divider - potentiometer? I need potentiometer regulate engine speed.
Very thanks, Lafet
How it is possible please simply read voltage on resistive divider - potentiometer? I need potentiometer regulate engine speed.
Very thanks, Lafet
Comments
I did it using RCTime object, similar schematic as deSilva.. but don't·forget to insert a serial resistor in the I/O pin to be used, then make some touchs at the RCTime code, to get·better stability with the potentiometer control.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Regards.
Alberto.
Just take a smal one: 10 nF and 10k will be fine.
You could fried the I/O pin in that situation. Look at the RCTime object....it has that R=220 Ohm in serial with the I/O pin to use.
So for that case, if the R value of the potentiometer -> 0 => Imax in the I/O pin will -> 15mA... only.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Regards.
Alberto.