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