[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 - Analog Voltage Divider DFR0051 - Afdrukweergave
nodo-domotica.nl
http://www.nodo-domotica.nl/forum/

Analog Voltage Divider DFR0051
http://www.nodo-domotica.nl/forum/viewtopic.php?f=4&t=2474
Pagina 1 van 1
Auteur:  wvh [ 10 mei 2015, 22:46 ]
Titel:  Analog Voltage Divider DFR0051

De DFR0051 werkt heel mooi met arduino mega en het voorbeeld progje .
-----------------------------------------------------------------------------------------------------------------
void setup()
{
Serial.begin(9600);
}
void loop()
{
int val;
float temp;
val=analogRead(1);//This divider module will divide the measured voltage by 5, the maximum voltage it can measure is 25V.
temp=val/40.92; //
val=(int)temp;//
Serial.println(val);
delay(100);
}
---------------------------------------------------------------------------------------------------------------------
5 volt is 500 in de monitor 12v is 1200 geen probleem .

Maar hoe kan ik die doen werken met de nodo ? .
De sens is aangesloten op de Analoge poort 1 met 10k weerstand naar 5V
De GND aan GND
De ingang DFR0051 aan regelbare voeding

EventlistWrite; Boot 2 ; WiredPullup 1,Off
EventlistWrite; Boot 2 ; TimerSet 1,30
EventlistWrite; Timer 1; TimerSet 1,30
EventlistWrite; Timer 1; Status WiredAnalog,1
EventlistWrite; Timer 1; VariableWiredAnalog 1,1
EventlistWrite; Timer 1; VariableSend 1, RF
EventlistWrite; Timer 1; TimerSet 1,3

De grafiek in de webapp is het zelfde als via de monitor Arduino 5.1.
stuur ik daar nu 5v of 12v in de uitlezing varieert tussen de 800 en de 900 ( NODO )
Heb ik hier dan een plugin voor nodig of wat doe ik fout hier ?

Victor

hier de link van de DFR0051
http://www.dfrobot.com/wiki/index.php/A ... U:_DFR0051
Auteur:  mvdbro [ 11 mei 2015, 12:18 ]
Titel:  Re: Analog Voltage Divider DFR0051

Voorzover ik kan achterhalen is dit gewoon een op weerstanden gebaseerde spanningsdeler. Dan gooit die 10k weerstand naar 5V misschien roet in het eten...
Auteur:  wvh [ 11 mei 2015, 21:43 ]
Titel:  Re: Analog Voltage Divider DFR0051

Pagina 1 van 1 Alle tijden zijn GMT + 1 uur