Powered by Blogger.

Monday, December 5, 2016

Tag:

Project 3: Analog Input

1fd2xb


Only one analog input pin availble in MagicWiFi and we need trigger it periodically to read analog value as same as digital in. Anlog input voltage range is 0-1V. If you need to measure more than 1V , use a resistor voltage divider as shown below.
voltage+divider.gif (389×300)

Resistor Values for some input voltages,
0 - 3.3V –> R1=1k   R2=2.2k
0 - 5V –> R1=1k   R2=3.9k
0 - 12V –> R1=1k   R2=10k
or
0 - 3.3V –> R1=10k   R2=22k
0 - 5V –> R1=10k   R2=39k
0 - 12V –> R1=10k   R2=100k