OK I want to read an Analog 0 to 3.3 volts or perhaps 0 - 5.0 volts if there is an advantage, and scale that voltage to 0 - 1000 micro-seconds for a PPM Encoder. I have read the MAP command and believe I understand it correctly and should look something like:
map(0, 1023. 0, 1000) Correct?
The 0 to 1023 is for a 10 bit resolution. Correct me if I am wrong but I am using a Teensy 3.2, does that mean I can also declare 11 bit or map(0, 2047, 0, 1000)?
Is there any benefit or consequences using 0-5 volt analog input?
THX
map(0, 1023. 0, 1000) Correct?
The 0 to 1023 is for a 10 bit resolution. Correct me if I am wrong but I am using a Teensy 3.2, does that mean I can also declare 11 bit or map(0, 2047, 0, 1000)?
Is there any benefit or consequences using 0-5 volt analog input?
THX
Last edited: