I've been following this guide: http://www.udoo.org/ProjectsAndTutorial ... ipulation/ trying to change the value of a GPIO from the default '0' to a '1'. I can set the direction (to 'out'), but when I try to set '1' into /value it always remains at '1', even if I manually edit the file with nano. What am I missing?
Hi udooquestions, what OS are you running? Which UDOO do you have? Please share as much info as you can. See your statement in bold, what do you mean exactly? Thanks
Hi. Board: UDOO Quad OS: Linaro Ubuntu 12.04 LTS > I can set the direction (to 'out'), but when I try to set '1' into /value it always remains at '1', even if I manually edit the file with nano. Even if I manually edit the 'value' file of the IO to be '1' with nano and save, and then look at the file it remains at '0' (sorry for being confusing originally!) Setting the 'direction' file works as expected, btw. That indicates to me that something prevents the settings to be changed. Any help would be appreciticted!
I have same problem with Arch Linux ARM - linux-armv7 kernel. If i use 3.0.35-9-ARCH, everything works.
As you said, f you set the GPIO in output mode you can set the voltage high or low using echo 1 > /sys/class/gpio/gpio40/value or echo 0 > /sys/class/gpio/gpio40/value but if you try to read the value from terminal using cat /sys/class/gpio/gpio40/value the value you read is casual because you're in output mode which means you cannot read. So: in output mode you CAN set the value but you CANNOT read the value because there is an inconsistency between pin and file state (see this thread: can-write-gpio-value-from-terminal-t1340.html)
I am using cat/sys/class/gpio/gpio40/value command to see the value of output pin but it shows 0 when input is high. I am not facing this problem while using raspberry pi. Can anyone help me in solving this problem.
Sorry for the late reply, a friend and I were messing with Arch Linux on the UDOO and we had this same issue. It was due to us mainlining our kernel. By switching over to the older linux kernel the GPIO was restored to function. pacman -Syu linux-udoo Hopefully this helps. This will downgrade your kernel as of this post date 2014-08-30. So some packages and software you've installed could cause boot issues or suffer performance.