MQTTClient - Arduino uno - Ethernet Shield WIZ5100 - RFM69
-
Hello @Carywin
Hello,
I think it's not working anymore on API 2.2...
Im getting a lot of compilation errors due includes non having the required functions. Seems RFM69 on MySensors are updatedb since API 2.2...Look at 2.1:
https://github.com/mysensors/MySensors/blob/2.1.1/drivers/RFM69/RFM69.hCompared to the 2.2:
https://github.com/mysensors/MySensors/blob/development/drivers/RFM69/old/RFM69_old.hThe name is changed as well RF69 to RFM69...
I'm trying to correct the RFM69 library taken from https://github.com/kiwisincebirth/RFM69 suggested by you.
Some new functions were included as well.
Then I'll give a try.
Let e know for the above doubts.Thanks, Simon
-
library 2.2 has a new driver for RFM69 if you want to use it and it is used by raspberry gateway.
Hello @gohan
@gohan said in MQTTClient - Arduino uno - Ethernet Shield WIZ5100 - RFM69:
library 2.2 has a new driver for RFM69 if you want to use it and it is used by raspberry gateway.
Well, then I'm correcting the right old/RFM69_old.h + old/RFM69_old.cpp + old/RFM69registers_old.h to apply the differences between this version (https://github.com/kiwisincebirth/RFM69) and the original one from Mysensors.
I've overwritten the above files taken the version from 'kiwisincebirth' and added the missing functiond like sanityCheck, powerUp, powerDown, ... and correcting the variable definition from RF69_* to RFM69_*.Now it compiles correctly, but I don't have my board here.
Another story is to understand if that will work on the board.As written by @Carywin in the thread suggested by him, I'll use his sketch and connect the radio over the Wiz5100 shield on my Arduino UNO using as CS digital PIN6 instead of PIN10. All via Level Converter. The remaining pins on the radio will maintain the same connections as default. Hope I've understood all correctly and that will work...
Simon
-
@gohan said in MQTTClient - Arduino uno - Ethernet Shield WIZ5100 - RFM69:
I am just curious, but don't you have a raspberry pi?
Eheh, not really.
I've a BananaPi board, which is mainly the same ARM board, with some differences. I was trying to follow the OrangePi HowTo but noticed that my Armbian version installed on the board is hidding me the /boot/script.bin... so I cannot proceed. On an old version it was available... Of course I've opened a thread on their forum... https://forum.armbian.com/topic/6430-armbianbananapi-scriptbin-missing/I'm waiting for answers. Still requested again :(
Simon
-
I'd consider gettin a RPI3, there are so many working solutions that can simplify al lot of things instead of the other various "fruits" PIs that are indeed cheaper but they don't have the same community support as the raspberry.
@gohan said in MQTTClient - Arduino uno - Ethernet Shield WIZ5100 - RFM69:
I'd consider gettin a RPI3, there are so many working solutions that can simplify al lot of things instead of the other various "fruits" PIs that are indeed cheaper but they don't have the same community support as the raspberry.
Absolutely true! Btw years ago I've helped in implementing the vdpau drivers, testing xbmc (now kodi) and hw acceleration so I got 5 boards for free for the tests. That's the reason why I'm using it ;-)
One is for Openhab (the one that has armbian without /boot/script.bin), one used with Octoprint on my 3d printer, another in a kiosk for my MAME emulation station :-)
If I cannot get any support with the Armbian version, maybe I'll get an RPi. -
To me having the radio directly on the RPI is a much cleaner solutions, with less wires around and it is easier to update gw software remotely :)
@gohan said in MQTTClient - Arduino uno - Ethernet Shield WIZ5100 - RFM69:
To me having the radio directly on the RPI is a much cleaner solutions, with less wires around and it is easier to update gw software remotely :)
Could you add the nRF24L01+ as well? I have both radios around!
-
Yes, there is a open topic on the forum "dual spi radio", I have them both running on my RPI
@gohan said in MQTTClient - Arduino uno - Ethernet Shield WIZ5100 - RFM69:
Yes, there is a open topic on the forum "dual spi radio", I have them both running on my RPI
Hello @gohan !
I'm trying to move on that way.
You have installed boh radios on RPi. Was a Level Converter required?Thanks!
Simon
-
NO level converter since RPI is 3.3v but I had tu use sockets with voltage regulators for the radios because I used the high power versions
@gohan said in MQTTClient - Arduino uno - Ethernet Shield WIZ5100 - RFM69:
NO level converter since RPI is 3.3v but I had tu use sockets with voltage regulators for the radios because I used the high power versions
You mean the RFM69HW ?
Ok, in that case it's not the own I have, so I expect to connect both radios directly on the board (as soon I get one ;) ) -
NO level converter since RPI is 3.3v but I had tu use sockets with voltage regulators for the radios because I used the high power versions
@gohan hello again!
I’m testing the RFM69 on RPi and seems working well. The only doubt is about the range. Seems previous Arduino-RFM69-serial setup was better. Maybe only placed better.
Btw I’m thinking to increase the range using the RFM69HW version.Is the HW the better version that is using more power?
What have you done for connect it then on the RPi?
Actually I’m using RFM69H(not W). If all are 868Mhz, are they compatible with HW version?
If all will work stable, I’ll migrate the nRF24L01+ as well. What have you done for handle power on this? On my Arduino I’m using a capacitor, nothing more.
Thanks for you help as always!!
Simon
-
HW version is just a regular W version with an extra power amplifier on the TX side. To use them i got some of those nrf24 sockets with voltage regulator and I soldered the radio module on the nrf2rfm pcb adapter that you can find on openhardware.io
-
HW version is just a regular W version with an extra power amplifier on the TX side. To use them i got some of those nrf24 sockets with voltage regulator and I soldered the radio module on the nrf2rfm pcb adapter that you can find on openhardware.io
@gohan said in MQTTClient - Arduino uno - Ethernet Shield WIZ5100 - RFM69:
HW version is just a regular W version with an extra power amplifier on the TX side. To use them i got some of those nrf24 sockets with voltage regulator and I soldered the radio module on the nrf2rfm pcb adapter that you can find on openhardware.io
If the "HW" version has an amplifier on the TX side, do you think it's enough to have coverage gain on nodes that are only "W"?
I cannot find the nrf24 sockets with voltage regulator on openhardware.io :-(
Do you apply it on both radios? -
I am just referring to this https://www.mysensors.org/hardware/nrf2rfm69
The sockets you can find them on gearbest or aliexpress.
Of course the coverage gain is only within HW, but you can have closer nodes using normal W version.
@gohan said in MQTTClient - Arduino uno - Ethernet Shield WIZ5100 - RFM69:
I am just referring to this https://www.mysensors.org/hardware/nrf2rfm69
The sockets you can find them on gearbest or aliexpress.
Of course the coverage gain is only within HW, but you can have closer nodes using normal W version.
Ok, you use this adapter to place the RFM69 module on it and let it fit in something like that?
https://www.aliexpress.com/item//32741923288.htmlThen I could wire it as always or should it use the 5V in the RPi instead?