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
M

mioim

@mioim
About
Posts
7
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Raspberry Pi Zero W gateway + NRF24L01+ Radio + MQTT - Radio failing
    M mioim

    For plan A (Raspi gateway) I am still waiting for the new radio modules. I'm not scrapping this plan yet...

    Regarding plan B (ethernet gateway), I am still confused regarding which pins to use and how to make it in the sketch:

    0_1573035936647_9b5536d2-b03a-4006-a9d0-76be91d841a5-image.png

    On the left are the pins used in the Ethernet Gateway page, with a nano, a W5100 and the NRF24L01+ radio. Also, the MY_RF24 and MY_SOFT_SPI commands in the original sketch.

    On the right, the RF-NANO, W5500 and the NRF24L01+ radio I am trying to use. The pins of the radio are fixed, as both are in the same module:

    0_1573037434755_93afe9f7-f4e6-4071-8ba6-c4d1d93a9bd3-image.png

    Is the following correct?

    • (#1) the MY_RF24_CS_PIN is now pin 9 while MY_RF24_CE_PIN is the default one of the nano (pin 10, SS?) so it can be ommited (?).

    • (#2) the W5500 pins are the ones that have to be moved now. MISO, MOSI and SCK are going to pins 16, 15 and 14 with MY_SOFT_SPI (I am assuming the W5500 supports software SPI, I read yesterday that not all modules do)

    • (#3) where and how goes the SS pin of the W5500??? MY_SOFT_SPI_CE_PIN exists? Is this what you mean with your comment, @neverdie?

    All this is really exciting, but I still have a lot to learn. Apologies again for the 'dumb' questions...

    Troubleshooting

  • Raspberry Pi Zero W gateway + NRF24L01+ Radio + MQTT - Radio failing
    M mioim

    Thank you, guys. I have ordered another 3 rf24 from another shop, let's see how they perform. I will also verify all the connections.

    The radio modules may be the issue, as I have done a emitter/receiver test with them on a UNO and a RF-NANO (a NANO and a NRF24L01+ in the same module) and never worked out, but when using the same sketches on 2 RF-NANOs they worked fine.

    As a plan B I am trying to use one of these RF-NANO as the gateway, connecting a W5500 ethernet module. I still have to try this (I have just received the W5500 today) but I already have a question: The diagram and sketch for the W5100 ethernet gateway shows that the NRF24L01+ uses pins 5, 6, A0, A1 and A2, as the 'usual' pins 10, 11, 12 and 13 are used by the W5100. In the RF-NANO, the radio is already connected to pins 9 to 13.

    Do you know how I can reallocate all pins in the sketch to match my setting?

    Troubleshooting

  • Raspberry Pi Zero W gateway + NRF24L01+ Radio + MQTT - Radio failing
    M mioim

    Found a wiring diagram in the sellers website slightly different to the one above, but still failing. (diagram)

    :white_frowning_face:

    Troubleshooting

  • Raspberry Pi Zero W gateway + NRF24L01+ Radio + MQTT - Radio failing
    M mioim

    Hi guys

    I am setting up a RasPi Zero W gateway running an eclipse-mosquitto docker image and radio via a NRF24L01+ module but MySensors' debug logs keeps showing fails:

    DEBUG TSM:FAIL:RE-INIT
    DEBUG TSM:INIT
    DEBUG !TSM:INIT:TSP FAIL
    DEBUG TSM:FAIL:CNT=1
    DEBUG TSM:FAIL:DIS
    DEBUG TSF:TDI:TSL
    

    The MQTT broker seems to work fine, I am able to send and receive messages from another device.

    The NRF24 is connected to the RasPi via pins 17, 19-24 as described in https://www.mysensors.org/build/raspberry#improving-throughput-for-nrf24. A capacitor is connected between VCC and GND.

    This is the configuration I am using:

    pi@raspberrypi:~/MySensors $ sudo ./configure --my-transport=rf24 --my-gateway=mqtt --my-controller-ip-address=127.0.0.1 --my-mqtt-publish-topic-prefix=mysensors-out --my-mqtt-subscribe-topic-prefix=mysensors-in --my-mqtt-client-id=mygateway1
    

    It returns no errors. 'sudo make' also shows no errors. I'm running it with 'sudo ./bin/mysgw'

    I have tried with three NRF24 modules but same results.

    Any idea of what I am missing?

    Troubleshooting

  • HASSIO Raspberry Pi + RF-NANO. Am I doing it right?
    M mioim

    Thank you, @Nightbodom and @Dave-Myers

    So, it looks like getting the RN-NANO boards and the NRF wasn't the best idea...

    What do you think about to use another raspberry pi (a Zero this time, running Raspbian for example) as a mqtt broker, connecting the NRF to it? The Zero hosting the mqtt broker and also the mysensors gateway? Or they must be on different devices?

    Troubleshooting

  • HASSIO Raspberry Pi + RF-NANO. Am I doing it right?
    M mioim

    Thank you, @mfalkvidd !

    I have double-checked the wiring and seems OK to me:

    Pin 17 (Raspberry pi 2+) (3.3v) - VCC (NRF24)
    Pin 19 - MOSI
    Pin 20 - GND
    Pin 21 - MISO
    Pin 22 - CE
    Pin 23 - SCK
    Pin 24 - CSN

    I have searched further and I am not sure if the installation and configuration of the mysensors gateway is still required on the raspberry pi as described here: https://www.mysensors.org/build/raspberry. The raspberry pi is running hassio and it's not possible to use 'git' or 'make' there.

    I cannot find clear information about installing mysensors on hassio apart from a few forum posts with issues.

    Troubleshooting

  • HASSIO Raspberry Pi + RF-NANO. Am I doing it right?
    M mioim

    Hi guys. First time trying MySensors, it's not working, and I am not sure if I am following the correct approach:

    I have a working HASSIO (0.100.2) installation running on a Raspberry Pi 2+. I am trying to add a DHT-11 sensor (as the first shot with MySensors). The sensor is connected to a Keywish RF-NANO board (it's a nano clone with a NRF24 in the same board). When running a simple arduino sketch to read the DHT11 it works fine.

    On the Raspberry Pi I have connected a standalone NRF24L01 to the gpio following this: https://www.mysensors.org/build/raspberry

    Issues: First, Home Assistant should recognize the NRF24L01 and assign it to a /dev/ttyXXXX but it is not happening... I assume that this is because there is no sensor connected yet, but I'm still not sure. Maybe the whole setup is wrong.

    On the RF-NANO I load the example sketch from here: https://www.mysensors.org/build/humidity

    When started, I get this in the serial monitor:

    16:47:53.193 -> 16 MCO:BGN:INIT NODE,CP=RNNNA---,REL=255,VER=2.3.1
    16:47:53.193 -> 26 TSM:INIT
    16:47:53.193 -> 27 TSF:WUR:MS=0
    16:47:53.193 -> 33 !TSM:INIT:TSP FAIL
    16:47:53.193 -> 35 TSM:FAIL:CNT=1
    16:47:53.228 -> 37 TSM:FAIL:DIS
    16:47:53.228 -> 38 TSF:TDI:TSL

    I have NOT connected a capacitor yet (have to order it) in the NRF24L01 of the RasPi but I have placed both emitter and receptor close to each other with no difference.

    I am not sure if this is just a communication problem that will be solved with the capacitor, or the issue is with Home Assistant which is not detecting the NRF24L01, or with the NRF24L01, not being a NRF24L01+ (I have just noticed it)

    Am I doing it right? Is this the right way of connecting a mysensor to a HASSIO installation on a Raspberry Pi?

    Any help is really appreciated.

    Troubleshooting
  • Login

  • Don't have an account? Register

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