Go Down

Topic: new wireless comms module (Read 5579 times) previous topic - next topic

mikem

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?

trialex

Hey,

Soudns good.

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

Alex


mikem

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

mellis

#3
Apr 18, 2008, 04:05 am Last Edit: Apr 18, 2008, 04:06 am by mellis Reason: 1
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.

mikem

Thanks for the tip.

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

Feedback invited

mellis

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.

mikem

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.

mikem

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

mikem

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

lwhi

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

mikem

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.

lwhi

@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 :)  I'm still very much a noob.

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

creatrope

#12
Jun 23, 2008, 11:18 am Last Edit: Jun 23, 2008, 11:19 am by creatrope Reason: 1
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

mikem

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.

levanter

#14
Nov 01, 2008, 10:50 am Last Edit: Nov 01, 2008, 10:52 am by levanter Reason: 1
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)  -------->

Go Up