Using a Keyestudio PIR designed to operate at 3.3v http://wiki.keyestudio.com/index.php/Ks ... ion_Sensor
When triggered the signal goes high and is outputting 2.9v. I'm using pin0.read.digital and I'm not getting an on reading when it goes to 2.9v. Is this normal?
Help with PIR
Re: Help with PIR
Possibly normal, due to a mistaken default (in my view), see https://github.com/bbcmicrobit/micropython/issues/288
On microbit you may need to explicitly disable the Pull-Down resistor which is automatically configured for you by the fact you called digital_read(), depending on the nature of the output, and whether the pull-down will dominate your circuit logic.
On microbit you may need to explicitly disable the Pull-Down resistor which is automatically configured for you by the fact you called digital_read(), depending on the nature of the output, and whether the pull-down will dominate your circuit logic.
Re: Help with PIR
Thanks. All fixed with:
pin0.set_pull(pin0.NO_PULL)
pin0.set_pull(pin0.NO_PULL)