SparkFun Forums 

Where electronics enthusiasts find answers.

All things pertaining to wireless and RF links
By hsadeghilam
#199770
Which pins on ESP8266 can be used as analogPin to do analogRead? I connected wires with 20 mA current to pins 4 and 0 and my board became very hot!
By paulvha
#199772
You do NOT provide current, you provide voltage. On an ESP8266 thing that should be max 1V on the A0/ADC. The current is based on the voltage divided by the internal + external resistance.
By hsadeghilam
#199773
So one wire goes to ADC and the other one to GND? How I can find the value of internal+external resistance? When I measure the voltage of my wires its about 25 V. How can I reduced it to 1 V?
By paulvha
#199775
Indeed input to the ADC and the other to GND. If we you have max 25V make a voltage divider: take 2 resistors serial: 1K (connect to GND, ADC and resistor 2), the other resistor2 :24K connected the 1K, ADC and the power source (25V). That way the maximum voltage is 1V to the ADC.
By hsadeghilam
#199777
I just tried it and surprisingly I figured out my sensor spits out a variable current (at a constant voltage), so reading voltage does not work for me. Any suggestion on how I can read current?
long long title how many chars? lets see 123 ok more? yes 60

We have created lots of YouTube videos just so you can achieve [...]

Another post test yes yes yes or no, maybe ni? :-/

The best flat phpBB theme around. Period. Fine craftmanship and [...]

Do you need a super MOD? Well here it is. chew on this

All you need is right here. Content tag, SEO, listing, Pizza and spaghetti [...]

Lasagna on me this time ok? I got plenty of cash

this should be fantastic. but what about links,images, bbcodes etc etc? [...]