A place users can post their projects. If you have a small project and would like your own dedicated place to post and have others chat about it then this is your spot.

User avatar
By Barnabybear
#53900 Hi, I'm out for the day so I can't do any tests untill later. A small capacitor placed in parallel with the 10K resistor should help increase the time CH_PD is held high, as it can't be discharged by the PIR going low because the diode is blocking.
Be really carefull to make sure that is in parallel with the 10k, with the 1K's between it and the GPIO's or any in rush current could dammage the GPIO's when you set GPIO 0 high.

Which PIR are you using? Is there anything in the code before you set GPIO 0 high?
When tested it only need a high of 325mS to remain stable.
User avatar
By Barnabybear
#53938 Hi, it looks like the PIR that you have has what is called an 'open collector' output. This means that it doesn't actualy output any voltage it only connects to ground or doesn't connect to ground.
It's going to be a little more tricky to make this work - I'll see what I can come up with.