I’m using the USB Weather Board V3 (SEN-10586) to collect data for my remote weather station using the xbee pro s1, but the rain gauge needs to be reset on connection otherwise the readings for the previous recording are the one being displayed cumulatively. I would like to send a command via a serial program like xctu or coolterm to reset the weather board when required and was wondering how to go about it. Any help will be deeply appreciated.
I took a very quick look at the PCB and schematic.
The RES (reset) pin on the board edge appears to not be connected to a PCB trace. The schematic shows that RES is not connected (not good in any design).
Maybe the firmware in the AVR can be told to reset. Or you can add that.
Else the brute force way might be:
add a jumper wire to connect the reset pin of the AVR micro to the board edge RES pin.
Connect the RES signal to a digital I/O bit (DIO) on the XBee S1.
Use AT commands or XCTU to configure the XBee’s DIO pin #n to be active low.
You can then use AT commands or XBee Binary API commands to set the DIO pin low then high to toggle the reset.
The XBee also has an option to just pulse the DIO pin on command.
But truly, isn’t there a data message command to trigger a new set of samples be taken? A reset would not seem to be the only way.
Beware: the AVR is running on 5V and the XBee DIO are 3.3V. I suspect the 3.3V high is good enough for the AVR.
Is this the one you are talking about?
http://www.pololu.com/product/1693/resources
If so, looking into the datasheet of the board: http://www.pololu.com/file/0J493/USB_We … 110615.pdf
I read on page 5 that there is a “rain counter zero” as part of its configuration menu. Accessible by sending “Ctrl-Z” over serial terminal connection.