[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4762: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4764: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4765: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4766: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
nodo-domotica.nl • Toon onderwerp - pir sensor klappert - Afdrukweergave
nodo-domotica.nl
http://www.nodo-domotica.nl/forum/

pir sensor klappert
http://www.nodo-domotica.nl/forum/viewtopic.php?f=26&t=593
Pagina 1 van 1
Auteur:  bryan241 [ 18 jun 2012, 09:06 ]
Titel:  pir sensor klappert

Ik gebruik een PIR sensor om een relais aan te sturen, maar zodra het relais uitschakelt geeft de PIR sensor onterecht weer een puls, waardoor het relais weer aan schakelt. Het relais schakelt overigens uit door middel van een timer, zodat de pir sensor veel eerder alweer een lage waarde geeft aan de arduino.
Ik voed de PIR sensor en het relais vanuit de arduino en heb een externe voeding aangesloten op de arduino om een stabiele 5 volt te verkrijgen.

Zonder relais gaat het wel goed (als ik de poort monitor zie ik alleen een puls als er beweging is).

Ik gebruik het relais met een bc547 transistor en een 1k weerstand op de basis en een diode over de pootjes van het relais.

Heeft iemand een idee hoe ik dit eventueel kan oplossen?
Auteur:  bryan241 [ 19 jun 2012, 10:07 ]
Titel:  Re: pir sensor klappert

Het gebeurd bij het schakelen van het relais. Zonder relais gaat het goed.
Ik moet het relais dus onafhankelijk gaan voeden. Dit lijkt me een beetje overdone...

Suggesties zijn welkom.
Auteur:  Flippo765 [ 05 jun 2014, 22:44 ]
Titel:  Re: pir sensor klappert

Heb je al een idee waar dit aan kan liggen?

Ik heb namelijk hetzelfde probleem, ik heb een sensor met led-verlichting op de WC.
De sensor voedt ik de arduino in en met een wiredthresshold wil ik de led verlichting (fade) laten schakelen.
Dat schakelen lukt prima met de RBG plugin maar de PIR geeft op de Nodo constant een andere waarde tussen de 600 het 60, dit lijkt mij het onjuist schakelen van de sensor.
Auteur:  manjh [ 06 jun 2014, 11:09 ]
Titel:  Re: pir sensor klappert

Je moet gewoon even een goeie kantelwaarde zoeken, en die instellen met WiredThreshold. Denk ook even aan de SmittTrigger waarde.
Op die manier voorkom je het flipfloppen.
Auteur:  Flippo765 [ 06 jun 2014, 11:38 ]
Titel:  Re: pir sensor klappert

Dat begrijp ik, alleen schommelt de waarde constant tussen de 40 en 600, ook als we niet in de ruimte komen.
Even een screenshot om te laten zien wat ik bedoel:
Afbeelding


De PIR is er een met 2 instelbare potmeters, (sensitivity en time) deze al in alle standen geprobeerd, ook heb ik diverse andere USB voedingen geprobeerd op de mega.

Kan het misschien zijn dat de spanning die uit de Mega op het breadboard komt instabiel is of storingen met zich meebrengt?

Datablad PIR:
Pagina 1 van 1 Alle tijden zijn GMT + 1 uur