Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Troubleshooting
  3. [SOLVED] ADAFRUIT rfm69hcw breakout - doesnt respond

[SOLVED] ADAFRUIT rfm69hcw breakout - doesnt respond

Scheduled Pinned Locked Moved Troubleshooting
27 Posts 8 Posters 12.8k Views 5 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T tboha

    @abrasha
    PS: Just found schematics of adafruit breakout board. There is already a capacitor (10µF) across Vin - maybe your additional capacitor has some unwanted side effects?
    MySensors building instructions advise a capacitor for 3.3V with range problems - not for 5V.

    Adafruits wiring instructions (very nice and instructive picture) don't mention a capacitor either.

    Maybe stripping this capacitor will reduce trouble?

    A Offline
    A Offline
    abrasha
    wrote on last edited by
    #17

    @tboha
    The picture you referred to shows the rfm69HW from my sensors page and the adafruit is rfm69Hcw that's why they're don't identical.

    And I've tried also without capacitor.
    Tomorrow I'll check the EN. Maybe I'll wire it and write it high or whatever needed.
    Thanks a lot

    A 1 Reply Last reply
    1
    • A abrasha

      @tboha
      The picture you referred to shows the rfm69HW from my sensors page and the adafruit is rfm69Hcw that's why they're don't identical.

      And I've tried also without capacitor.
      Tomorrow I'll check the EN. Maybe I'll wire it and write it high or whatever needed.
      Thanks a lot

      A Offline
      A Offline
      abrasha
      wrote on last edited by abrasha
      #18

      @tboha
      stripped the CAP
      tried this with EN pin: (connected to D7)

      void setup()
      {
        pinMode(7, OUTPUT);
        digitalWrite(7, LOW);
        delay(500);
        digitalWrite(7, HIGH);
      	// Setup locally attached sensors
      }
      

      nothing..
      and ther is a steady 4.4v on EN (checking from EN to GND

      what does the steady 13 led light means?

      T 1 Reply Last reply
      0
      • A abrasha

        @tboha
        stripped the CAP
        tried this with EN pin: (connected to D7)

        void setup()
        {
          pinMode(7, OUTPUT);
          digitalWrite(7, LOW);
          delay(500);
          digitalWrite(7, HIGH);
        	// Setup locally attached sensors
        }
        

        nothing..
        and ther is a steady 4.4v on EN (checking from EN to GND

        what does the steady 13 led light means?

        T Offline
        T Offline
        tboha
        wrote on last edited by
        #19

        @abrasha
        I tested Vin behavior under load on my "original" UNO which displays 4.5V at Vin when powered through USB.
        No Load = 4.5V, load 10mA results in 4.2V, load 150mA (which is required by RFM69HCW-breakout board so far I remember) results in 3.8V. Maybe transient load response is much worse than this, but my Multimeter does only 2 measurements per second.
        I think it is safe to stay away from Vin on your Arduino (which you apparently are doing already).

        According to schematics, "EN" is tied to Vin via 100k. Supplying Vin with 4.99V and measuring 4.4V on Pin "EN" could indicate your multimeter having a relatively low input impedance (about 1M ?). But either way - EN shuts off only below 0.4V, and 4V seem to be a reasonable margin (transients excluded). So this is not the reason for strange behavior.

        D13 may be a good point. D13 is tied to Pin 13 (SCK) and via 1k and a (blue?) LED to GND. In my setup (NRF24L01+) there is only a dim flashing when data transmissions occur. So "bright" light on D13 could indicate a permanent data transmission (which your measurements on MISO/MOSI don't support) or there is a noticeable DC component -- which shouldn't be there. Measuring DC on Pin 13 may give a hint.
        It is not likely that Pin 13 is our "lost" GND - in theory impedance (especially with a blue LED) is way to high.

        To save some time - you got a spare Arduino? Consider building a second sensor (you wrote you got some more Adafruit breakout boards). Take the Adafruit wiring instructions mentioned above and do a close copy of that setup.

        Another option would be to exchange the RFM69 module from your GW with the Adafruit breakout boards. If this would be functional - the board(s) are ok.

        If you could afford, keep your current setup for further examinations. Although your basic question is quite interesting and unique (my setup works - but it shouldn't) don't get distracted from your way which is probably doing some measurements of your home environment and not of some hardware ( though it is still interesting anyway).

        A 2 Replies Last reply
        0
        • T tboha

          @abrasha
          I tested Vin behavior under load on my "original" UNO which displays 4.5V at Vin when powered through USB.
          No Load = 4.5V, load 10mA results in 4.2V, load 150mA (which is required by RFM69HCW-breakout board so far I remember) results in 3.8V. Maybe transient load response is much worse than this, but my Multimeter does only 2 measurements per second.
          I think it is safe to stay away from Vin on your Arduino (which you apparently are doing already).

          According to schematics, "EN" is tied to Vin via 100k. Supplying Vin with 4.99V and measuring 4.4V on Pin "EN" could indicate your multimeter having a relatively low input impedance (about 1M ?). But either way - EN shuts off only below 0.4V, and 4V seem to be a reasonable margin (transients excluded). So this is not the reason for strange behavior.

          D13 may be a good point. D13 is tied to Pin 13 (SCK) and via 1k and a (blue?) LED to GND. In my setup (NRF24L01+) there is only a dim flashing when data transmissions occur. So "bright" light on D13 could indicate a permanent data transmission (which your measurements on MISO/MOSI don't support) or there is a noticeable DC component -- which shouldn't be there. Measuring DC on Pin 13 may give a hint.
          It is not likely that Pin 13 is our "lost" GND - in theory impedance (especially with a blue LED) is way to high.

          To save some time - you got a spare Arduino? Consider building a second sensor (you wrote you got some more Adafruit breakout boards). Take the Adafruit wiring instructions mentioned above and do a close copy of that setup.

          Another option would be to exchange the RFM69 module from your GW with the Adafruit breakout boards. If this would be functional - the board(s) are ok.

          If you could afford, keep your current setup for further examinations. Although your basic question is quite interesting and unique (my setup works - but it shouldn't) don't get distracted from your way which is probably doing some measurements of your home environment and not of some hardware ( though it is still interesting anyway).

          A Offline
          A Offline
          abrasha
          wrote on last edited by abrasha
          #20

          @tboha
          checked now.
          D13 shows 0v (measuring on the uno itself) and after some seconds, when it lits up forever it shows 0.3v and the serial output prints these two new lines:

          0;255;3;0;9;TSM:FAIL:RE-INIT
          0;255;3;0;9;TSM:INIT

          also , about the VIN discussion, why does mysensors advice to connect 5v to 3,3v regulator to VIN? on the connect the radio page

          about more boards - i only have these 5 adafruit breakouts. all other nodes and GW are working on nrf24. so nothing to compare. and all 5 do the same error

          T 1 Reply Last reply
          0
          • T tboha

            @abrasha
            I tested Vin behavior under load on my "original" UNO which displays 4.5V at Vin when powered through USB.
            No Load = 4.5V, load 10mA results in 4.2V, load 150mA (which is required by RFM69HCW-breakout board so far I remember) results in 3.8V. Maybe transient load response is much worse than this, but my Multimeter does only 2 measurements per second.
            I think it is safe to stay away from Vin on your Arduino (which you apparently are doing already).

            According to schematics, "EN" is tied to Vin via 100k. Supplying Vin with 4.99V and measuring 4.4V on Pin "EN" could indicate your multimeter having a relatively low input impedance (about 1M ?). But either way - EN shuts off only below 0.4V, and 4V seem to be a reasonable margin (transients excluded). So this is not the reason for strange behavior.

            D13 may be a good point. D13 is tied to Pin 13 (SCK) and via 1k and a (blue?) LED to GND. In my setup (NRF24L01+) there is only a dim flashing when data transmissions occur. So "bright" light on D13 could indicate a permanent data transmission (which your measurements on MISO/MOSI don't support) or there is a noticeable DC component -- which shouldn't be there. Measuring DC on Pin 13 may give a hint.
            It is not likely that Pin 13 is our "lost" GND - in theory impedance (especially with a blue LED) is way to high.

            To save some time - you got a spare Arduino? Consider building a second sensor (you wrote you got some more Adafruit breakout boards). Take the Adafruit wiring instructions mentioned above and do a close copy of that setup.

            Another option would be to exchange the RFM69 module from your GW with the Adafruit breakout boards. If this would be functional - the board(s) are ok.

            If you could afford, keep your current setup for further examinations. Although your basic question is quite interesting and unique (my setup works - but it shouldn't) don't get distracted from your way which is probably doing some measurements of your home environment and not of some hardware ( though it is still interesting anyway).

            A Offline
            A Offline
            abrasha
            wrote on last edited by
            #21

            @tboha
            Maybe library issue.?
            I checked the same sketch with nrf24 and it was fine

            1 Reply Last reply
            0
            • A abrasha

              @tboha
              checked now.
              D13 shows 0v (measuring on the uno itself) and after some seconds, when it lits up forever it shows 0.3v and the serial output prints these two new lines:

              0;255;3;0;9;TSM:FAIL:RE-INIT
              0;255;3;0;9;TSM:INIT

              also , about the VIN discussion, why does mysensors advice to connect 5v to 3,3v regulator to VIN? on the connect the radio page

              about more boards - i only have these 5 adafruit breakouts. all other nodes and GW are working on nrf24. so nothing to compare. and all 5 do the same error

              T Offline
              T Offline
              tboha
              wrote on last edited by
              #22

              @abrasha
              Sorry about the delay - I ran out of ideas, and your new measurements are confusing to me.
              About Vin:
              Could it be possible we talk at cross-purposes?
              From the MySensors wiring advice I conclude to connect Arduino-5V to Adafruit-Vin (just the way NRF24L01 with power adapter board).

              From your picture (which I misinterpreted firstly due to bad sight) you said

              Well, no, the Vin on the adafruit (brown wire) is connected to the vin pin on the uno. I've tried also connecting it to the 5v pin with no success. Also tried switching gnd sockets on the uno.
              Im close to sign this issue with recall to adafruit - i ordered 4 boards and they're all with the same behavior. Or maybe i shorted out the ground when i soldered the antenna?

              Connecting Arduino-Vin to Adafruit-Vin would not exactly be according to the rules - but it might work - more likely it would result in unforced errors due to insufficient stabilisation of 5V.
              From your measurement 4.99V on Adafruit-Vin I conclude you switched to a 5V Arduino socket - have you?

              D13 at 0.2V (or 0.3V) shouldn't light up the LED at all unless its really continuous SCK with predominantly low phases.

              To solve this you would need an oscilloscope - and this would be inappropriate in my opinion.

              No, I don't think it is a library malfunction. I experienced MySensors library as stable and library malfunctions are mostly detected by community at once. For special cases there maybe a lack of functionality but I don't think your setup is very special (besides the breakout-board). And 5 defective boards in a row - not very likely (and Adafruit has a good reputation for engeneering as well as for production).

              I am not familiar with RFM69 (altough I was thinking of adding some RFM69 to my setup, but level converters scared me, so I was interested in your type of setup). So far I read about RFM69 you did the approriate #defines. Maybe someone who is working often with RFM69 could check the above sketch?

              None of the above explains why your sketch works without GND connection. It's still a miracle.

              And as I said before - I ran out of practicable ideas. Next I would try to get a functional two Arduino system according to Adafruit instructions (as well hardware as software). Ok - it's a little like giving up (only a little) - but maybe a practical approach.

              1 Reply Last reply
              0
              • A abrasha

                im starting my movement toward replacing my nrf24 to rfm69-433mhz, and on the same time upgrade to 2.1 library,

                i have adafruit rfm69hcw conneced to arduino uno: 0_1484485217885_20170115_145327.jpg

                by this pinout:

                0_1484485252441_תרשים חיבורים - rfm69.png
                **the word אנטנה!! in the right side of the pcb means antenna...

                now i uploaded the serial gateway sketch and added all the neccesarry rows:

                #define MY_RADIO_RFM69
                #define MY_RFM69_FREQUENCY RF69_433MHZ
                #define MY_IS_RFM69HW
                #define MY_RFM69_NETWORKID 100

                now all i got is this serial output:

                0;255;3;0;9;MCO:BGN:INIT GW,CP=RRNGA--,VER=2.1.0
                0;255;3;0;9;TSM:INIT
                0;255;3;0;9;TSF:WUR:MS=0
                0;255;3;0;9;!TSM:INIT:TSP FAIL
                0;255;3;0;9;TSM:FAIL:CNT=1
                0;255;3;0;9;TSM:FAIL:PDT
                0;255;3;0;9;TSM:FAIL:RE-INIT
                0;255;3;0;9;TSM:INIT
                

                both happens with serial gateway sketch and ethernet gateway sketch.

                maybe my antenna isnt good? its an ordinary dupont cable with the male connector soldered inside the ANT hole
                uno powered by PC usb, and the rfm69 vin connected to VIN (5V also didnt do anything)

                tekkaT Offline
                tekkaT Offline
                tekka
                Admin
                wrote on last edited by tekka
                #23

                @abrasha I didn't read the whole conversation, but RST is not connected? Leaving RST floating could cause a problem.

                A 1 Reply Last reply
                0
                • tekkaT tekka

                  @abrasha I didn't read the whole conversation, but RST is not connected? Leaving RST floating could cause a problem.

                  A Offline
                  A Offline
                  abrasha
                  wrote on last edited by abrasha
                  #24

                  @tekka

                  Tried this on d9 inside the void setup:

                  pinMode(9, OUTPUT);
                    digitalWrite(9, HIGH);
                    delay(100);
                    digitalWrite(9, LOW);
                    delay(100);
                  
                  

                  The adafruit test sketch put this in order to reset the board in the setup phase.
                  Didn't work

                  A 1 Reply Last reply
                  0
                  • A abrasha

                    @tekka

                    Tried this on d9 inside the void setup:

                    pinMode(9, OUTPUT);
                      digitalWrite(9, HIGH);
                      delay(100);
                      digitalWrite(9, LOW);
                      delay(100);
                    
                    

                    The adafruit test sketch put this in order to reset the board in the setup phase.
                    Didn't work

                    A Offline
                    A Offline
                    abrasha
                    wrote on last edited by
                    #25

                    ok. case solved. my mistake from the beginning...

                    i ran the adafruit test sketch without the reset lines, and after the guy in their forum reminded me, i tried this inside void setup, and than i realized that the rfm69 initializes before void setup, so i inserted these lines inside MyTransport.cpp:

                    void stInitTransition(void)
                    {
                    	pinMode(9, OUTPUT); //adafruit rfm69hcw board fix
                         digitalWrite(9, HIGH);
                         delay(100);
                         digitalWrite(9, LOW);
                         delay(100);
                         TRANSPORT_DEBUG(PSTR("TSM:INIT\n"));
                    	// initialise status variables
                    	_transportSM.pingActive = false;
                    	_transportSM.transportActive = false;
                    	_transportSM.lastUplinkCheck = 0ul;
                    

                    and everything is fine.
                    now i have a running serial-gw and 3 nodes that one of them talks to the gateway directly from a distance which a similar nrf node needed 2 repeaters to do so. exciting! its about 117 meters of direct line, with one plastic transperant door between and only simple standing wire antenna without dipole.

                    thanks everyone,

                    and a letter to the honorable @Admin (s):
                    may i propose a sticky thread dedicated to all compatible hardwares which need special configuration in order to work with mysensors. some examples:
                    this thread :blush:
                    adafruit feather
                    w5100 with rfm69

                    i think many members will benefit from such thread for saving time sweat and unnecessary effort for something that should be written somewhere in some dust covered manual

                    W 1 Reply Last reply
                    2
                    • A abrasha

                      ok. case solved. my mistake from the beginning...

                      i ran the adafruit test sketch without the reset lines, and after the guy in their forum reminded me, i tried this inside void setup, and than i realized that the rfm69 initializes before void setup, so i inserted these lines inside MyTransport.cpp:

                      void stInitTransition(void)
                      {
                      	pinMode(9, OUTPUT); //adafruit rfm69hcw board fix
                           digitalWrite(9, HIGH);
                           delay(100);
                           digitalWrite(9, LOW);
                           delay(100);
                           TRANSPORT_DEBUG(PSTR("TSM:INIT\n"));
                      	// initialise status variables
                      	_transportSM.pingActive = false;
                      	_transportSM.transportActive = false;
                      	_transportSM.lastUplinkCheck = 0ul;
                      

                      and everything is fine.
                      now i have a running serial-gw and 3 nodes that one of them talks to the gateway directly from a distance which a similar nrf node needed 2 repeaters to do so. exciting! its about 117 meters of direct line, with one plastic transperant door between and only simple standing wire antenna without dipole.

                      thanks everyone,

                      and a letter to the honorable @Admin (s):
                      may i propose a sticky thread dedicated to all compatible hardwares which need special configuration in order to work with mysensors. some examples:
                      this thread :blush:
                      adafruit feather
                      w5100 with rfm69

                      i think many members will benefit from such thread for saving time sweat and unnecessary effort for something that should be written somewhere in some dust covered manual

                      W Offline
                      W Offline
                      webzter30
                      wrote on last edited by
                      #26

                      @abrasha ,
                      I know this is a old post. Glad to see someone else had this problem with these breakout boards. Thanks for the hard work hashing this out. I am new to mysensors. I have been pulling my hair out to get the RFM69HW radios to work with the ESP8266 mqtt gateway. I want to use this with openhab. I was able to back track and get the nRF modules to work, but really would like to get the RFM69HW radios to work. I had several RFM chips and hooked them up to pro min 3.3V 8mhz boards but could only sporadically get one to initialize, but then stop. I broke down and bought the adafruit breakout boards thinking that maybe I could get them to work, but ran into your problem.
                      I am glad I found your topic on the forum. To clarify, What did you attach to pin 9? Is this the only thing you did fix the problem?
                      Do the breakout boards have to be used with a 5v arduino?

                      Thanks.

                      1 Reply Last reply
                      0
                      • S Offline
                        S Offline
                        Sweeman
                        wrote on last edited by Sweeman
                        #27

                        Hi, I am also trying to get them to work and stumbled upon this. I will try that and let you know if it works.

                        @webzter30 I guess he connected it to RST on the Adafruit-board. He mentioned that before. And the breakout does work with 3-5V, so it should work with almost anything. But Adafruit stated that you should use the same power on VIN as on the logic circuits. So for a Nano that would be 5V

                        EDIT: Works for me! Thanks.

                        1 Reply Last reply
                        1
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        23

                        Online

                        11.7k

                        Users

                        11.2k

                        Topics

                        113.0k

                        Posts


                        Copyright 2019 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • MySensors
                        • OpenHardware.io
                        • Categories
                        • Recent
                        • Tags
                        • Popular