-->
Page 5 of 13

Re: analogread won't work

PostPosted: Fri Jun 12, 2015 10:31 am
by Tawhiz20
cal wrote:you didn't say what version of nodemcu you are using.

The version of NodeMCU is 0.9.5. build 20150318 powered by Lua 5.1.4.
I will look in wifi.c but since i am just starting out with C... it will be a challenge to find it... :o
THNX

Re: analogread won't work

PostPosted: Fri Jun 12, 2015 4:22 pm
by cal
Sorry, I don't know why I wrote wifi.c I meant adc.c but can't find what i remembered.
But the fix i was referring to was added later than your version
so it may not be the solution.

Sorry for the confusion,
Cal

Re: analogread won't work

PostPosted: Fri Jun 12, 2015 5:09 pm
by lethe
tytower wrote:
If you have a look at the PCB layout images postet on pretty much every vendor site, you will notice that the pad labeled "ADC" is connected directly to the ESPs pin 6 (TOUT).


You do not steer me anywhere .Got one for this version? If so produce it please
This is the only one I can find and I cannot see a thing!
Perhaps you are right ,thats what I am trying to establish

Here you go, I even highlighted the trace for you ;)
esp12_adc.png

Since these modules are meant to be mounted in other product, any external circuit on the TOUT pin would be kinda stupid, since according to the datasheet it would mess with the ESPs ability to measure it's supply voltage.
If you wish to discuss this further, please do so in a new thread.

Re: analogread won't work

PostPosted: Fri Jun 12, 2015 6:06 pm
by Tawhiz20
I looked at adc.c in the NodeMCU firmware but.... I cant see what is going on.. why it works in Lua but not in C.

Other users must have the same problems with the ADC (I am not doing something strange or very complex)
how did you solve this??

GRTZ