Page 1 of 1

Challenger RP2040 LoRa (868MHz) with Adafruit Circuit Python

Posted: Fri Jul 05, 2024 6:54 pm
by pede
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?

Re: Challenger RP2040 LoRa (868MHz) with Adafruit Circuit Python

Posted: Sat Jul 06, 2024 6:41 pm
by pede
works, changing uf2 file (using latest adafruit-circuit-challenger ...)

Re: Challenger RP2040 LoRa (868MHz) with Adafruit Circuit Python

Posted: Tue Jul 09, 2024 8:01 am
by Pontus
Fantastic, good job.