Remote Sensing with XBee
Another project I have been chipping away on is a remote sensor for say a solar charger. I don’t actually have the proper solar gear it is intended for, but I do have a rather crude arrangement for a 6V sealed, lead acid battery being tickle charged from a 9V solar panel. This arrangement has worked without any issues for the last four years. I decided to use this for my first “integration test” of the sensor.
The sensor itself, is simply a voltage divider to monitor the battery as well as an on-board temperature sensor. The whole thing connects to a Teensy 3.2 using the CE_Header. The Teensy is powered by the battery under charge via a 5V LDO that I had created a while back to help out with another project.
The test code that I have so far, has the Teensy transmitting the battery voltage and temperature every 5 seconds.
The messages are being received by another XBee attached to a Raspberry Pi -using a small adapter I created for the purpose. On the Raspberry Pi, I have a small Python program to simply print out the message it receives.
This setup is obviously far from optimal in terms of the drain on the battery under charge. At this stage my focus is seeing if these pieces will work together. There is still a lot of work to do along the chain of data creation, transmission and consumption. One of the next steps is to sort out a proper power system for the Teensy and sensor. From the initial tests, the battery readings started at 6.53V and after about 10 minutes dropped to 6.48V and remained there even after one hour (so far). These initial results are encouraging, it needs to be said, we have a sunny day here today and so to better understand the impact of the setup I have for this test case, I should be measuring and comparing the current through the system.