Power & Source of Big Ideas

NanoPI Neo Air can`t acces to any GPIO pins.

Moderators: chensy, FATechsupport

Hi everybody, i try to give my GPIO pin meaning 1 for start to interact with my device. But i can`t doing nothin. I hope my device will take power from pg11 when i set this gpio mean to 1.
gpio readall

Code: Select all

 +-----+-----+---------+------+---+-Model  A-+---+------+---------+-----+-----+
 | BCM | wPi |   Name  | Mode | V | Physical | V | Mode | Name    | wPi | BCM |
 +-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+
 |     |     |    3.3v |      |   |  1 || 2  |   |      | 5v      |     |     |
 |   2 |   8 |   SDA.1 |   IN | 0 |  3 || 4  |   |      | 5v      |     |     |
 |   3 |   9 |   SCL.1 |   IN | 0 |  5 || 6  |   |      | 0v      |     |     |
 |   4 |   7 | GPIO. 7 |   IN | 0 |  7 || 8  | 0 | IN   | TxD     | 15  | 14  |
 |     |     |      0v |      |   |  9 || 10 | 0 | IN   | RxD     | 16  | 15  |
 |  17 |   0 | GPIO. 0 |   IN | 0 | 11 || 12 | 0 | IN   | GPIO. 1 | 1   | 18  |
 |  27 |   2 | GPIO. 2 |   IN | 0 | 13 || 14 |   |      | 0v      |     |     |
 |  22 |   3 | GPIO. 3 |   IN | 0 | 15 || 16 | 0 | IN   | GPIO. 4 | 4   | 23  |
 |     |     |    3.3v |      |   | 17 || 18 | 0 | IN   | GPIO. 5 | 5   | 24  |
 |  10 |  12 |    MOSI |   IN | 0 | 19 || 20 |   |      | 0v      |     |     |
 |   9 |  13 |    MISO |   IN | 0 | 21 || 22 | 0 | IN   | GPIO. 6 | 6   | 25  |
 |  11 |  14 |    SCLK |   IN | 0 | 23 || 24 | 0 | IN   | CE0     | 10  | 8   |
 |     |     |      0v |      |   | 25 || 26 | 0 | IN   | CE1     | 11  | 7   |
 +-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+
 | BCM | wPi |   Name  | Mode | V | Physical | V | Mode | Name    | wPi | BCM |
 +-----+-----+---------+------+---+-Model  A-+---+------+---------+-----+-----+

I think my pin Physical = 11, wPi = 0. When i use gpio -g mode 0 out, that doest give result and mode doesnt change.
OK i try install RPi.GPIO_NP from https://github.com/friendlyarm/RPi.GPIO_NP

Code: Select all

root@PC_22:~# python3 --version
Python 3.5.3
root@PC_22:~/RPi.GPIO_NP# python3 setup.py install
running install
running build
running build_py
running build_ext
running install_lib
running install_egg_info
Removing /usr/local/lib/python3.5/dist-packages/RPi.GPIO-0.5.8.egg-info
Writing /usr/local/lib/python3.5/dist-packages/RPi.GPIO-0.5.8.egg-info
root@PC_22:~/RPi.GPIO_NP# sudo python3 setup.py install
running install
running build
running build_py
running build_ext
running install_lib
running install_egg_info
Removing /usr/local/lib/python3.5/dist-packages/RPi.GPIO-0.5.8.egg-info
Writing /usr/local/lib/python3.5/dist-packages/RPi.GPIO-0.5.8.egg-info
root@PC_22:~/RPi.GPIO_NP# python3
Python 3.5.3 (default, Apr  5 2021, 09:00:41)
[GCC 6.3.0 20170516] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> #!/usr/bin/env python
... import RPi.GPIO as GPIO
Traceback (most recent call last):
  File "<stdin>", line 2, in <module>
ImportError: No module named 'RPi.GPIO'
>>>

Please somebody help me, that a tiny problem but i can`t do this for 4 days. :(
igorp wrote:
https://forum.armbian.com/forum/40-reviews-tutorials-hardware-hacks/

I cant use this lib cause i have this error

Code: Select all

from pyGPIO.gpio import gpio, connector
from time import sleep
gpio.init()
gpio.setcfg(connector.GPIOp11, 1) #pin 7 as output
Traceback (most recent call last):
File "", line 1, in
AttributeError: 'module' object has no attribute 'GPIOp11'
gpio.setcfg(connector.GPIOp7, 1) #pin 7 as output
Traceback (most recent call last):
File "", line 1, in
AttributeError: 'module' object has no attribute 'GPIOp7'
gpio.setcfg(connector.GPIOp1, 1)
Traceback (most recent call last):
File "", line 1, in
AttributeError: 'module' object has no attribute 'GPIOp1'`

Who is online

In total there are 4 users online :: 0 registered, 0 hidden and 4 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 4 guests