Problem with GPIO18/19
-
Hello friends,
I am doing a project to control the GPIOs with Omega2 + and Expansion Dock. However, I have a problem with GPIO18 and GPIO19. The ports are configured as GPIO.When I configure the pins as input and read the GPIOs, the value alternates without exiting the pin. Why does the state change from high to low and vice versa without modifying the GPIO?
Thanks and regards!
-
@jose-r Your GPIO19 input is in uncertain state because it's floating.
You should put a pullup or a pulldown resistor to such "unused" very sensitive CMOS input.
-
Okay, thanks! @György-Farkas
So when a GPIO is set to HIGH or LOW, is an internal pullup / down performed?
Greetings and thank you very much
-
@jose-r said in Problem with GPIO18/19:
So when a GPIO is set to HIGH or LOW, is an internal pullup / down performed?
No. I'm afraid my post was not clear enough or you fully misunderstood something.