Author Topic: Short range wireless communication  (Read 6359 times)

0 Members and 1 Guest are viewing this topic.

Offline king.osloTopic starter

  • Frequent Contributor
  • **
  • Posts: 432
  • Country: no
Short range wireless communication
« on: June 30, 2014, 04:32:57 pm »
Hello there,

I want to connect some sensors to an MCU, and when the sensor data meet some criteria I want to broadcast to nearby devices (less than 10 meters, through some concrete) that the criteria has been met. Basically two states, the nearby devices only has to know whether the criteria has been met or not, not what the actual data is.

How do I most cheaply do this? I remember as a child that when I short-circuited a 9V battery I would hear a clicking sound in the AM radio (I believe). Could I somehow do this? PWM a transistor to send a high currect through a wire which is picked up by a nearly antenna and amplified to let the nearby devices know that the condition has been met? Would I have all sorts of interferences issues?

Is this cost effective? Are there cheaper and better ways to do this?

Thank you for your time.

Kind regards,
Marius
« Last Edit: June 30, 2014, 04:35:04 pm by king.oslo »
 

Offline katzohki

  • Frequent Contributor
  • **
  • Posts: 378
  • Country: us
    • My Blog
Re: Short range wireless communication
« Reply #1 on: June 30, 2014, 04:37:52 pm »
Just sending PWM isn't going to be reliable, as your receiver will be susceptible to random noise. Better to send something specific so that it can be verified by your receiver. There are modules out there (XBEE?) for exactly this kind of thing. Wireless can be a challenge, but going the modular route can simplify it.
 

Offline tld

  • Regular Contributor
  • *
  • Posts: 86
  • Country: no
    • Personal Website
Re: Short range wireless communication
« Reply #2 on: July 05, 2014, 12:58:07 am »
King.oslo? If you're in Oslo, Norway, you can probably buy Xbees over the counter at Elfa.
tld
 

Offline HackedFridgeMagnet

  • Super Contributor
  • ***
  • Posts: 2028
  • Country: au
Re: Short range wireless communication
« Reply #3 on: July 05, 2014, 01:36:27 am »
Some MCUs have radio output stages built on to them.

Or for a radio ic, being King.Oslo you may want to look at Nordic.
 

Offline Hideki

  • Frequent Contributor
  • **
  • Posts: 256
  • Country: no
Re: Short range wireless communication
« Reply #4 on: July 05, 2014, 01:44:04 am »
King.oslo? If you're in Oslo, Norway, you can probably buy Xbees over the counter at Elfa.
tld

Nope. Elfa shut down their Oslo store quite some time ago.
 

Offline XFDDesign

  • Frequent Contributor
  • **
  • Posts: 442
  • Country: us
Re: Short range wireless communication
« Reply #5 on: July 05, 2014, 04:05:54 am »
For this purpose, I think your most direct and easy route is to look into On-Off-Keying (OOK) modulation.

You can pickup an off-the-shelf oscillator (digital oscillators are cheap and abundant). Something like 24MHz would work. Have the oscillator go into an AND gate. The other pin is your serial data stream. Logic 0? No transmission. Logic 1? output=frequency. You will need to implement a 5th order passive filter at a minimum to round out the harmonics (72MHz, 120MHz...etc). A simple wire of 3m would work for your antenna. It wouldn't be ideal, but it would work.

The hard part is the receive.

Starting with a similar 3m long wire, you would need to connect it to an LC tank filter. From that, you have a few options. The easiest method possible, is getting a log-amp like the AD8307. That gives you an output proportional to input signal power. No input power? No output. Lots of input power? Max output. It's an RF-to-DC converter (not quite, but close enough). If you can't swing that, the next best bet is to implement a mixer- either a gilbert cell or a diode ring mixer. (All of which are googleable). Use another oscillator of the same frequency to get close to the transmitter frequency. (Ideally you would want a PLL).

Low pass the output of whichever device you choose at about 5x the data rate (so if you are transmitting 300 bps, your low-pass filter will have a cut-off at 1500 bps). If you're using the AD8307, you should be able to get away with a simple comparator to recover the bits (you'll need to check your polarity - that a 1 comes out to be a 1). If you're using the other methods, you'll need some simple amplifiers to gain up the receive signal enough to drive a comparator with some hysteresis. Again you would recover your digital bitstream this route.

Cheers!
 

Offline Richard Crowley

  • Super Contributor
  • ***
  • Posts: 4317
  • Country: us
  • KJ7YLK
Re: Short range wireless communication
« Reply #6 on: July 05, 2014, 05:16:20 am »
I think these things are absolutely brilliant: http://lowpowerlab.com/moteino/
And a previous-generation similar product from EU: http://jeelabs.net/projects/cafe/wiki/
I have purchased/used many of each product.
They both use HopeRF modules which are quite sophisticated, but very small and inexpensive.
They are practically designed for applications as you are describing.

 

Online tautech

  • Super Contributor
  • ***
  • Posts: 28334
  • Country: nz
  • Taupaki Technologies Ltd. Siglent Distributor NZ.
    • Taupaki Technologies Ltd.
