View: 6216|Reply: 1

Orange Pi Zero and OPi.GPIO library for connect AS3935 sensor

[Copy link]

4

threads

4

posts

31

credits

Novice

Rank: 1

credits
31
Published in 2017-9-10 05:30:14 | Show all floors |Read mode
I'm implementing an Embedded Adventures MOD-1016 Lightning Detector AS3935 on a Orange Pi Zero with Armbian Operating System and the pcfens Raspberry Pi Library (https://github.com/pcfens/RaspberryPi-AS3935) these are the steps I did to try to make it work:

1. I used the following Orange Pi Zero pins to connect the sensor: 25 (Ground) - 1 (3v3 Power) - 11 IRQ (GPIO 17 on Raspberry or GPIO1 here on Orange Pi Zero) - 5 (SCL) - 3 (SDA). Now pin 11 on Orange Pi Zero does not match GPIO 17 as in Raspberry but with UART2_RX / PA01 / GPIO1.
2. I installed the Opi.GPIO library instead of that of Raspberry Rpi-GPIO to make pcfens library work for Raspberry Pi.
3. I've inserted some corrections to the library's "demo.py" script to run the sensor software. I changed the I2C address by setting it to 0X03 and changing the tuning and the noise.

Launching the AS3935 test software "demo.py" seems to work, I'm better off not just one error, but I see this message "UserWarning: Channel 17 is already in use, continuing anyway. Use GPIO.setwarnings (False) to disable warnings . "I think it means the door is already occupied.

How do I know if GPIO port 17 or better GPIO1 in Orange Pi Zero is used regularly by the AS3935 sensor?
Any idea to fix the error message?

Greetings from MAX.

1

threads

28

posts

145

credits

Registered member

Rank: 2

credits
145
Published in 2024-11-4 05:51:46 | Show all floors
If you're looking for reliable and professional local door installers, consider checking out https://www.palmcoastdoorinstallation.com/. Skilled in a variety of door types, including interior, exterior, and sliding doors, these experts provide top-notch installation services tailored to your specific needs. With their attention to detail and commitment to quality, you'll enjoy doors that enhance the security, style, and energy efficiency of your home. Trustworthy and experienced, they make the process smooth and hassle-free, ensuring your home looks great with perfectly installed doors.
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list