Hi,
I just soldered the EmonTX Low Power Temperature Node, uploaded the firmware as described at the page, set the frequency to 868MHZ. But nothing happens. I got the following code for the gLCD:
void loop(){
if (rf12_recvDone()){
if (rf12_crc == 0 && (rf12_hdr & RF12_HDR_CTL) == 0){ // and no rf errors
int node_id = (rf12_hdr & 0x1F);
if (node_id == 18){ // === EXTERNAL TEMP MODULE ====
Serial.println("COMMUNICATION OK ");
}
}
}
what could possibly be wrong??
Re: EmonTX Low Power Temperature Node
Bramper,
I'm guessing you were expecting the temperature to display on your GLCD?
1) Firstly have you checked that your Temperature node is working by looking at the serial output?
2) Is your temperature Node and your GLCD on the same Network Group? Take a look at http://openenergymonitor.org/emon/buildingblocks/rfm12b2
Re: EmonTX Low Power Temperature Node
Now I got output to the Serial monitor:
temp: always -12700
battery: 3255
But this I only got when I remove the following part from the script:
rf12_sleep(RF12_WAKEUP);
// if ready to send + exit loop if it gets stuck as it seems too
int i = 0; while (!rf12_canSend() && i<10) {rf12_recvDone(); i++;}
rf12_sendStart(0, &emontx, sizeof emontx);
// set the sync mode to 2 if the fuses are still the Arduino default
// mode 3 (full powerdown) can only be used with 258 CK startup fuses
rf12_sendWait(2);
rf12_sleep(RF12_SLEEP);
Sleepy::loseSomeTime(time_between_readings);
So I got 2 problems: temperature is not correct, and he does not send any data
Re: EmonTX Low Power Temperature Node
How confident are you of your soldering? It might be worth checking your board.
Re: EmonTX Low Power Temperature Node
I checked the board, everything is OK but...
I found something else, when I upload the original firmware (emontx_lowpower_temperature.ino) it was not working, when I upload another (emontx_lowpower_temperature_humidity) and I delete the part to measure the humidity, it works fine... strange,.... no??
Re: EmonTX Low Power Temperature Node
I post the code soon...
Re: EmonTX Low Power Temperature Node
as promised ...
the GLCD file and the emonTX low temperature node file