[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 - Analog Voltage Divider DFR0051 • nodo-domotica.nl

nodo-domotica.nl

Analog Voltage Divider DFR0051

Hier alles over de hardware kant van de Nodo

Analog Voltage Divider DFR0051

Berichtdoor wvh » 10 mei 2015, 22:46

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
wvh
 
Berichten: 39
Geregistreerd: 15 nov 2011, 10:36

Re: Analog Voltage Divider DFR0051

Berichtdoor mvdbro » 11 mei 2015, 12:18

Voorzover ik kan achterhalen is dit gewoon een op weerstanden gebaseerde spanningsdeler. Dan gooit die 10k weerstand naar 5V misschien roet in het eten...
mvdbro
 
Berichten: 1092
Geregistreerd: 21 okt 2011, 12:06

Re: Analog Voltage Divider DFR0051

Berichtdoor wvh » 11 mei 2015, 21:43

wvh
 
Berichten: 39
Geregistreerd: 15 nov 2011, 10:36


Keer terug naar Nodo Hardware

Wie is er online?

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