RF Reciever & transmitter [433Mhz, 315Mhz] Library.

wireless communication and related Bees.

Moderators: lily.li, violet, jessie

Miles
Kindergarten
Kindergarten
Posts: 91
Joined: Thu Apr 23, 2009 7:41 pm
Location: UK London
Contact:

RF Reciever & transmitter [433Mhz, 315Mhz] Library.

Post by Miles » Sun Jun 14, 2009 5:15 am

Hey Guys,

First up, this isn't my library. It was developed by Mike McCauley, I believe he is still partially active with development.

The original "VirtualWire" library has a few compatibility issues with the latest version of the Arduino IDE. After some hunting I found the fix and thought it would be wise to share my findings.

[VirtualWire 1.3] http://download.milesburton.com/Arduino ... alWire.rar

[Documentation for 1.3] http://download.milesburton.com/Arduino ... alWire.pdf

This library works great with the Seeedstudio RF kits
[315 Mhz] http://www.seeedstudio.com/depot/315mhz ... cc711ee267
[433 Mhz] http://www.seeedstudio.com/depot/433mhz ... cc711ee267

Like most other libraries, drop VirtualWire (Above) into the hardware\libraries directory and fire up the example sketches per the documentation.

I can vouge for the 433Mhz version as it is now sitting on my desk chatting away. The document above explains what you need to do to get up and running. Unlike stock libraries, VirtualWire provides some basic error handling and syncronising. It produces a simple "packet" (which supposidly follows the 'VirtualWire' standard) that produces a pretty clean wireless communicate between two devices.

Great stuff, let me know how you get on ;)
-Miles
Many Thanks,
Miles
---------------
Software Engineering meets Physical Computing. Fantastic, I wish we had this good 20 years ago.

User avatar
esp
Elementary-3
Elementary-3
Posts: 361
Joined: Fri Aug 22, 2008 5:45 pm

Re: RF Reciever & transmitter [433Mhz, 315Mhz] Library.

Post by esp » Fri Jun 19, 2009 9:06 am

Amazing!! Can't wait to add it into the product page. Thanks! :idea:

User avatar
seeedstudio-fan128
Staff
Staff
Posts: 46
Joined: Thu Feb 19, 2009 11:58 pm
Location: China
Contact:

Re: RF Reciever & transmitter [433Mhz, 315Mhz] Library.

Post by seeedstudio-fan128 » Sun Jun 21, 2009 7:39 pm

Thanks to Miles. I've added the library to the product page.

PinMode
Pre-kindergarten
Pre-kindergarten
Posts: 9
Joined: Fri May 15, 2009 3:52 am

Re: RF Reciever & transmitter [433Mhz, 315Mhz] Library.

Post by PinMode » Thu Jun 25, 2009 3:01 am

Hello Seeed Crew and Miles,

What is the main difference between this set and the Sparkfun modules (except the price the price ;))? I see a crystal and a small IS on the Sparkfun modules.

http://www.sparkfun.com/commerce/produc ... ts_id=8950
http://www.sparkfun.com/commerce/produc ... ts_id=8946

What is the range and baud rate (bps) of these modules?

How is your experience with "noise" and "interference" from other wireless products operating at 434 MHz (car alarm/doors ect...)? This because I'll probably will have some of these in the surrounding area (cars in the street).

Just remembered the other discussion about these modules:

http://www.seeedstudio.com/forum/viewto ... ?f=4&t=198

Where are you using the modules for?

Thanks in advance.

Miles
Kindergarten
Kindergarten
Posts: 91
Joined: Thu Apr 23, 2009 7:41 pm
Location: UK London
Contact:

Re: RF Reciever & transmitter [433Mhz, 315Mhz] Library.

Post by Miles » Fri Jun 26, 2009 3:42 am

Hey Pinmode,

I honestly can't say with regards to th difference between Sparkfun and Seeed modules. I'll leave that up to the other guys to answer that.


At the moment I'm just testing a new library I'm writing. They seem resonably accurate if you solder an ariel to them. You can be pretty flexible with regards to the baud... I usually use around 2k-4k....
Many Thanks,
Miles
---------------
Software Engineering meets Physical Computing. Fantastic, I wish we had this good 20 years ago.

