Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 7 of 7

Thread: Teensy 3.6 & RFM69HCW

  1. #1
    Junior Member
    Join Date
    Apr 2015
    Posts
    12

    Teensy 3.6 & RFM69HCW

    Hello

    I managed a working connection between two "Whisper Node - AVR" (with RFM69HCW 868Mhz) easily with the help of the take2 library examples.
    But i want to have a teensy 3.6 on the server side and a whisper node on the client side (a sending low power measuring node with deep sleep cycles).
    I'm struggling completely getting that working. I'm hopelessly lost.
    Has anybody managed something like that working? Im not that code guru and the topics concerning the RFM69HCW in other threads are quite confusing to me and hard to understand.
    Maybe PRJC can post reference project? They have so wonderful examples for everything else except that.

    Thanks for any help in advance.
    Regards.

  2. #2
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    5,424
    Hard for anyone to help you without any additional information. Like: What library is take2? Do you have a link for it?

    What example programs? Maybe include unless again they come directly from the take2 library without any modifications.

    Also how is the T3.6 hooked up? Pictures and/or diagrams help.

    As for Teensy and RFM69 like boards, I have seen a few libraries used with Teensy.

    Ones like Radiohead, which supports RFM69 and there is a version installed by Teensyduino.

    There is the RFM69 library, that I have played with some in past: https://github.com/LowPowerLab/RFM69
    Likewise: https://github.com/iwanders/plainRFM69

    But I don't remember how well (if at all) they worked with Teensy... Mostly I have played with Radiohead

  3. #3
    Junior Member
    Join Date
    Apr 2015
    Posts
    12

    Red face

    I see your point, but i wanted to check first if somebody has a solution already.
    Here are the infos.

    I used the Talk2 Library and the Radiohead library to connect two Whisper Node-AVR:
    https://bitbucket.org/talk2/talk2-library/src/master/
    I used the example sketches "Voltage.base" and "Voltage.node" to manage a connection. That was easy.
    I have those extended meanwhile by adding a sensor Bosch BME280 (see sketches "Whisper_Wetter_Empfaenger_02" and "Whisper_Wetter_Sender_02" in the download).
    In addition to the voltage values, the temperature and humidity values are transmitted too.

    After that worked well, i connected a hope RFM69HW to a Teensy 3.6 and wanted to replace the Whisper Node for the base.

    RFM69HW GND*2, NC >> all to GND
    RFM69HW 3v3 >> Teensy 3.3V Out
    RFM69HW MISO >> Teensy pin 12 (same pin within Whisper Node AVR)
    RFM69HW MOSI >> Teensy pin 11 (same pin within Whisper Node AVR)
    RFM69HW SCK >> Teensy pin 13 (same pin within Whisper Node AVR)
    RFM69HW NSS >> Teensy pin 10 (same pin within Whisper Node AVR)
    RFM69HW ANT >> Antenna (wire length about 85mm for 868MHz)

    According to the Whisper Node AVR schematic, the pins are identical:
    https://bitbucket.org/talk2/whisper-...de-AVR_0.3.pdf

    I tried to get the "Voltage.base" sketch run on the Teensy.
    No success at all. I had no idea where to start for reseach.

    I forgot about it and i switched completely to the Radiohead library examples.
    I loaded the "rf69_client" on the Whisper Node AVR.
    I loaded the "rf69_server" on the Tennsy 3.6.

    I changed the frequency on both sides to 868Mhz.
    rf69.setFrequency(868.0);

    On the Whisper Node side:
    I get the repeating serial monitoring messages for the Whisper Node AVR:

    12:22:19.788 -> Sending to rf69_server
    12:22:20.276 -> No reply, is rf69_server running?

    It seems to be running so far, but had no idea how to prove that.

    On the Teensy side:
    I guess the Teensy inizializes the RF96, because i didn't get the "init failed" error:

    if (!rf69.init())
    Serial.println("init failed");

    I tried different settings:

    RH_RF69 rf69;
    or
    RH_RF69 rf69(15, 16);
    //RH_RF69 rf69(15, 16); // For RF69 on PJRC breakout board with Teensy 3.1
    //RH_RF69 rf69(4, 2); // For MoteinoMEGA https://lowpowerlab.com/shop/moteinomega
    //RH_RF69 rf69(8, 7); // Adafruit Feather 32u4

    The sketches:
    https://gofile.io/?c=xd0iwO

    I hope i could provide helpful information.

    Regards
    Last edited by ralphberner; 06-17-2019 at 11:16 AM.

  4. #4
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    5,424
    FYI - My virus detectors... Won't allow me to go to gofile.io... So did not look at your full sketches. You can include a zip file on the forum, by clicking the <go Advanced> button at bottom and then use manage attachments...

    What I am not seeing in your description of wiring, is what is G0(IRQ) pin connected to from RFM...
    If you look for example at Adafruit wring stuff: https://learn.adafruit.com/adafruit-...arduino-wiring

    This would make the difference on which constructor you used. For example if you wired it to pin 2, you should use: RH_RFM69(10, 2);
    10 is the Slave select
    2 is the IRQ pin (defaults to 2 in constructor)

  5. #5
    Junior Member
    Join Date
    Apr 2015
    Posts
    12
    Oh i missed that IRQ PIN. I was not aware about that one somehow.

    The full connection now is:

    RFM69HW GND*2, NC >> all to GND
    RFM69HW 3v3 >> Teensy 3.3V Out
    RFM69HW MISO >> Teensy pin 12 (same pin within Whisper Node AVR)
    RFM69HW MOSI >> Teensy pin 11 (same pin within Whisper Node AVR)
    RFM69HW SCK >> Teensy pin 13 (same pin within Whisper Node AVR)
    RFM69HW NSS >> Teensy pin 10 (same pin within Whisper Node AVR)
    RFM69HW DI00 >> Teensy pin 02 (same pin within Whisper Node AVR)
    RFM69HW ANT >> Antenna (wire length about 85mm for 868MHz)

    I tried the "rf69_client" and the the "rf69_server" again.
    I used the RH_RFM69(10, 2); command instead of just RH_RFM69;.
    Now it receives the "Hello World" text from the Whisper Node and the
    Whisper Node receives the "And hello back to you" text.
    Thats a great success.
    Thanks a lot so far.
    I suggest i try a little more by myself now.
    I will return in case i'm stuck again or to post the solutions for the benefit of others.

  6. #6
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    5,424
    Glad you have it working... And feel free to ask questions as they come up.

    That is why we often ask for information like wiring diagrams and/or photos. Often it is something we easily overlook... Things like no ground wires or...

  7. #7
    Junior Member
    Join Date
    Apr 2015
    Posts
    12
    The Whisper Node Code works without changes on the Teensy 6.6 too.
    The Values from Whisper Node are beeing received too.

    =============================
    Bat: 2427 mV
    Pow: 5118 mV
    Tmp: 2696 C
    Hum: 3983 %rH
    =============================
    Bat: 2427 mV
    Pow: 5110 mV
    Tmp: 2694 C
    Hum: 3978 %rH
    =============================

    Here are the sketches if anybody is interested in those.
    But sorry for the mix with german in the code descriptions.

    ArduinoWorkspace.zip

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •