Please select To the mobile version | Continue to access the desktop computer version

OrangePi

 Login            
 Register            
Search
Hot search: orangepi
12Next
Return to list New
View: 10471|Reply: 16

OrangePi 2G-IOT - GPIO Pins. Help

[Copy link]

6

Threads

70

Posts

370

Credits

Intermediate member

Rank: 3Rank: 3

Credits
370
Post time 2017-5-19 15:36:04 From the mobile phone | Show all posts |Read mode
I wolud like to use 40 pins gpio pins, for example witch oled displays, arduino sensors (dht22, mq135...) . Is there any way to do this? Adafruit libraries for orange pi h3, a31, etc.. dont works. Help please..

6

Threads

70

Posts

370

Credits

Intermediate member

Rank: 3Rank: 3

Credits
370
 Author| Post time 2017-6-8 22:44:47 | Show all posts
How to on/off a led by Orange Pi 2G IoT by GPIO:

http://surfero.blogspot.com.es/2 ... ange-pi-2g-iot.html

58

Threads

662

Posts

3754

Credits

Administrator

Rank: 9Rank: 9Rank: 9

Credits
3754
Post time 2017-5-27 16:46:40 | Show all posts
I suggest you could install wiringPi
H3 WiringPi GPIO(c lib):      
git clone https://github.com/kazukioishi/WiringOP.git -b h3
H3 WiringPi GPIO(pythonlib):  
Download link: http://www.orangepi.cn/orangepib ... &highlight=gpio

DHT11 could refer to:
http://www.orangepi.org/orangepi ... amp;highlight=DHT11

6

Threads

70

Posts

370

Credits

Intermediate member

Rank: 3Rank: 3

Credits
370
 Author| Post time 2017-5-28 20:02:01 | Show all posts
admin replied at 2017-5-27 16:46
I suggest you could install wiringPi
H3 WiringPi GPIO(c lib):      
git clone https://github.c ...

I have compiled H3 WiringPi GPIO(c lib, now i have this error:


./gpio/gpio readall
+-----+-----+--[  556.458374] Unhandled fault: external abort on non-linefetch (0x008) at 0xb6f96000
--------+------+---+-Orange Pi+---+---+------+---------+-----+--+
| BCM | wPi |   Name   | Mode | V | Physical | V | Mode | Name     | wPi | BCM |
+-----+-----+----------+------+---+----++----+---+------+----------+-----+-----+
|     |     |     3.3v |      |   |  1 || 2  |   |      | 5v       |     |     |
Bus error



I think this libraries aren,t for orange pi 2G IoT SOC SoC – RDA Micro 8810PL

¿any solution or ideas for use Orange Pi 2G IoT GPIO ports or this harwdware is impossiible to use?

58

Threads

662

Posts

3754

Credits

Administrator

Rank: 9Rank: 9Rank: 9

Credits
3754
Post time 2017-5-31 14:24:12 | Show all posts
surfero75 replied at 2017-5-28 20:02
I have compiled H3 WiringPi GPIO(c lib, now i have this error:

Sorry did not read your topic. Will check for you later.

6

Threads

70

Posts

370

Credits

Intermediate member

Rank: 3Rank: 3

Credits
370
 Author| Post time 2017-5-31 22:01:34 | Show all posts
Ok!
I will put it in my Orange pi 2G IoTresume gide (Spanish):

http://surfero.blogspot.com.es/2 ... ot-referencias.html

6

Threads

70

Posts

370

Credits

Intermediate member

Rank: 3Rank: 3

Credits
370
 Author| Post time 2017-6-2 23:54:34 From the mobile phone | Show all posts
No news about this? Thanks

2

Threads

6

Posts

32

Credits

Novice

Rank: 1

Credits
32
Post time 2017-6-3 02:15:13 | Show all posts
Edited by Sod-Almighty at 2017-6-3 02:17

WiringOP doesn't really work, because the lazy OrangePi devs couldn't be arsed to do it properly. Whole functions are rendered no-op, such as pinModeAlt. I've made forks here and here that are a bit more usable. You might want to take a look.
If they don't work on your board, then I suggest demanding a refund. If the devs can't provide working software for their product, they shouldn't be selling the product. Get it refunded and buy a Raspberry instead.

6

Threads

70

Posts

370

Credits

Intermediate member

Rank: 3Rank: 3

Credits
370
 Author| Post time 2017-6-3 04:57:36 | Show all posts
Sod-Almighty replied at 2017-6-3 02:15
WiringOP doesn't really work, because the lazy OrangePi devs couldn't be arsed to do it properly. Wh ...

https://github.com/Sod-Almighty/WiringOP-Zero/
WiringOP-Zero:

root@OrangePI:/opt/zero/WiringOP-Zero/gpio# ./gpio  readall
+-----+-----+----------+------+--Orange Pi Zero--+---+------+---------+-----+--+
| H2+ | wPi |   Name   | Mode | V | Physical | V | Mode | Name     | wPi | H2+ |
+-----+-----+----------+------+---+----++----+---+------+----------+-----+-----+
|     |     |     3.3v |      |   |  1 || 2  |   |      | 5v       |     |     |
Bus error


https://github.com/Sod-Almighty/WiringOP
WiringOP:
root@OrangePI:/opt/wiringpi/WiringOP/gpio# ./gpio readall
+-----+-----+----------+------+---+-Orange Pi+---+---+------+---------+-----+--+
| BCM | wPi |   Name   | Mode | V | Physical | V | Mode | Name     | wPi | BCM |
+-----+-----+----------+------+---+----++----+---+------+----------+-----+-----+
|     |     |     3.3v |      |   |  1 || 2  |   |      | 5v       |     |     |
Bus error


Did they test the GPIO function at the factory before making this board? I can not believe that anything goes to the market without the right drivers



3

Threads

62

Posts

948

Credits

Senior member

Rank: 4

Credits
948
Post time 2017-6-3 19:19:51 | Show all posts
Hello

I read in another topic about that Xunlong working on gpio support,

1. have any news when will realize beta version?
2. any news about work stage?
3. are SPI and I2C work in this stage?

6

Threads

70

Posts

370

Credits

Intermediate member

Rank: 3Rank: 3

Credits
370
 Author| Post time 2017-6-4 15:39:16 | Show all posts
Moderators update news about this Issue please!  People realy needs gpio pins for use this board. Tell us a solution.
12Next
Return to list New
You have to log in before you can reply Login | Register

Points Rules

Archiver|Mobile edition|Darkroom|OrangePi En ( 粤ICP备14086627号-2

2020-2-28 01:13 GMT+8 , Processed in 0.036670 second(s), 24 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list