I was following the Pico tutorial and got stuck on the inputs part as my Pico does not show value 1 even when the button is pressed the outputs are working fine, I continued and got stuck again on potentiometers as the value is always around 28,000 even when the potentiometer is not connected please help as i am a beginner to this.
enter image description here

from machine import Pin button = Pin(14 , Pin.IN, Pin.PULL_DOWN) button.value() 0 button.value() 0 button.value() 0 button.value() 0 enter image description here enter image description here

  • 2
    some breadboards have a break in the middle of the + and - lines. Can you post a photo of your setup pls
    – Dirk
    Sep 9, 2022 at 11:31
  • your circuit does not contain a potentiomer ... it contains a variable resistor
    – jsotola
    Sep 10, 2022 at 1:58
  • It is connected I checked and the circuit is exactly as shown on the figure please help.
    – Fquak
    Sep 10, 2022 at 10:58
  • how can we help if you don't give the info we ask for?
    – Dirk
    Sep 10, 2022 at 16:16
  • I'm sorry i took apart the bottom of bread board to check.. the photos are added to the question
    – Fquak
    Sep 12, 2022 at 11:48

1 Answer 1


I'm not sure what you mean by "not working as expected". You have ADC0 pin connected to 3.3V via a potentiometer, so I would expect to read quasi-constant some non-zero value corresponding to that voltage level from the ADC. Even if you disconnect the potentiometer, the ADC0 pin may still stay at 3.3V, delivering the same value.

If you want to make a voltage divider, you need to connect the side terminals of the pot to 3.3V and GND, and the voltage on the middle terminal will then be proportional to the pot position.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.