Power & Source of Big Ideas

Basic GPIOG11 Programming on NanoPi NEO

Moderators: chensy, FATechsupport


I want test GPIOG11 on NanoPi NEO.
I use a PIN#7 on connector CON1, with a res as pull-up on 3.3V.
Under shell, i enter :

Code: Select all

echo "out" > /sys/class/gpio/gpio203/direction
echo "1" > /sys/class/gpio/gpio203/value
echo "0" > /sys/class/gpio/gpio203/value

But nothing append on CON1 PIN#7. Where is my error?
Did you export "Linux gpio" 203 first?

Works for me:

Code: Select all

Last login: Wed Aug 31 20:59:52 2016 from
root@FriendlyARM:~# echo 203 > /sys/class/gpio/export
root@FriendlyARM:~# echo out > /sys/class/gpio/gpio203/direction
root@FriendlyARM:~# echo 1 > /sys/class/gpio/gpio203/value
root@FriendlyARM:~# echo 0 > /sys/class/gpio/gpio203/value
root@FriendlyARM:~# echo 1 > /sys/class/gpio/gpio203/value


I confirm, this work OK. May be my problem is the load value too high (it is a small relay, not a LED). This relay has a 180 ohms value, so 18mA of current load. This would be OK (Datasheet H3 give 40mA) ?
Are you driving a relay directly from a GPIO? Have you got a diode across the relay?

Who is online

In total there are 15 users online :: 0 registered, 0 hidden and 15 guests (based on users active over the past 5 minutes)
Most users ever online was 5185 on Wed Jan 22, 2020 1:44 pm

Users browsing this forum: No registered users and 15 guests