LDR sensor with Lopy
-
Hello everyone. I am trying to use LDR sensor with Lopy but i am facing some issues. First of all when i am using the sensor with my arduino a 10kΩ resistor and power supply 3.3V, it works well.
When i use it with my Lopy it always send me back the value 4095. (supply=3.3V, Pin=P16)
I tried if i am using wrong pin but when i use the tmp36 sensor it works well.
Any thoughts?
-
Thank you both for your answers! Finnaly with ADC.ATTN_11DB it works!
-
-
@kots
Look atattn
and bits
https://docs.pycom.io/pycom_esp32/library/machine.ADC.html#machine.adc.channel