MySensors API ver 1.6.1: MQTTClientGateway - RF69 - Arduino Uno - W5100 Shield
-
hi. I'm not using softspi on my side. but as I'm understanding this you're connecting rfm69 and w5100 on softspi together.
I guess you should have your rfm69 on regular hardware spi pins, and the w5100 on softspi (or vice versa).
And then be careful like said above, rfm69 is not 5v tolerant and UNO pins are 5v if i remember right (I have no uno ..). You have to use a logic level converter for spi pins (to convert 5v uno signals to 3v rfm69 etc..). -
Hi!
NSS, MOSI and SCK on the RFM69 are not 5 V tolerant. Are you using a logic level converter?
@martinhjelmare
Hi, well. I'm not so proof with that at all. Feeding it with 3.3V I was thinking it's enough. Isn't the same as for the NRF24L01+. It has it own 3.3V pin on the shield. I've an Arduino Diemilanove with W5100 for the NRF24L01+ as MQTTClientGateway and it works great.@scalz
Hi! For the 5v question see above.
For the pins, could you give me some pratical code hints based on the above sketch I've posted?Thanks to all!
Simon
-
@xefil
you have connected radio and ethernet together on same spi bus. in theory, you could do but you wouldn't need softspi in this case ;) actually (I don't know if it's fixed), you can't do this when using w5100.
Here connection is explained
https://www.mysensors.org/build/ethernet_gateway
for pin configuration then, look at myconfig.h
but I don't use softspi with my rfm69 so I can't tell you. I would prefer use a board with two hardware spi bus like tbowmo GW for instance (I'm using an usb gw, and another one wifi esp8266 for the moment) -
Hi @scalz again :)
I've found this that could help to use SOFTSPI (https://github.com/gieemek/) but seems related to API 1.5 and I'm using 1.6 and it doesn't have the MQTTClient version.
I'm still in big doubt on WHY I have to use SOFTSPI. AFAYK it's 'cause it shares SPI and one of them needs to use software emulation.
If so, isn't enough if W5100 uses SOFT? But being a shield it's connected to the SPI port directly so the radio must be set to SOFT-SPI?For the logic level converter it's something like that?
http://www.circuitointegrato.com/3071-thickbox_default/ebay.jpg
(IIC I2C level converter module, 5-3v system compatible, arduino sensor module)
Could I have damaged the radio without the level converter?I would like to prevent buying more components and find out that I cannot reach the needed goal.
Any suggestion to create the MQTTClientGateway with the aboce hardware?
I'm using Openhab as Controller. Any other alternative could be apreciated.
I should have a Arduino Pro Mini 3.3V (so it doesn't require level converter) and could use the SerialGateway connecting it directly to the Raspberry Openhab?Thanks!
Simon
-
-
Hi again to all!
Noone has suggestions or answers for what asked above?
I would have a ENC28J60 network controller. Would this help in solving the issue in any way?
Main goal: MQTTGatewayClient. Alternatives are accepted as well :+1:
Thanks!
SimonFor the Uno you have to use a logic level converter to connect the RFM69. If you use a Pro Mini 3.3 V you don't need a logic converter but you need to be able to decrease the baudrate at the controller for the serial connection to work, if using that gateway type.
Regarding ethernet gateway and SPI, I suggest you follow the build guide. I don't recommend the ENC module as it's notoriously hard to get working together with mysensors.
-
For the Uno you have to use a logic level converter to connect the RFM69. If you use a Pro Mini 3.3 V you don't need a logic converter but you need to be able to decrease the baudrate at the controller for the serial connection to work, if using that gateway type.
Regarding ethernet gateway and SPI, I suggest you follow the build guide. I don't recommend the ENC module as it's notoriously hard to get working together with mysensors.
@martinhjelmare said:
For the Uno you have to use a logic level converter to connect the RFM69.
Ok, I'll order one. My big doubt is if I can then use the radio RFM69 + the W5100 for a MQTTClientGateway. I've tested it only for W5100 with NRF24L01+ and I fear the MQTTClientgateway doen't work with RFM69.
If you use a Pro Mini 3.3 V you don't need a logic converter but you need to be able to decrease the baudrate at the controller for the serial connection to work, if using that gateway type.
Do you mean decrease it from 115200 to lower? Which speed? why?
Regarding ethernet gateway and SPI, I suggest you follow the build guide. I don't recommend the ENC module as it's notoriously hard to get working together with mysensors.
Ok to not use then ENC. I've followed the build guide, but, as written before, I think there is an incompatibility to use RFM69 and W5100 as gateway, especially as mqttclientgateway. Any experience would be great to be shared ;)
Thanks,
Simon
-
@martinhjelmare said:
For the Uno you have to use a logic level converter to connect the RFM69.
Ok, I'll order one. My big doubt is if I can then use the radio RFM69 + the W5100 for a MQTTClientGateway. I've tested it only for W5100 with NRF24L01+ and I fear the MQTTClientgateway doen't work with RFM69.
If you use a Pro Mini 3.3 V you don't need a logic converter but you need to be able to decrease the baudrate at the controller for the serial connection to work, if using that gateway type.
Do you mean decrease it from 115200 to lower? Which speed? why?
Regarding ethernet gateway and SPI, I suggest you follow the build guide. I don't recommend the ENC module as it's notoriously hard to get working together with mysensors.
Ok to not use then ENC. I've followed the build guide, but, as written before, I think there is an incompatibility to use RFM69 and W5100 as gateway, especially as mqttclientgateway. Any experience would be great to be shared ;)
Thanks,
Simon
115200 is too fast for Arduino at 8 MHz. Use 38400.
I haven't tested the RFM69 myself yet, but I don't remember reading that it should be incompatible with the W5100 either.
-
Hello,
I've purchased this i2C level converter to use the RFM69 radio on my Arduino Uno:
http://www.ebay.it/itm/222115738795
Ehm, how do I use it :-)
Thanks for the support!
PS: As written at the beginning of this thread, I need to use the Arduino Uno as a gateway, so it has the ethernet shield as well.
THANKS!
Simon
-
If anyone answers @xefil's question above, please answer in this thread to avoid confusion.
@xefil: Please don't post the same question in more than one place. People will waste their time answering in one thread while the question might have been answered in another thread already.