please choosego to mobile | Continue to access the PC version
View: 21740|Reply: 95

How to manage GPIO on OrangePI Zero 2

[Copy link]

1

threads

1

posts

7

credits

Novice

Rank: 1

credits
7
Published in 2021-7-31 06:18:30 | Show all floors |Read mode
Edited by FedericoCoppola at 2021-7-31 06:20

Hi all,
I have received a new Orange Pi Zero 2 (512MB of RAM) to build a very small weather station.
My goal is to connect and manage DHT22 sensor to collect temperature and humidity data.

I installed on a micro SD card Debian and the system is running properly in this moment.
After that I installed Python3 software necessary to my project.
I am try to follow this guide: https://f1atb.fr/index.php/2020/10/03/dht22-and-orange-pi-zero/
I know that the guide talks about Orange Pi Zero and not about Orange Pi Zero 2, but I have not found any information about Orange Pi Zero 2 and DHT22.

In this moment, I fails to try communication between Orange PI Zero 2 and DHT22 sensor because I do not understand how to identiy GPIO pins.

I have just a very poor information about GPIO (I have attached a picture that I collected from the web store that sells this board).

I need a digital GPIO PIN to use as input pin for DHT22 data collected.

How can I found the real pins' name?

For example I tried to manage pin PC9 (You can see this pin inside the picture attached to this post) but it did not worked.

>>> PIN=port.PC9
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'pyA20.gpio.port' has no attribute 'PC9'



What can I do?

Any suggestions?

Best regards!
Federico


This thread contains more resources

You need to Log in to download or view,No account?    Register

x

1

threads

24

posts

105

credits

Registered member

Rank: 2

credits
105
Published in 2021-8-5 04:09:17 | Show all floors
Hi,
The tutorial you followed installs a GPIO library specificly for Orange Pi Zero.
The guy who wrote this library only created it for OPi Zero not OPi Zero2

https://github.com/nvl1109

Therefore this tutorial will not work.
The pin names for OPi Zero 2 can be found on this link:

https://linux-sunxi.org/Xunlong_Orange_Pi_Zero_Plus_2

You will need to find an alternate python controlled GPIO library for the Orane Pi zero 2,
then modify the code.

The alternative is to buy the Orange Pi Zero, as they are pretty inexpensive
Hope that helps

1

threads

72

posts

229

credits

Intermediate member

Rank: 3Rank: 3

credits
229
Published in 2023-3-12 20:43:45 | Show all floors
My mother spoke disparagingly of mushrooms believing that they had little nutritional content- however she was very wrong. Mushrooms are sources of minerals such as copper, potassium, selenium, and ergothionine, which has antioxidant properties and may help protect against cancer. Copper is necessary in our diets because it helps in the production of healthy red blood cells and is essential for healthy nerves and bones. Potassium helps to control and normalize blood pressure, so assisting the proper functioning of the nerves and muscles, which includes the heart..          Homepage

1

threads

72

posts

229

credits

Intermediate member

Rank: 3Rank: 3

credits
229
Published in 2023-3-21 20:12:21 | Show all floors
It is truly a nice and useful piece of info. I’m satisfied that you shared this useful information with us. Please keep us up to date like this. Thanks for sharing.        안전놀이터

1

threads

72

posts

229

credits

Intermediate member

Rank: 3Rank: 3

credits
229
Published in 2023-4-9 04:26:28 | Show all floors
This web page is usually a walk-through for all of the info it suited you in regards to this and didn’t know who must. Glimpse here, and you’ll undoubtedly discover it.        Ac installation las vegas

1

threads

72

posts

229

credits

Intermediate member

Rank: 3Rank: 3

credits
229
Published in 2023-5-3 22:25:49 | Show all floors
It can be difficult to make a choice whenever looking at all of the different airsoft guns that you have available to you. Not only do you have to think about quality, along with authenticity, price is often going to be an issue as well. If you're looking for something that is in the mid range as far as price is concerned, yet can really deliver a quality weapon for use in the field, G&G Combat Machines are going to be an obvious choice. Here is a short review of this air soft gun from G&G and what you can expect out of it, once you are using it in the field.          check it out

0

threads

76

posts

280

credits

Intermediate member

Rank: 3Rank: 3

credits
280
Published in 2023-5-7 15:00:01 | Show all floors
Thanks for a wonderful share. Your article has proved your hard work and experience you have got in this field. Brilliant Fox Business Live

0

threads

76

posts

280

credits

Intermediate member

Rank: 3Rank: 3

credits
280
Published in 2023-5-7 20:01:10 | Show all floors
Thanks for a wonderful share. Your article has proved your hard work and experience you have got in this field. Brilliant        
commercial  refrigeration

0

threads

76

posts

280

credits

Intermediate member

Rank: 3Rank: 3

credits
280
Published in 2023-5-8 12:49:08 | Show all floors
Thanks for a wonderful share. Your article has proved your hard work and experience you have got in this field. Brilliant         Fox Business Live

0

threads

76

posts

280

credits

Intermediate member

Rank: 3Rank: 3

credits
280
Published in 2023-5-8 19:49:30 | Show all floors
Thanks for a wonderful share. Your article has proved your hard work and experience you have got in this field. Brilliant 
Fox Business Live Stream Free
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list