Teensy LC with RFM69HCW Breakout

Status
Not open for further replies.
Hello,

I'am working on an electronic timing project. I already implemented a prototype with a Teensy 2.0 as the controller and XBees as the wireless modules.

Now I want to replace the Teensy 2.0 with a Teensy LC and the XBees with SparkFun RFM69 Breakout (434MHz) modules.
The difference between an XBee and the RFM69HCW module is that the RFM cannot act without a microcontroller. So I would set up the sensors with a Teensy LC and a RFM module in combination.

But this is the problem. I don't get 2 Teensy LC communicating via RFM modules to each other. Neither with the LowPowerLabs nor with the Radiohead library.
I didn't find a working example.

This is my hardware setup:
The Teensy LC is connected to a Host PC via a micro USB cable.
As the 3.3 V pin of the Teensy LC has a power limitation of 100mA, I use a LD33CV (LD1117V33) to make the RFM module (which needs about 130mA) working.

LD33VC TeensyLC pin RFM69HCW pin
====================================================
GND-Pin G G
- 12 O
- 11 I
- 10 S
- 13 C
- 0 0
GND-Pin G R
Output - 3.3V
Input 5V -
(Because of formating issues of this table I attached a picture of it as it should look like.)
20161021_072819.jpg

I also attached 2 pictures of my hardware setup. So you can see what I described above.

20161021_073238.jpg20161021_073327.jpg

Software setup:
I'm not sure what software combination I should use. I didn't get any of the possibilities running, yet.
I tried the RadioHead library with it's examples. I tried the LowPowerLab libraries with it's example. Both without any success. I didn't try the PlainRFM69 yet. This is my next
step.

The RFM module work with interrupts. Maybe the interrupt/interrupt pin is not configured correctly. Does the interrupt on the LC has to be configured manually?

I read lots of information, HowTos and guides:
https://learn.sparkfun.com/tutorials/rfm69hcw-hookup-guide
https://forum.pjrc.com/threads/3528...nctioning-with-Teensy-3-2-and-RFM69-Libraries
https://forum.pjrc.com/threads/3517...ctional-Logic-Level-Converter-with-Teensy-3-2
https://forum.pjrc.com/threads/35626-Help-With-RFM69HCW-Radio
https://learn.adafruit.com/adafruit...-rfm98-lora-packet-padio-breakouts/rfm69-test
http://www.airspayce.com/mikem/arduino/RadioHead/
https://github.com/LowPowerLab/RFM69
https://github.com/sparkfun/RFM69HCW_Breakout/archive/master.zip

I would like to know if my hardware setup is able to work as I expect and which software/configuration do I need for that.

Thank you very much for your help!
Best regards!
 
Last edited:
I have 2 Teensy 3.1 with 2 RFM69W 433MHZ. The main difference to the RFM69HCW is the lower power consumption (45mA) and a different footprint. The Radiohead example works with one small code change.

Wiring
https://i.imgur.com/ZoPYPKW.png

RFM69Teensy 3.1
MOSI11
MISO12
SCK13
CS17
DIO 014
RESETnot connected

Load the example code from File -> Examples -> Radiohead -> rf69 -> rf69_server and rf69_client (My Arduino release is 1.6.12 and Teensyduino 1.31 beta1)

Replace the line RH_RF69 rf69; with RH_RF69 rf69(17,14); in both sketches.

With the high power module, you should probably set a Tx power.
Code:
  // If you are using a high power RF69, you *must* set a Tx power in the
  // range 14 to 20 like this:
   rf69.setTxPower(14);

Upload the client sketch to one Teensy and the server sketch to the other Teensy. Open a serial monitor for each Teensy. I use realterm for this because the Arduino Serial Monitor can only open one com port at the same time.

https://i.imgur.com/KAVw0te.png

The LD1117V33 data sheet recommends input and output capacitors.
 
Last edited:
I've got the "HopeRF RFM95W 915Mhz" - looking forward to getting it hooked up and running. Not tried yet.

As far as multiple Teensys and Serial Monitor - I use TYQT to great effect on whatever Teensy units are connected.
 
I have replaced one Teensy 3.1 with a Teensy LC and it works with the modification from above.

The RadioHead copy included with Teensyduino 1.31 beta1 is version 1.24, the current version on the RadioHead project page is 1.63.
 
Thank you very much for your hits and proposed solutions. I will try out these suggestions tomorrow.
As I can read you prefer the RadioHead library. I don't have any prefences right now but if RadioHead works, we'll see ...
I use Arduino v.1.6.10 and Teensyduino v.1.30.
If I have any results, I'll let you know.
 
This is my result of my recent test:

I adjusted the example sketches (in Arduino: File/Examples/RadioHead/rf69/rf69_client and rf69_server) as follows:
I changed RH_RF69 rf69; to RH_RF69 rf69(10,2);
I set the power of the modules with rf69.setTxPower(14);

I adjusted the hardware according to the software (RFM69 DIO0 to TeensyLC pin 2, RFM69 NSS to TeensyLC 10).
I programmed one teensy with the client sketch and the other with the server sketch.

Result:
It works like a charm!!

This is written in the serial monitor of the client:
'Sending to rf69 server'
'got reply: And hello back to you'

In the serial monitor of the server I can read:
'got request: Hello World!'
'Sent a reply'

It works really wonderful! The 2 Teensy boards are communicating with each other. This is exactly that what I wanted to achieve.
I use the latest RadioHead library: 1.63

According to the datasheet of the LD1117V33 capacitors would be necessary but for my first test the are not this important.

Regarding the Serial monitor: I'll try both: TYQT and RealTerm
Currently I use the Arduino Serial Monitor for one Teensy and on an other computer (with Linux) 'cu'.

Thank you very much for your help! Special thanks to HWGuy!
Best regards!
 
Status
Not open for further replies.
Back
Top