Timeline for Arduino ADC converter calculation
Current License: CC BY-SA 4.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 1, 2021 at 14:45 | vote | accept | Joe | ||
Apr 30, 2021 at 9:14 | comment | added | chrisl | Only, if you speak about a different encode, that has the range 0.5m. If you are using the encode with 1.25m range you need to use that value for the calculation | |
Apr 30, 2021 at 8:55 | comment | added | Joe | But if you try to write the code: 1) with full range 1.25m cylinder_pos = map( analogRead(A0), 0, 1023, 0, 1.25 ) 2) with only 0.5m range cylinder_pos = map( analogRead(A0), 0, 1023, 0, 0.5 ). It matters right? | |
Apr 30, 2021 at 8:50 | history | answered | chrisl | CC BY-SA 4.0 |