- Wed Dec 10, 2014 4:31 pm
#4526
@uhrheber
If I manage to get system_read_adc() to work I will let you know what values I get.
I am going to try removing and re-attaching the wire to pin 6 TOUT, but its very difficult to do as my ESP-03 has a SM resistor near pin 6 which makes it hard to get the soldering iron to the pin
Update.
I have tried to resolder but system_read_adc() now reads 1024 all the time
I need to check my connections
Perhaps I have shorted to an adjacent pin.
But at least we know that system_read_adc() returns a max value of 1024 and its not LUA that is re-scaling
Edit 2.
OK. I see my mistake. I was supplying more than 1V to the pin. My pot was not wired as I thought
Luckily my pot is 10K so not much current will be delivered to pin 6, so it looks like its OK if it goes above 1V as long as there is at least 10k resistance.
I will now glue my wire in place to prevent it moving (breaking off !)