[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)
Toon onderwerp - LDR + MEGA.... Help....24-12-2013 Opgelost!! :-) • nodo-domotica.nl

nodo-domotica.nl

LDR + MEGA.... Help....24-12-2013 Opgelost!! :-)

Voor hulp om je Nodo aan de praat te krijgen

LDR + MEGA.... Help....24-12-2013 Opgelost!! :-)

Berichtdoor Naitsirhc » 01 dec 2013, 12:37

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 :|
Laatst bijgewerkt door Naitsirhc op 24 dec 2013, 21:55, in totaal 2 keer bewerkt.
Naitsirhc
 
Berichten: 232
Geregistreerd: 30 sep 2011, 14:28

Re: LDR + MEGA.... Help

Berichtdoor kabouter » 01 dec 2013, 13:39

kabouter
 
Berichten: 214
Geregistreerd: 10 nov 2011, 13:57

Re: LDR + MEGA.... Help

Berichtdoor Naitsirhc » 01 dec 2013, 14:55

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....
Naitsirhc
 
Berichten: 232
Geregistreerd: 30 sep 2011, 14:28

Re: LDR + MEGA.... Help

Berichtdoor rtenklooster » 01 dec 2013, 15:45

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.
rtenklooster
 
Berichten: 377
Geregistreerd: 04 aug 2012, 12:10
Woonplaats: Aduard

Re: LDR + MEGA.... Help

Berichtdoor Naitsirhc » 01 dec 2013, 15:53

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
Naitsirhc
 
Berichten: 232
Geregistreerd: 30 sep 2011, 14:28

Re: LDR + MEGA.... Help

Berichtdoor rtenklooster » 01 dec 2013, 19:23

Mooi dat je het werkend hebt gekregen.
Bij vragen, gewoon stellen, we zijn op dit planeetje om elkaar te helpen nietwaar?
rtenklooster
 
Berichten: 377
Geregistreerd: 04 aug 2012, 12:10
Woonplaats: Aduard

Re: LDR + MEGA.... Help

Berichtdoor Naitsirhc » 01 dec 2013, 19:35

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
Naitsirhc
 
Berichten: 232
Geregistreerd: 30 sep 2011, 14:28

Re: LDR + MEGA.... Help

Berichtdoor ralph » 01 dec 2013, 22:10

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 ;)
Nodo-Mega V3.7 - R744
Nodo Shield V1.2.2 + Nodo Koppelprint
Arduino Mega 1280 + Ethernet Shield Wiznet W5100
Logitech Harmony Touch en DHT-22
ralph
 
Berichten: 70
Geregistreerd: 29 dec 2011, 13:11

Re: LDR + MEGA.... Help

Berichtdoor rtenklooster » 01 dec 2013, 22:47

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.
rtenklooster
 
Berichten: 377
Geregistreerd: 04 aug 2012, 12:10
Woonplaats: Aduard

Re: LDR + MEGA.... Help

Berichtdoor mvdbro » 02 dec 2013, 16:35

kwestie van juiste WiredSmittTrigger en WiredThreshold selecteren.
mvdbro
 
Berichten: 1092
Geregistreerd: 21 okt 2011, 12:06

Volgende

Keer terug naar Nodo aan de praat krijgen

Wie is er online?

Gebruikers in dit forum: Geen geregistreerde gebruikers. en 3 gasten