[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 + MEGA.... Help....24-12-2013 Opgelost!! :-) - Afdrukweergave
nodo-domotica.nl
http://www.nodo-domotica.nl/forum/

LDR + MEGA.... Help....24-12-2013 Opgelost!! :-)
http://www.nodo-domotica.nl/forum/viewtopic.php?f=9&t=1817
Pagina 1 van 2  Volgende »
Auteur:  Naitsirhc [ 01 dec 2013, 12:37 ]
Titel:  LDR + MEGA.... Help....24-12-2013 Opgelost!! :-)

Moedeloos wordt ik er van. :|

Heb nu het allergemakkelijkste :| voorbeeld gepakt om toch te kijken of ik uberhaupt wat met een mega en de webapp kan doen.
Ik heb een LDR op wired analog 0 geprikt
Als ik in de setup/commands
status wiredanalog 1 invoer,
zie ik als output:
Input=HTTP(141.138.136.245); Unit=1; Event=Status WiredAnalog,1
WiredAnalog 1,167

Output verandert als ik het licht uit doe....

Vervolgens heb ik bij setup/values
Add value
wiredanalog
unit 1
wiredin port 1
Line
default
ingevoerd.

In de webapp zie ik vervolgens bij values:
0
No data available.

Wat gaat er nu fout....??? wie weet het antwoord

Ik word er moedeloos van :|
Auteur:  kabouter [ 01 dec 2013, 13:39 ]
Titel:  Re: LDR + MEGA.... Help

Auteur:  Naitsirhc [ 01 dec 2013, 14:55 ]
Titel:  Re: LDR + MEGA.... Help

Bedankt voor je snelle reactie:
Ik heb een LDR script aangemaakt met daarin
EventlistWrite; Timer 1; TimerSet 1,10 !Timer van 5 minuten eventueel aanpassen
EventlistWrite; Timer 1; Status WiredAnalog,1 !en heb je ook de Wildcards aan staan ?
EventlistWrite; WildCard Wired,All,0; EventSend RF
EventlistWrite; WildCard All,Variable,0: EventSend RF
EventlistWrite; WildCard RF,All,0;

vervolgens execute after write aangevinkt en execute gedrukt
vervolgens reboot bij commands

In de eventlog zie ik:
Boot 1
WiredIn 1, off
Dus op de een of andere manier gaat dat waarschijnlijk goed.

Als ik de eventlist bekijk zie ik:
EventlistErase
EventlistWrite; WildCard RF,All,0; EventSend HTTP
EventlistWrite; WildCard IR,All,0; EventSend HTTP
EventlistWrite; WildCard Wired,All,0; EventSend HTTP
EventlistWrite; WildCard All,UserEvent,0; EventSend HTTP
EventlistWrite; Timer 1; TimerSet 1,10
EventlistWrite; Timer 1; Status WiredAnalog,1
EventlistWrite; WildCard Wired,All,0; EventSend RF

Het enige dat ik, bij values zie, No data available....
Auteur:  rtenklooster [ 01 dec 2013, 15:45 ]
Titel:  Re: LDR + MEGA.... Help

Klopt, je moet de teller wel instellen bij booten,
dus eventjes:
EventlistWrite; Boot 1; TimerSet 1,10;

Hiermee help je de boel op gang. Dus: Bij opstarten van unit 1, zet teller 1 op 10 seconden.

In de eventlist die je hierboven hebt gepost, zeg je, als timer 1 is afgelopen dan... enige is dat die teller nooit afloopt als je hem niet van tevoren instelt, snap je?
Succes.
Auteur:  Naitsirhc [ 01 dec 2013, 15:53 ]
Titel:  Re: LDR + MEGA.... Help

JULLIE ZIJN BRILJANT....


Het werkt nu. Ben als een kind zo blij.

Nu er voor zorgen dat de rest gaat werken. Maar dit is al wat.....

Dank je wel
Auteur:  rtenklooster [ 01 dec 2013, 19:23 ]
Titel:  Re: LDR + MEGA.... Help

Mooi dat je het werkend hebt gekregen.
Bij vragen, gewoon stellen, we zijn op dit planeetje om elkaar te helpen nietwaar?
Auteur:  Naitsirhc [ 01 dec 2013, 19:35 ]
Titel:  Re: LDR + MEGA.... Help

Ja dat klopt.

Wat ik dan wel raar vind, is dat de waarde schommelt tussen 190 en 150, waarbij de nodo op dezelfde positie ligt en met hetzelfde licht wordt beschenen
Auteur:  ralph [ 01 dec 2013, 22:10 ]
Titel:  Re: LDR + MEGA.... Help

Kleinigheid... misschien heb je het al veranderd, maar ik zie staan...
EventlistWrite; WildCard All,Variable,0: EventSend RF
dit moet zijn...
EventlistWrite; WildCard All,Variable,0; EventSend RF ;)
Auteur:  rtenklooster [ 01 dec 2013, 22:47 ]
Titel:  Re: LDR + MEGA.... Help

Je zou een andere weerstand kunnen gebruiken om iets hoger uit te komen.
Een analoog input signaal heeft altijd een waarde tussen de 0 en 1024.

Waarbij 1024 5 volt is, en 0, 0 volt.
Je hebt het over een verschil van 190 - 150 = 40
Dat is pak hem beet 4% verschil, prima verklaarbaar dus.
De LDR gebruik je meestal om een dag nacht te kunnen onderscheiden. Hier moet gewoon genoeg verschil in zitten, bij schemer wil je meestal een bepaalde actie uitvoeren, dan krijg je meestal veel grotere afwijkingen dan de 40 die je nu hebt.
Auteur:  mvdbro [ 02 dec 2013, 16:35 ]
Titel:  Re: LDR + MEGA.... Help

kwestie van juiste WiredSmittTrigger en WiredThreshold selecteren.
Pagina 1 van 2 Alle tijden zijn GMT + 1 uur