Go Down

Topic: New library for HopeRF 433MHz serial transceivers (Read 4841 times) previous topic - next topic


Hi All,

I have just uploaded the first public version of a new library that supports HopeRF HM-TR 433MHz serial transceivers and other similar 'transparent' transceivers.

The HM-TR is nice, inexpensive transceiver with a serial TTL interface. It is easy to connect electrically to Arduino serial ports, but does not have error detection or correction.

The HopeRF library provides classes for addressed and unaddressed, reliable and unreliable datagrams between nodes. 8 bit addresses, broadcasts, acknowledgement and retransmissions are all supported. Use it to build wirelessly connected networks and meshes of Arduino.

The code compiles on Linux and with only a little work could be made to run on Linux, interfacing to an RS232 capable transceiver via a serial port.

Documentation, download instructions etc are at http://www.open.com.au/mikem/arduino/HopeRF/HopeRF.pdf

Please feel free to try it and provide feedback direct to me.


I have just uploaded a new version which adds Linux Makefile which builds a sample server program which runs on Linux and which can talk to an HM-TR over a serial port at /dev/ttyUSB0. There is also a Linux based test suite for the library.

So the HopeRF library now runs on Arduino and Linux.
Details at http://www.open.com.au/mikem/arduino/HopeRF/HopeRF.pdf


Jan 27, 2010, 09:27 am Last Edit: Jan 27, 2010, 09:42 am by stocky6409 Reason: 1
Works well - very reliable comms!

Now i just need to learn how to program the rest of my app :P

Previous efforts (PICAXE) only provided ho-hum comms - now have these running over a short distance reliably AND with a 5W UHF TX antenna running @ less than 20cm from the HOPE Modules - HUGH improvement!!


Some more feedback Mike:

After two days i know have a small network of temperature nodes sending data back to the PC - and to think i didn't know anything about Arduino last week!

Had to do some research on how to put my temp "float" into the send routine but it works now and I'm stoked!

Thanks again for a nice library!


Do you know of a source in the US for these radio's? So far everything in mainly turning up forum links.


Just order them direct from HOPE - thats what i did :-)


sorry for waking up this old thread, but I ran into it and wanted to say that I saw a few days ago that sparkfun is selling them now (on a break out board): http://www.sparkfun.com/commerce/product_info.php?products_id=9821


Hmmm, they look quite different, with an SPI interface. But they do look nice!


I've downloaded and installed the current version, HopeRF 1.2, into Arduino 022 and when I try to compile any of the examples, I get errors such as those below.  I've tried this with the Board set to Diecimilia and Duemilanovae.
 Any ideas?


In file included from /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/WProgram.h:6,
                from HRFReliableDatagramServer.cpp:12:
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../../avr/include/math.h:439: error: expected unqualified-id before 'double'
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../../avr/include/math.h:439: error: expected `)' before 'double'
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../../avr/include/math.h:439: error: expected `)' before 'double'
HRFReliableDatagramServer:11: error: 'Serial1' was not declared in this scope
HRFReliableDatagramServer.cpp: In function 'void setup()':
HRFReliableDatagramServer:16: error: 'Serial1' was not declared in this scope

Go Up