Hello, I am trying to get sensor data from an opengarden node to an opengareden gateway, but failing so far.
When I upload the TX example sketch to the opengarden node (I only changed the 60 to 6 in order to send information every 6 seconds), and the "indoor _and outdoor" example sketch (or the node debug sketch) I get no information from the node ("No node connected" message).
Maybe I miss something very basic. Here are the steps.
- Node is bootloaded. I followed the steps to upload the bootloader to the ATtiny and I can upload and see that the blink sketch is working on pin 7 of the ATtiny so I understand that it is properly bootloaded. - Uploaded the TX sketch from GardenNode example (only changing the 60 to 6 in the nodewait command) - ATyni is on the node, turned on (green light) Moist sensor connected to node
-OpenGarden Gateway is on Arduino Uno, with the 'Indoor_and_Outdoor' sketch from example folder, unchanged.
Result: every minute, I can see the values for Luminosity, temperature etc from the gateway, but the message 'No node connected' for nodes 1 2 and 3
Hope someone can help . Thanks
This is the sketch on the node:
#include <OpenGardenNode.h>
Payload nodePacket; void setup() { //Initialize the transceiver OpenGardenNode.initRF(1); //Write here the number for your node ID (1 to 6) OpenGardenNode.initSensors(); //Initialize sensors power }
void loop() { OpenGardenNode.sensorPowerON(); //Turns on the sensor power supply OpenGardenNode.readSensors(); //Read all node sensors OpenGardenNode.sensorPowerOFF(); //Turns off the sensor power supply OpenGardenNode.sendPackage(); // Send data via RF asking for ACK OpenGardenNode.nodeWait(6); //Enter low power mode for 6 seconds (max: 60 seconds) }
|