Navigation

    • Register
    • Login
    • Search
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. jenspr
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    jenspr

    @jenspr

    1
    Reputation
    4
    Posts
    1
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online
    Location Germany

    jenspr Follow

    Best posts made by jenspr

    • RE: Adafruit M0 hang up during hwInit at eep.begin

      Hello everybody,

      i found the reason for the issue... I connected already a BMP280 to the I2C pins of the Feather M0 board. To check one thing after another i did not yet connect the power supply to the BMP280. It works if i solder disconnect the BMP280 from SDA&SCL and also if i connect the 3,3V of the BMP280.

      It seems that the not powered BMP280 is confusing the I2C-bus so badly that the EEPROM library can not handle it. In my opinion should this kind of "mistake" in the wiring not lead to a complete black-out.

      Is the external EEPROM usage in general for SAMD hardware okay? In my case i use the Feather M0 which has no external EEPROM connected. Somehow i think that it was done for the Sensebender board?

      I would suggest to

      • add a debug message at the beginning of the hwInit in the mysensor library that everybody can see that the library starts to works
      • put the external EEPROM functionality in a #define switch or better use some internal EEPROM function

      By the way is something with the clock also wrong.
      My Serial is running at 9600 - but the Software says #define MY_BAUD_RATE (115200ul)..

      i am not very familiar with github and how to use it. If it is welcome that a mechanical guy tries to implement something like above in the library, contact me for a try 😉

      best regards
      Jens

      posted in Troubleshooting
      jenspr
      jenspr

    Latest posts made by jenspr

    • RE: Adafruit Feather M0 RFM69 with W5500 as MQTT-gateway for openhab and arduino nano with adafruit RFM69 breakout-board as sensor

      I finished the gateway some time ago. here are some pictures
      IMG_20200430_125142.jpg
      IMG_20200430_124702.jpg
      IMG_20200430_122710.jpg

      posted in My Project
      jenspr
      jenspr
    • RE: Adafruit M0 hang up during hwInit at eep.begin

      Hello everybody,

      i found the reason for the issue... I connected already a BMP280 to the I2C pins of the Feather M0 board. To check one thing after another i did not yet connect the power supply to the BMP280. It works if i solder disconnect the BMP280 from SDA&SCL and also if i connect the 3,3V of the BMP280.

      It seems that the not powered BMP280 is confusing the I2C-bus so badly that the EEPROM library can not handle it. In my opinion should this kind of "mistake" in the wiring not lead to a complete black-out.

      Is the external EEPROM usage in general for SAMD hardware okay? In my case i use the Feather M0 which has no external EEPROM connected. Somehow i think that it was done for the Sensebender board?

      I would suggest to

      • add a debug message at the beginning of the hwInit in the mysensor library that everybody can see that the library starts to works
      • put the external EEPROM functionality in a #define switch or better use some internal EEPROM function

      By the way is something with the clock also wrong.
      My Serial is running at 9600 - but the Software says #define MY_BAUD_RATE (115200ul)..

      i am not very familiar with github and how to use it. If it is welcome that a mechanical guy tries to implement something like above in the library, contact me for a try 😉

      best regards
      Jens

      posted in Troubleshooting
      jenspr
      jenspr
    • Adafruit M0 hang up during hwInit at eep.begin

      Hello everybody,

      i set up my gateway so far and everything worked fine.
      Now i soldered all parts nicely on a board and put it in the final housing. But the gateway make gave no message on the Serial.

      I followed the code and put after each line an output to the Serial to find the position where it stucks. Finally i found it:
      ```

      MY_DEBUGDEVICE.println(F("AFTER Wait for synchronization of registers between the clock domains")); 
      const uint8_t eepInit = eep.begin(MY_EXT_EEPROM_TWI_CLOCK, &Wire);
      MY_DEBUGDEVICE.println(F("AFTER eep.begin(MY_EXT_EEPROM_TWI_CLOCK, &Wire);"));
      

      The second message does not arrive on my computer. I would assume that the function eep.begin runs infinite..??

      Interesting for me is that also the reset-button on the adafruit-board does not bring back the controller. After the reset no message is displayed?
      I need to upload the sketch to the board again to re-start the software?

      I saw that the watchdog is set before. I thought that the watchdog should also make some kind of reset if the software gets stucked during the eeprom init.

      I found in the troubleshooting a section that "on rare occasions you might need to clear this memory back to the factory default."
      But the sketch is hanging up at the same position.

      i do not know what to try next... Is it possible that the EEPROM section on the controller got damaged?
      Could somebody please give me a hint?..

      Maybe it would also be a nice idea in general to give some debug-message during the init of the hardware to at least show that the library started to doo something?```

      Thank you very much!
      best regards
      Jens

      posted in Troubleshooting
      jenspr
      jenspr
    • Adafruit Feather M0 RFM69 with W5500 as MQTT-gateway for openhab and arduino nano with adafruit RFM69 breakout-board as sensor

      Dear all,

      i baught a while ago the Adafruit Feather M0 RFM69 as it seemed to be an easy solution to build up a gateway. On the same online shop could i only get a W5500 ethernet module, so i wanted to give it a try.
      And when you start the Adafruit stuff i also ordered the break-out board for the RFM69 to use with the nano..

      It took me 2 days to get mysensors running on that devices - at the moment only as serial gateway. I was shocked that i need to make changes in the mysensor libraries..

      I found all information here in the forum but some have been outdated etc.. So i want to share my experience and help other people. I hope i remember everything and i do not forget something.
      Maybe somebody could update the mysensors homepage or even update the library.

      First the gateway with the Adafruit Feather M0 RFM69. Of course you need to install all libraries as described on the Adafruit homepage.

      The serialdevicee is running at baudrate of 9600 - i still dont know why..
      But the declaration in MyHwSAMD.h is wrong. For the Feather M0 you need to change. That was easy.

      #ifndef MY_SERIALDEVICE
      //#define MY_SERIALDEVICE SerialUSB
      #define MY_SERIALDEVICE Serial
      #endif
      

      In the arduion sketch need the pins to be defined

      #define MY_RADIO_RFM69
      #define MY_IS_RFM69HW
      #define MY_RFM69_FREQUENCY RFM69_868MHZ
      
      //make timeouts longer - i am not if it necessary
      #define MY_TRANSPORT_STATE_TIMEOUT_MS (20*1000ul)
      #define   MY_RFM95_TX_TIMEOUT_MS (10000ul)
      
      //Adafruit M0 RFM69
      #define MY_RFM69_CS_PIN 8
      #define MY_RFM69_IRQ_PIN 3
      #define MY_RFM69_IRQ_NUM 3
      #define MY_RFM95_RST_PIN 4
      

      Second the sensor-module with an Arduino nano replica and the Adafruit RFM69 break out board.
      The serial port is running at baudrate of 115200

      Also in this case i needed to define the pins manually depending on the hardware connection. In my case

      #define MY_RFM69_CS_PIN 4
      #define MY_RFM69_IRQ_PIN 2
      #define MY_RFM69_IRQ_NUM 0
      #define MY_RFM69_RST_PIN 3
      

      A little more tricky is the fact that the Adafruit module only works if you handle the RST pin manually MyTransportHAL.cpp

      bool transportHALInit(void)
      {
        
        pinMode(MY_RFM69_RST_PIN, OUTPUT);
        digitalWrite(MY_RFM69_RST_PIN, HIGH);
        delay(100);
        digitalWrite(MY_RFM69_RST_PIN, LOW);
        delay(100);
        
        TRANSPORT_HAL_DEBUG(PSTR("THA:INIT\n"));
      

      So as far as i remember this was everything to do that a message could be send from the node to the gateway. Next step will be to set up the W5500 for the gateway and integrate everything in openhab. And of course i want to use the bootloaader - but i fear i find some time in some weeks.. I keep you updated 😉

      posted in My Project
      jenspr
      jenspr