Re: Short range wireless communication
« Reply #7 on: July 05, 2014, 05:37:24 am »
So something like a logic enabled transmitter and a relay output receiver?
http://www.rfremotech.com/SomeProducts.html
They used to have an Ebay store, haven't looked lately, just deal with them direct.
Avid Rabid Hobbyist
Siglent Youtube channel: https://www.youtube.com/@SiglentVideo/videos
 

Offline Richard Crowley

  • Super Contributor
  • ***
  • Posts: 4317
  • Country: us
  • KJ7YLK
Re: Short range wireless communication
« Reply #8 on: July 06, 2014, 01:31:48 am »
Lasers or LEDs and photodetectors are about as cheap as you can get.
WOW! Do you know where we can get LEDs and photodetectors that will operate through concrete?
 

Offline fluxcapacitor

  • Frequent Contributor
  • **
  • Posts: 345
  • Country: gb
Re: Short range wireless communication
« Reply #9 on: July 06, 2014, 01:49:30 am »
Lasers or LEDs and photodetectors are about as cheap as you can get.
WOW! Do you know where we can get LEDs and photodetectors that will operate through concrete?

You forgot about the laser ,it can be used to cut a hole through the concrete first  :P
 

Offline katzohki

  • Frequent Contributor
  • **
  • Posts: 378
  • Country: us
    • My Blog
Re: Short range wireless communication
« Reply #10 on: July 07, 2014, 04:55:13 pm »
By the way, make sure you set up to be transmitting only in a frequency that is allowed for unlicensed operation. We have "part 15" here in the US.
 

Offline Richard Crowley

  • Super Contributor
  • ***
  • Posts: 4317
  • Country: us
  • KJ7YLK
Re: Short range wireless communication
« Reply #11 on: July 07, 2014, 06:47:20 pm »
"Part 15 Unlicensed Transmission" is rather an old-school scheme for very-low-power transmission in the AM (LW) and FM radio broadcast bands. Typically for AF transmission (speech, music, etc.)
Modern data transmission schemes generally use "ISM" bands which are more international (although not completely uniform around the planet.)
Ref: http://en.wikipedia.org/wiki/ISM_band
 

Offline katzohki

  • Frequent Contributor
  • **
  • Posts: 378
  • Country: us
    • My Blog
Re: Short range wireless communication
« Reply #12 on: July 07, 2014, 07:19:17 pm »
"Part 15 Unlicensed Transmission" is rather an old-school scheme for very-low-power transmission in the AM (LW) and FM radio broadcast bands. Typically for AF transmission (speech, music, etc.)
Modern data transmission schemes generally use "ISM" bands which are more international (although not completely uniform around the planet.)
Ref: http://en.wikipedia.org/wiki/ISM_band

From your linked Wikipedia article:
"Part 15 contains the rules for unlicensed communication devices, even those that share ISM frequencies."

Anyway, he's not in the US, so our rules don't apply.
 

Offline Richard Crowley

  • Super Contributor
  • ***
  • Posts: 4317
  • Country: us
  • KJ7YLK
Re: Short range wireless communication
« Reply #13 on: July 07, 2014, 07:44:09 pm »
From your linked Wikipedia article:
"Part 15 contains the rules for unlicensed communication devices, even those that share ISM frequencies."
Yes, since ISM came along decades after the original Part-15 rules, it was incorporated into US Part 15.
If you talk to anyone who uses RF spectrum, "Part 15" refers to AM and FM radio broadcast bands.
If people mean the ISM bands. we use the term "ISM" because "Part 15" is too broadly-defined (as you have demonstrated).
Note, however, that you won't find any of those wireless data modules that use the old Part 15 radio broadcast band.
They all use some other unlicensed data bands like ISM, etc.

Quote
Anyway, he's not in the US, so our rules don't apply.
Which is another reason to not even bring up Part 15.  ISM is a worldwide standard.
 

Offline kingofkya

  • Regular Contributor
  • *
  • Posts: 143
  • Country: us
Re: Short range wireless communication
« Reply #14 on: July 07, 2014, 08:22:56 pm »
I second the  Nordic suggestion There are quite a few library available for the nrf24l01 chips. And you can get breakout boards with all the "hard" rf stuff done.
Search ebay for nrf24l01. Generaly $.50-2 depending on how manny you want and the seller.
 

Offline Alexei.Polkhanov

  • Frequent Contributor
  • **
  • Posts: 684
  • Country: ca
Re: Short range wireless communication
« Reply #15 on: July 08, 2014, 05:19:39 am »
There are plenty of ICs designed specifically for that kind of applications. For example from ADF7901 (http://www.analog.com/static/imported-files/data_sheets/ADF7901.pdf),  then TH72012, Atmel's ATA8203, Si4320 etc. I think they all work in 315MHz, 390MHz or 433MHz ranges and support FSK as well as simple ASK or OOK modulation. I got whole set from DigiKey a while ago for some project - all were very easy to hookup and control from MCU in OOK mode. Only way I tried anyway.

All datasheets have info on range and also tell how to extend the range when necessary (like suggested specific PA chip). You can use small helical antenna made from wire and soldered to the board - for that there should be suggested antenna matching circuit in datasheet as well.

 
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf