Hi Forum,
I'm new to the Arduino platform and have no real coding experience on this platform so please excuse me if some things are obvious to you.
I need to build an Moteino ethernet gateway that can communicate wirelessly with a bunch (8-10) other moteinos via the RFM69HW.
The ethernet Moteino would fetch some data via ethernet and send it to the Moteino nodes. I cannot use a Pi because I need to use some special librarys designed for the arduino platform to fetch the data from aother device on the network. What would be the best way to build such a gateway Moteino?
1.) Try to attach an ethernet shield to a moteino
(Seems complicated because the ethernet shield causes conflicts to the RFM69 communication!)
2.) Try to attach a RFM69HW to an Arduino Uno
(Is this possible at all?)
3.) Use an Arduino Uno with ethernet shield connected via serial connection to a Moteino?
What is your opinion?
Thanks for your answers!
Andrew.
I connected a moteino usb to raspberry pi 2 (added a USB wifi dongle to my Pi). Using felix's PiGateway image, there's only a couple settings to change. Sounds like exactly what you're asking for.
Here's the link to the pi home automation gateway: https://lowpowerlab.com/gateway/
This is the route I went. Download the prebuilt image, change a couple settings (they are noted on the link below, and you're in business
https://lowpowerlab.com/gateway/#image
Even I was able to finally get it to work (I have NO programming experience)
Quote from: Kilo95 on February 08, 2016, 08:19:41 AM
I connected a moteino usb to raspberry pi 2 (added a USB wifi dongle to my Pi). Using felix's PiGateway image, there's only a couple settings to change. Sounds like exactly what you're asking for.
Here's the link to the pi home automation gateway: https://lowpowerlab.com/gateway/
This is the route I went. Download the prebuilt image, change a couple settings (they are noted on the link below, and you're in business
https://lowpowerlab.com/gateway/#image
Even I was able to finally get it to work (I have NO programming experience)
Great to see that someone with little experience can actually manage to get it working, means it's not impossible :)
The Pi is the easiest, cleanest way I can think of. Like I mentioned in other posts, my first attempts with IoT were using an ethernet shield, which almost worked, then a netduino - a lamentable fail.
If you have to use an ethernet shield, there are multiple threads around this forum discussing how to do it properly, some people have shared working code for Moteino+ethShield or for UNO+RFM69+ethShield etc. Look around, you will find good info. I am not on top of that topic since I have no interest in an ethernet shield. Don't forget Moteino and RFM69 are all 3.3V, UNO and ethShield are 5V. It's possible to connect them with some voltage buffering. Other threads should cover that also. Good luck.
Thanks for your answers.
Unfortunately it is not an option to use a RasberryPi. For my application the Moteino needs to talk directly to my ethernet network because there is an Arduino library that I want to use. This library talks directly over ethernet to the device that I want to control with the Arduino. But I need some other arduino nodes that switch on leds (wirelessly), which are controlled by the Arduino that is connected to the ethernet and the device.
So I need a solution to get a Moteino into an ethernet network.
I thought about using an Arduino Uno with ehternet shield for the network communictaion (with the mentioned library) that is connected to a Moteino via serial for communication to the other Moteino nodes wirelessly. It is a somewhat complicated way. A direct ethernet connection to the Moteino would be an easier way.
What kind of shield should I buy for that purpose?
Thanks again!!
Andrew
@prostudio,
My two choices are the WI5100 and the ENCJ2860. I'm partial to the WI5100 and have found it works very reliably.
Check out this thread:
https://lowpowerlab.com/forum/index.php/topic,838.0.html
I use kiwisincebirth's library.
Quote from: prostudio on February 08, 2016, 05:45:12 AM
Hi Forum,
I'm new to the Arduino platform and have no real coding experience on this platform so please excuse me if some things are obvious to you.
I need to build an Moteino ethernet gateway that can communicate wirelessly with a bunch (8-10) other moteinos via the RFM69HW.
The ethernet Moteino would fetch some data via ethernet and send it to the Moteino nodes. I cannot use a Pi because I need to use some special librarys designed for the arduino platform to fetch the data from aother device on the network. What would be the best way to build such a gateway Moteino?
1.) Try to attach an ethernet shield to a moteino
(Seems complicated because the ethernet shield causes conflicts to the RFM69 communication!)
2.) Try to attach a RFM69HW to an Arduino Uno
(Is this possible at all?)
3.) Use an Arduino Uno with ethernet shield connected via serial connection to a Moteino?
What is your opinion?
Thanks for your answers!
Andrew.
I would recommend using a Moteino Mega for the gateway. You'll appreciate both the extra IO and the much needed extra RAM you'll want for the Gateway.
I've attached the schematic for the Gateway I use. This has an option for either W5100 board or RN-XV WiFi module, supports SD-Card, and has battery backup with LiPo charger.
Tom
Quote from: TomWS on February 08, 2016, 11:13:37 AM
Quote from: prostudio on February 08, 2016, 05:45:12 AM
Hi Forum,
I'm new to the Arduino platform and have no real coding experience on this platform so please excuse me if some things are obvious to you.
I need to build an Moteino ethernet gateway that can communicate wirelessly with a bunch (8-10) other moteinos via the RFM69HW.
The ethernet Moteino would fetch some data via ethernet and send it to the Moteino nodes. I cannot use a Pi because I need to use some special librarys designed for the arduino platform to fetch the data from aother device on the network. What would be the best way to build such a gateway Moteino?
1.) Try to attach an ethernet shield to a moteino
(Seems complicated because the ethernet shield causes conflicts to the RFM69 communication!)
2.) Try to attach a RFM69HW to an Arduino Uno
(Is this possible at all?)
3.) Use an Arduino Uno with ethernet shield connected via serial connection to a Moteino?
What is your opinion?
Thanks for your answers!
Andrew.
I would recommend using a Moteino Mega for the gateway. You'll appreciate both the extra IO and the much needed extra RAM you'll want for the Gateway.
I've attached the schematic for the Gateway I use. This has an option for either W5100 board or RN-XV WiFi module, supports SD-Card, and has battery backup with LiPo charger.
Tom
I definitely agree with TomWS's choice of the Mega as the g/w platform. You will find that you quickly run out of memory once you start trying to load lots of libraries to support all of the cool tricks you want the devices connected to the g/w to perform.
Quote from: syrinxtech on February 08, 2016, 11:25:33 AM
I definitely agree with TomWS's choice of the Mega as the g/w platform. You will find that you quickly run out of memory once you start trying to load lots of libraries to support all of the cool tricks you want the devices connected to the g/w to perform.
LOL! You'll quickly run out of memory on the first HTTP response you get!
Tom
Quote from: TomWS on February 08, 2016, 05:45:40 PM
LOL! You'll quickly run out of memory on the first HTTP response you get!
Tom
Lol again, no kidding, I think I gave up the ethernet shield back in the days when I was playing with a UNO, and things were flaky at best when I started implementing any complexity. I didn't have a MoteinoMEGA back then :)