[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/bbcode.php on line 112: 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 - Ldr aansluiten - Afdrukweergave
nodo-domotica.nl
http://www.nodo-domotica.nl/forum/

Ldr aansluiten
http://www.nodo-domotica.nl/forum/viewtopic.php?f=9&t=542
Pagina 1 van 2  Volgende »
Auteur:  toean [ 06 mei 2012, 16:03 ]
Titel:  Ldr aansluiten

Hallo allemaal,

Als ik een LDR aansluit krijg ik geen correcte uitlezing. De waarde die ik via de webb-app terug krijg ligt altijd tussen 99,7 en 100, ook als ik hem helemaal afdek.

Ik heb de LDR volgens diverse beschrijvingen aangesloten:
- zoals in de oude setup met 1 pootje op GND en 1 pootje op Analog in 1.
- zoals beschreven op het Arduino-forum: met 1 pootje op 5V, met het andere pootje samen met 1 pootje van een 10K weerstand op Analog 1 en het andere pootje van de weerstand op GND. (Ook geprobeert met een 1K weerstand).

Als ik een ander analoge poort uitlees ,waar niets op aangesloten is, krijg ik dezelfde waarde.

De LDR zelf werk perfect, dit heb ik gemeten met een multimeter.
Auteur:  twkr [ 06 mei 2012, 18:56 ]
Titel:  Re: Ldr aansluiten

Zo heb ik het gedaan:

Commands:
<= niet van belang.

WiredCalibrate 1, High,100
(lamp op LDR schijnen)


WiredCalibrate 1, Low,0
(LDR afdekken)

Webapp geeft dan value van 0-100%
Auteur:  toean [ 06 mei 2012, 20:05 ]
Titel:  Re: Ldr aansluiten

Bedankt,

Heb ik geprobeert met als resultaat: WiredAnalog 1,0.01, zowel bedekt als onbedekt.........

Ik denk toch dat het in de aansluiting zit. Hoe heb jij dat gedaan.
Auteur:  twkr [ 06 mei 2012, 20:41 ]
Titel:  Re: Ldr aansluiten

Ik heb het aangesloten zoals hier staat:
inclusief zener en weerstand om de ingang te beveiligen.

Probeer anders een andere ingang, misschien is ingang 1 stuk gegaan?
Auteur:  toean [ 06 mei 2012, 21:02 ]
Titel:  Re: Ldr aansluiten

Wil ik wel proberen, maar ben bang die dan ook kapot te maken.

Ik moet dus exact weten hoe het aangesloten moet worden.
Auteur:  toean [ 07 mei 2012, 20:49 ]
Titel:  Re: Ldr aansluiten

Als ik de LDR aansluit zonder de WredCalibrate commando's te geven krijg ik als waarde 99,9 terug en met gebruik van WiredCalibrate 0,01.
Zodra ik de LDR verwijder blijft de waarde 0,01 op deze poort.
Alle wired-in poorten waar niets aan hangt geven ook 99,9.

Kan iemand mij verder helpen a.u.b.
Auteur:  kabouter [ 07 mei 2012, 22:06 ]
Titel:  Re: Ldr aansluiten

Auteur:  toean [ 08 mei 2012, 18:07 ]
Titel:  Re: Ldr aansluiten

Bedankt,

Maakt ook geen verschil.

Ik heb wel in het eventlog de melding WiredIn 1,Off zien staan ,ondanks ik het commando WiredIn 1, On heb gegeven....

Er zal toch wel iemand op dit forum zijn die dit op kan lossen ??? :(
Auteur:  toean [ 09 mei 2012, 19:42 ]
Titel:  Re: Ldr aansluiten

Ben weer wat verder. Heb de weerstand nogmaals gesoldeerd en krijg nu betere uitlezingen.
Heb nu echter het volgende probleem:
De uitlezingen variƫren nu continu. D.w.z. als ik de waarde uitlees via de webapp en dit meteen daarna nogmaals doe, zonder de LDR anders te belichten uiteraard, krijg ik een heel andere waarde. B.v. 1=87, 2=-10, 3=66, 4=16, 5=88 enz.
WiredPullup 1, Off geeft geen verbetering.
Kan ik dit zo gebruiken om een treshold in te stellen of gaat dat niet werken ?
Auteur:  Flippo765 [ 26 jul 2012, 22:12 ]
Titel:  Re: Ldr aansluiten

Al een antwoord gevonden?

Heb hier hetzelfde probleem namelijk.
Sterker nog, met de Nodo kit werkt alles prima en wanneer ik het breadbord op de Mega aansluit krijg ik die rare waardes.
Pagina 1 van 2 Alle tijden zijn GMT + 1 uur