BraveSirRobbin said:
Tom;
VERY nice setup! Couple of questions:
Did you write the software yourself for the web interface and notifications?
Can you give a little more detail on the boards analog inputs?
What WiFi range do you have and did you incorporate an external antenna?
Again, this is a very nice setup that could be used for a variety of projects via our forum members here, so the more details the better!
Thanks,
BSR
Yes, I wrote the software using php that looks at the data stored by the sensor to display the information on the web page.
The gauges use Google Charts (
https://developers.google.com/chart/interactive/docs/index ) for the gauge.
The RNXV is based on the Xbee format, but is standard 802.11 b/g. For specs (
https://www.sparkfun.com/products/10822 ) The RNXV has 4 , 10 bit A/D inputs. The device can be programmed fairly easily. When I got mine, I applied power, put it in adhoc mode and was able to connect to it via wifi. Once connected, I set it up to connect to my access point using DHCP and rebooted. From there on out you can simply telnet to it for configuration.
The main challenge here was power. The Maxbotix Sonar device outputs an analog voltage that is proportional to the distance. I was using a battery ( 3.6 V lithium ) and so I needed the voltage to remain constant. Hence the use of the small regulator board. This was purchased from circuits at home (
http://www.circuitsathome.com/ ) . This holds the voltage at a steady 3.3V to the maxbotix sensor so that the distance calculations are accurate.
The RNXV has a sensor power pin that isn't exposed but you can tap the chip pin directly. This way power is only applied to the sonar sensor when the RNXV wakes up saving energy.
The RNXV was programmed to sleep, wake up, post the value from the a/d and then go back to sleep. It uses very little power when sleeping.
I also configured the RNXV to connect using 1Mb data rate. The nature of 802.11 DSSS is that the lower the data rate the better the range. Since I'm sending so little data, 1Mb/sec is plenty fast. I also set the radio power to it's lowest level. This saves power when transmitting and keeps the entire power budget within the 120 ma of the regulator. Range has not been an issue, even in the concrete tank, the sensor is about 50 ft from the access point.
The antenna is built-in to the RNXV. You can order it 3 ways, with no antenna, with an SMA connector for an external antenna or with a simple whip antenna. I choose the latter.
For a detailed explanation of how to use the A/D pins to get sensible readings see my postings here.
https://forum.sparkfun.com/viewtopic.php?f=13&t=32719
Hope this helps..
I plan to do a complete write-up once I finish the project. I have noticed that I have some issues with condensation forming on the sensor itself. I'm testing some methods of dealing with this ... Maxbotix sells a water proof sensor but it costs $99 vs the $39 one I'm using. I hope to be able to use the cheaper part.
For those that don't need wireless, you can always hook the Maxbotix Sonar device directly to the WebControl Analog inputs !
Tom