guidosch / bikecounter

This repository contains the hardware and software components of a PIR based tracking device to monitor the usage of local bike trails. The data is sent over LoRaWAN to TTN and from there to a Google Cloud backend which stores the data and provides api endpoints for the data visualization web UI.
Creative Commons Zero v1.0 Universal
5 stars 0 forks source link

Floating interrupt pin (PIR-sensor) #13

Closed MeierTobias closed 2 years ago

MeierTobias commented 2 years ago

Does the bug still exist after the improvements? If yes: Add an external pull-down resistor (ex. 10kOhm)

guidosch commented 2 years ago

May be we could also try to power the PIR-sensor over a GPIO and powercycle if we encouter the problem again.

MeierTobias commented 2 years ago

May be we could also try to power the PIR-sensor over a GPIO and powercycle if we encouter the problem again.

I've allready implemented this functionality in commit 56dffbbf8f9618892b4d479a88fb53bb3e4537cf You can now specify the GPIO pin to power the sensor. (currently pin 2) I also found an internal pull-down resistor flag. I thought that the MKR 1310 only has internal pull-up resistors. But its worth a try :)

This issue was meant as a "follow up" but I think we can close it and reopen a new one if the problem still exists.

guidosch commented 2 years ago

First device is resoldered and uses the new code with the power pin. Works so far nicely.

MeierTobias commented 2 years ago

Wuhuu 🚲