Good afternoon.
I am working on a project on the beaglebone white (as the blacks are out of stock) and GPIO. I have tried two different setups, as shown below for my pushbutton, and I am using the circuitco prototyping cape.
Configuration 1:
I have my pushbutton connected from GPIO0_26 to ground, and there is a 3.3K pull up resistor connected to 3.3 volts. I am assuming there are no active pull up or pull downs in the system.
Configuration 2:
The pushbutton is connected in series from GPIO0_26 through the 3.3K resistor to 3.3 V, and we are relying on the internal pull down resistor to keep the pin low.
In either case, I am getting “phantom” interrupts when I poll for the pin to change state. My gut feeling is they are brought on by noise. I’d like to do away with the exteral pull up or pull down, but I don’t see any way to do that with the gpio driver from the documentation at https://www.kernel.org/doc/Documentation/gpio/sysfs.txt, as it doesn’t seem to provide access to pull up and pull down configurations.
This leads to the following questions:
#1 Can someone provide me with the default pull up / pull down settings for an input when exported with /sys/class/gpio?
#2 Short of going through the device tree (which seems horribly complicated to simply change a pull up or pull down resistor setting), is there an easy way to set of clear the PU/PD resistor through a c program?
I have seen multiple tutorials online dealing with this issue, but most of them point to older kernel versions and when i try to follow them, they break very quickly.
I am using the March 5, 2014 official beaglebone debian image.