fscibilia
Posts: 3
Joined: Fri Jan 18, 2013 5:22 pm

Pinout weird behaviour

Tue Jun 04, 2013 6:06 pm

Hello everyone!

I have a strange behaviour when using GPIO pins on raspberry PI. I log as root (sudo so) and type following commands to set pinout values:

root@raspberrypi:/home/pi# echo 3 > /sys/class/gpio/export
root@raspberrypi:/home/pi# echo out > /sys/class/gpio/gpio3/direction
root@raspberrypi:/home/pi# echo 0 > /sys/class/gpio/gpio3/value

If I read the content of /sys/class/gpio/gpio3/value, I get the exact value I wrote before (as I expected). Anyway, voltage on the output is not affected. It seems to me that Linux does not actually write any value on the output gate.

Any suggestion? Thanks for your help. (and sorry for by bad english :lol: )

Fabio

User avatar
rpdom
Posts: 15209
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Pinout weird behaviour

Tue Jun 04, 2013 6:26 pm

What voltage do you get when you measure?

Which pins on the connector are you measuring between? Pin 5 and Pin 6?

Setting the value to 0 should set the pin to 0V

Return to “General discussion”