[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

I have one of these cheap pir modules hooked up to an atmega328.

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 6
Thread images: 1

File: hc-sr501-labelled-alt.png (249KB, 800x550px) Image search: [Google]
hc-sr501-labelled-alt.png
249KB, 800x550px
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.
Thread posts: 6
Thread images: 1


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.