I have one of these cheap pir modules hooked up to an atmega328. It is supposed to trigger an interrupt and wake the atmega.
Everything seems to work but when the atmega goes into sleep mode it causes a false positive on the pir module and wakes itself up.
It works fine without sleeping and the interrupt works fine if i use a switch instead of the pir module.
I have removed the voltage regulator from the pir and it now shares a regulator with the atmega.
I assume the problem is caused by some kind of interference on the 3.3v rail but I don't have a scope. What should I do?
>>1011684
invest in pullup / pulldown resistors
without a schematic we can't say shit
>>1011686
pull up / pull down resistors for what? i thnk i have them on everthing that needs them, everything works except when i sleep the atmega
i just don't understand why sleeping the atmega seems to be causing interference on the 3.3v
>>1011690
pulldown for the output
you can add some caps to the power rail.
>>1011695
i've tried adding a 10k pulldown to the pir out but it made no difference
>>1011699
show the schematic. want our help? don't make us work for it.