torstai 9. toukokuuta 2013
Android IOIO - Analog Input
IOIO board is capable to measure voltage levels from I/O pins. Simplest example to demostrate analog input is to attach potentiometer to IOIO. IOIO will detect potentiometer rotation angle as different voltage levels. Voltage levels are measured by Android application as absolute voltage or relative value from 0 to 1.
In this demostration potentiometer rotation angle is presented by numbers (scale 0-1) and using visual bar. Circuit is simple and no additional components is needed expect the potentiometer itself.
Program code of activity:
Tilaa:
Lähetä kommentteja (Atom)
Ei kommentteja:
Lähetä kommentti