Showing posts with label wireless RF. Show all posts
Showing posts with label wireless RF. Show all posts

Saturday, October 10, 2009

XBee XSC Range Test Success!

Finally ... properly prepared and ready for another go at testing today.

Managed to get Sleep Mode enabled on the remote transmitter after using great instructions from a Digi Knowledge Base Article - a Cyclic Sleep Mode Example that was intended for the XStream/XTend models, but it appears that Sleep Mode parameters are the same for both firmwares. Hoping this will extend the remote's 9V battery life.

After taking the dogs out for a walk on Nose Hill and braving the chilly winds to get to the top, I connected the battery to the Xbee, closed the lid, and placed the box at the base (about 1 foot from ground height) of a bush.
Covered it with a prickly thorn bush - but if you look close you can still see the small white wire antenna extending about 2" upward. Although low to the ground, the box is still very much elevated above the transmitter, with no real obstructions below.

From the vantage point above the bush you could see the 64th Ave intersection and a piece of the parking lot where I intended to do my testing later that day. There's plenty of trees in the line of sight and the receiver location at the base of the bush is not ideal, but I needed to keep fairly hidden from local hikers.

Interior of truck shows sophisticated setup?

Frigging cold to be out playing with radios


Transmitter Antennna (5" in center - not light standard at left) extended out from truck roof to sit on slightly open sunroof.

View from the Parking Lot - receiver located in bush below the left most tree in isolated stand of three in center of view at top of hill.

Google Earth View of the receiver and transmitter locations - click on image to get a better view - or if you want to look at receiver location for yourself, coordinates are: N 51 degs 06.610 minutes and W 114 degs 05.736 minutes. Using the Google Earth ruler tool, the distance came out to be 820m. Not sure if that's horizontal or line-of-sight?



After starting up the X-CTU range test, I had to wait the obligatory 16 retries before the Sleep Mode Cycle picked up on the fact it was being sent some data. I considered it a great success when it returned 196 packets as Good and 41 Bad - 80% success!



Other results:



TEST #2: Front of Parking lot - facing sign. Trees slightly visible in distance. 60% success









TEST #3: Front of Parking Lot - Facing hill directly in front of truck. 10% success.




TEST #4: Alley across street. 1.0km distance. Good view uphill. 90% success.







TEST #5: Alley - further down road. No visibility. 10% success.








Friday, October 2, 2009

Xbee XSC Range Testing

After yesterday's troubles and embarrassing tribulations, today promises a new start filled with optimism once again. The XBee-Pro XSC 900 Wire Antenna radio mounted on the RS-232 Development Board from Digi has been solidly set into the box along with its 9V battery power supply. The antenna extends vertically through a small gap in the box and will be visible when the lid is closed.

The specs on this radio indicate a promising extended range coverage.
  • Outdoor RF line-of-sight range up to 15 miles (24 km) with high gain antenna
  • Outdoor RF line-of-sight range up to 6 miles (9.6 km) with dipole antenna

After yesterday's escapades in failed testing I'm very hopeful at the start of today. Software bugs have been worked out, user errors eliminated and moveable parts solidly mounted. There's been a lot of doubt in the user community regarding these long range values in the specs, so it's time to do some real world testing. I plan on placing the remote transmitter on
Nose Hill in Calgary in a bushy area and test the reception from various distances and vantage points around the park. Working with a GPS I'll be able to accurately mark the distances between transmitter and receiver while doing the range test.

Placing the receiver is also going to require a bit of thinking. Looking at all the geocaches on Nose Hill, you can see that it will take a bit of planning to place the modem where there won't be any treasure hunters around.
I want to place it in a location that is not anywhere near a geocache, hidden from plain sight of main trails, in a treed or bushy area and within range of a multiple spots from the park's perimeter.

Update ... As they say ... the best laid plans...


I finally climbed to the top of Nose Hill with the dogs one more time with my new more secure remote XBee box and placed it in a small bush halfway down a dip in the landscape - probably 800m from the 64th Ave. parking lot.


Returning in the afternoon to test, I again had absolutely no luck getting any kind of signal from any location I tried. So once again I trudged back to the top of the hill to retrieve the device and see if it was still running. Opening the box, the lights appeared to be off again! Disconnecting and reconnecting the battery cord brought the lights briefly back to life again but they quickly returned to their off status.

Further investigation at home revealed that the Xbee XSC Hi-Power (100mW) RF Module had sucked the life out of the supplied 9V 'Industrial' battery supplied in the Development Kit. It was completely dead after a short couple days of abbreviated testing. Next stop is investigating the Sleep mode - seeing if I can somehow manage to program it to stay in low power mode and awaken upon receiving a signal...

Thursday, October 1, 2009

Priming for Microhydro

It's been more than a year since my first (and last) post. We're coming up to the final stages of approval or our micro hydro application. As far as we can tell the biggest hurdles are overcome - First Nations approval, Environmental Assessment done, Fisheries and Oceans okayed, and approval from the downstream license already on the creek we want to use.

There should be enough power to handle 4 household comfortably for 8 months of the year while the creek flows high during the non-summer months.

The environmental report leads directly to my next personal project. Even though we had planned on only running it 8 months of the year, the environmental report recommended leaving a minimum flow in the the creek.

Perfect opportunity to learn more about wireless RF transceivers and micro controller boards.

My plan is to develop a micro controller application that will remotely sense the water flow and automatically shut-off or redirect the intake for our micro hydro pipes.

To start with I ordered the XBEE XSC 900 MHz Development Kit which comes complete with two evaluation boards - one that plugs directly into the computer, and the other has a 'null modem' attachment so it's easily configured with the included X-CTU software to do a 'range test' of the two Xbee Modems.

According to published specs, these little modems (about 1" square) can transmit outdoors line-of-sight for more than a mile. The real question is can they do it in the real world - or at least in an outdoor environment filled with trees and bushy sloped areas?

Day 1: Called support line because I couldn't get the modem to be recognized by the software. Newbie error - receiver was not seated completely into board.

Day 2: Learning something new at this age is proving difficult.
Decided to test it on Nose Hill in Calgary,
a huge undeveloped area with many trees and open areas. Hooked it up to supplied 9V industrial alkaline battery, placed it in a wooden box, and again inside a plastic bag, only allowing the small (2") wire antenna to protrude. Took dogs for walk and placed it in a secluded very bushy area far from the parking lot. According to Google Earth it was around 1km away. This would be a real world test.

Proved to be more of a test in patience.

I returned that afternoon with my truck, laptop and the other modem, only to arrive at the first location to find out that the Modem Driver had disappeared. Apparently once I disconnected from my home network, it lost the COM5 port it was using at home. My attempt to reinstall the driver was met with a request for the original CD. back home I went.

After installing it again with the network detached I now had a COM6 to work with remotely.

However upon returning to the parking spot I did not detect any signal at all. Undeterred I proceeded to the next parking lot on the hill - this one about .8km away but perhaps on a better open area. Still no luck in getting even faint signal. One more try at the high Nose Hill Lookout lot resulted in the same failure to receive anything.

Finally I left the lot to walk up to the spot and bring back my remote modem closer to the truck - a spot only 300m away. Walking back to the truck to test again and it still showed no signal. When I brought it back to the truck, it was obvious it was a modem or battery problem as there was nothing showing up even when the box was next to the receiver.

Returning home for closer inspection revealed the power connection had been jarred loose - probably from the dog walk and my haphazard mounting inside the box.

Decided that I could do one more quick test around the neighborhood. Leaning the remote receiver up against the upper office window, I left with my laptop in the truck to see what kind of neighborhood reception there was. Garage out front was great - but lost all contact around the block, only getting sporadic signals as I returned around the circle on the way back to the house. GPS indicated it had to be 200m or less. That was disappointing to say least...

But once again I returned only to find that my mounting method had failed miserably as sometime during my 4 minute ride around the block the modem had fallen from its perch on the window sill to lay comfortably on the floor under the couch.

Well ... that did it...

Inspired by reading Make Magazine articles for the last month, I rebuilt the container using leftover parts (hard drive mounting bracket, broken cassette case, screws and electrical tape) - into a secure, easy to modify, test container...

Here's where it's at ... testing starts once again tomorrow...

The case is reused from a small smoked salmon container. Great native drawings on outside sliding top. Here I have the collected parts ready to go...




Using small screws to mounted both the board and the hard drive bracket for the battery, securely for the first time.




Final test ... Power Connected ... Lights On .. ready to go..




Slight modification to sliding lid, sawing a small gap to allow antenna to protrude and cassette case piece to lock lid.




Closed and ready to go.