PinMode
Pre-kindergarten
Pre-kindergarten
Posts: 9
Joined: Fri May 15, 2009 3:52 am

Re: RF Reciever & transmitter [433Mhz, 315Mhz] Library.

Post by PinMode » Sat Jun 27, 2009 2:19 am

Well I'll just have to wait what the Seeed guys sat :).

Can you give a estimation on the range?

How is your experience with "noise" and "interference" from other wireless products operating at 434 MHz (car alarm/doors ect...)? This because I'll probably will have some of these in the surrounding area (cars in the street).

Why are you using another library? Is the virtualWire library no good enough?

Best regards.

Miles
Kindergarten
Kindergarten
Posts: 91
Joined: Thu Apr 23, 2009 7:41 pm
Location: UK London
Contact:

Re: RF Reciever & transmitter [433Mhz, 315Mhz] Library.

Post by Miles » Sun Jun 28, 2009 9:47 am

PinMode wrote:Well I'll just have to wait what the Seeed guys sat :).

Can you give a estimation on the range?

Without an Ariel it's pretty poor.. We're talking Centimeters. I'm not entirely sure with an Ariel as I'm still testing. It's not a great deal though. I doubt you could use it for long-range use.

How is your experience with "noise" and "interference" from other wireless products operating at 434 MHz (car alarm/doors ect...)? This because I'll probably will have some of these in the surrounding area (cars in the street).

Can't say I've had any problems so far. No way to test this.

Why are you using another library? Is the virtualWire library no good enough?

I'm writing a library which is build UPON VirtualWire. I want a two way library which can gaurentee stateful messages to be sent back and forth. It trades speed for HIGH reliability. My first beta is working great though the speed isn't fantastic.

Best regards.
Many Thanks,
Miles
---------------
Software Engineering meets Physical Computing. Fantastic, I wish we had this good 20 years ago.

CaptainObvious
Pre-kindergarten
Pre-kindergarten
Posts: 9
Joined: Mon Jul 13, 2009 2:56 pm

Re: RF Reciever & transmitter [433Mhz, 315Mhz] Library.

Post by CaptainObvious » Mon Jul 13, 2009 3:02 pm

Hey guys! Just wanted to say I'm fairly new to the Arduino, I've gotten it up.. blinking, wrote a library and that's about it so far! So my experience is limited, but I'm having an issue with the 433Mhz pair. I hooked it up how the PDF showed, and used the VirutalWire examples, with no luck! The Arduino with the transmitter, LED blinks when it's sending, like it's suppose to. But the receiver just doesn't get anything. I've tried them very close together.. and spread them apart, without any luck, I'm sure it's user error..
I'm kind of wondering if it's the pins.. at first I figured it was the Tx and Rx pins (for transmitter, and receiver respectively), but nothing there.. so I read through the VirtualWire pdf, and it said something about the default pins were 11 and 12.. so I gave those a try, without any luck.

Any information would be appreciated :) Like I said, I'm sure it's just user error, or I'm missing something..
Cheers! :D

Miles
Kindergarten
Kindergarten
Posts: 91
Joined: Thu Apr 23, 2009 7:41 pm
Location: UK London
Contact:

Re: RF Reciever & transmitter [433Mhz, 315Mhz] Library.

Post by Miles » Tue Jul 14, 2009 3:06 am

Try without the transmitters and receiverfs first mate.. Directly connect your two arduinos RX to TX and TX to RX.

You are quite right about the default ports :)

Please let me know how you get on
Many Thanks,
Miles
---------------
Software Engineering meets Physical Computing. Fantastic, I wish we had this good 20 years ago.

CaptainObvious
Pre-kindergarten
Pre-kindergarten
Posts: 9
Joined: Mon Jul 13, 2009 2:56 pm

Re: RF Reciever & transmitter [433Mhz, 315Mhz] Library.

Post by CaptainObvious » Tue Jul 14, 2009 5:27 am

Sorry if the questions.. seem a bit obvious, but, do I try connect the two arduinos together with the same code and try? Haven't had much experience with TX/RX pins, all I know so far is not to use them, and if I need to, don't connect the pins until after code is uploaded, but that's about it! :oops: Just a little worried about hooking it up incorrectly and damaging something! :D
Thanks for the quick response! :D (And thanks for taking sometime to try help the newb understand!:))

Post Reply