Pages: [1] 2 3   Go Down
Author Topic: new wireless comms module  (Read 3874 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Jr. Member
**
Karma: 2
Posts: 81
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

I have built a new VirtualWire library which can be used to send and receive messages with inexpensive wireless transmitters/receivers/transceivers such as the RxB1, TxC1, DR3100 at 433.92MHz (you can easily get these for under 10$ here in Australia).

Anyone want to test it?

How can I get this library added to the unofficial libraries page?
Logged

0
Offline Offline
God Member
*****
Karma: 0
Posts: 572
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hey,

Soudns good.

Did you get a pair for $10, or $10 each end? Any sources besides Jaycar and Altronics?

Alex

Logged

0
Offline Offline
Jr. Member
**
Karma: 2
Posts: 81
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi Alex,
I got the RxB1 receiver and TxC1 transmitter from Jaycar $9.95 each.
The DR3100 transceiver was from Rockby $9.70 each
Logged

Forum Administrator
Cambridge, MA
Offline Offline
Faraday Member
*****
Karma: 9
Posts: 3538
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

You should post the library on your website or the Arduino playground.  You can create an account for the playground here: http://www.arduino.cc/playground/Main/LoginForm.
« Last Edit: April 17, 2008, 09:06:15 pm by mellis » Logged

0
Offline Offline
Jr. Member
**
Karma: 2
Posts: 81
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks for the tip.

Have added info about VirtualWire to http://www.arduino.cc/playground/Main/InterfacingWithHardware

Feedback invited
Logged

Forum Administrator
Cambridge, MA
Offline Offline
Faraday Member
*****
Karma: 9
Posts: 3538
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Wow, that's a very professional document!  And it looks like quite a useful library.

Have you considered making the API more "Arduino-like"?  That is, wrapping up the functions inside of a class with a pre-instantiated instance (VirtualWire) that people can call methods on?  And giving the methods names that are more consistent with those in the other libraries (e.g. begin(), read(), write(), available())?  That might make it easier to use for Arduino people.
Logged

0
Offline Offline
Jr. Member
**
Karma: 2
Posts: 81
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks.

Yes, I have considered an OO interface.
The next installment is expected to add an OO styled layer to provide reliable (ie with automatic retransmissions), acknowledged message delivery. That should have more arduino-like naming conventions where appropriate.
Logged

0
Offline Offline
Jr. Member
**
Karma: 2
Posts: 81
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Added some photos to the documentation at
http://www.open.com.au/mikem/arduino/VirtualWire.pdf
Logged

0
Offline Offline
Jr. Member
**
Karma: 2
Posts: 81
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I see that Rockby (www.rockby.com.au) have the DR3100s on special for $6 each at the moment.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 31
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Would something like http://www.simplesolutions-uk.com/datasheets/TXE-433-KH2_Transmitter%20data.pdf be suitable to use with the virtualwire library?
Logged

0
Offline Offline
Jr. Member
**
Karma: 2
Posts: 81
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello,
Im not familiar with that device, but it looks like it encodes and transmits 8 bit data. Very nice, but VirtualWire is intended for single-bit input and output transceivers. So I would say no.

It looks like a nice device though, good for parallel data. Could be used with Arduino, though not with the VirtualWire library.

Cheers.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 31
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

@mikem: Thanks for the info.  I'm not brave enough to go it alone yet, so I'm going to try to get some experience via the virtualwire library first smiley  I'm still very much a noob.

Does anyone know anywhere in the UK which sells RxB1 receivers and TxC1 transmitters?
Logged

Seattle
Offline Offline
Newbie
*
Karma: 0
Posts: 46
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Mike, this is a significant new module! I have the RLP434 and TLP434 and have not never able to get reliable/solid communication until now.   I don't know if I had a particular fussy set of modules or it was something else, but I spent many hours on it.  I had tried the Holtek HT-12E/HT-12D route, and various other encodings with only partial success until now.  Your VirtualWire library is not only the simplest solution hardware-wise, it seems to work the best for me.

One small item in the library.  When I run it on a atmega8 based arduino I get a TIMSK1 undeclared.  I believe this notation is only valid on the atmega168.  I changed it to TIMSK in VirtualWire.cpp and it compiled and ran fine. I suspect you just need to wrap in it in a processor compile-time check.

Thanks again! I'll look forward to the OO version!

-Harry
« Last Edit: June 23, 2008, 04:19:29 am by creatrope » Logged

0
Offline Offline
Jr. Member
**
Karma: 2
Posts: 81
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello,

thanks for the feedback.
I have fixed that compile problem for atmega8 and uploaded a new version to
http://www.open.com.au/mikem/arduino/VirtualWire-1.1.zip

Cheers.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 4
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi MikeM

Thanks for posting the VirtualWire libary it looks fantastic. I am having a few problems compiling it, but I am sure this is an IDE problem and not VirtualWire.

Which IDE do you use for the ATMEGA 168 Arduino

I am using Arduino 0012 Alpha IDE, I copied the Virtual Wire Library to

C:\SU\Arduino\arduino-0012\hardware\libraries\VirtualWire

then opened the client.pde

when i try and compile I get the following error:

(see next post for image)  -------->
« Last Edit: November 01, 2008, 04:52:28 am by levanter » Logged

Pages: [1] 2 3   Go Up
Jump to: