I'm having a problem reading from a Pico's GPIO port - at least it doesn't behave the same as on an Arduino.
The setup is pretty simple. There's a 433Mhz RF-receiver whose data-pin is connected to GPIO 16, and which is powered by the VBUS (i.e. with 5V):
The program for reading the values is also super simple:
from machine import Pin receiver_pin = Pin(16, Pin.IN) while True: value = receiver_pin.value() print(value)
I've also tried adding
But no matter what I do, I get garbage values.
I've made a video showing the issue and comparing it to the following (equivalent) setup with an Arduino, which works just fine:
I really don't know what to do about this, so I hope I'm just overlooking something :) Thanks