Challenger RP2040 LoRa (868MHz) with Adafruit Circuit Python
Posted: Fri Jul 05, 2024 6:54 pm
Hi,
I'm using this board and I want to connet a 3 volt pir sensor:
Heevhas 5PCS AM312 Mini Pyroelektrisches PIR Human Sensor Modul DC 2,7 V bis 12 V PIR Infrarot IR
The senso is connected to Ground, 3 Volt and pin 9 / D9 refering ilabs (https://ilabs.se/the-challenger-series/) of the board.
My test code is simple:
import board
import digitalio
import time
pir = digitalio.DigitalInOut(board.D9)
pir.direction = digitalio.Direction.INPUT
zae = 0
while zae < 10:
print(" Pir state?", pir.value)
zae = zae + 1
time.sleep(5)
The result, always false ....... it seems the pin doesn't react on gestures by hand?
Any ideas? With an adafruit board it works?
I'm using this board and I want to connet a 3 volt pir sensor:
Heevhas 5PCS AM312 Mini Pyroelektrisches PIR Human Sensor Modul DC 2,7 V bis 12 V PIR Infrarot IR
The senso is connected to Ground, 3 Volt and pin 9 / D9 refering ilabs (https://ilabs.se/the-challenger-series/) of the board.
My test code is simple:
import board
import digitalio
import time
pir = digitalio.DigitalInOut(board.D9)
pir.direction = digitalio.Direction.INPUT
zae = 0
while zae < 10:
print(" Pir state?", pir.value)
zae = zae + 1
time.sleep(5)
The result, always false ....... it seems the pin doesn't react on gestures by hand?
Any ideas? With an adafruit board it works?