Iboard - Cheap Single board Ethernet Arduino with Radio
-
IBoard: An ethernet gateway for about $20
As mentioned this is a really cheap all in one WizNet based Ethernet board. What makes it ideal for MySensors use is that it also includes a header for NRF24 radio..although an easy hardware modification is needed so we can use the sketches and libraries direct from Hek largely unmodified.
The designer of the iBoard used different pins rather than the standard MISO(D5), MOSI(D5) and SCK(D7)...
So you have two options...Either make the hardware mods described below or make the changes to the RF24 libraries.
If you want to go the software method, see the links to the modified RF24 libs at the bottom of the Wiki - http://wiki.iteadstudio.com/IBoardI chose the HW changes largely as i didnt fancy changing the library and mySensors has made some improvements to this library and I would need to modify them each time this is updated...not so interested in doing this!
So..the Hardware mod:
You need to cut the existing traces from the atmega going to the RF24 header ( D5,D6,D7) and then solder three short wires from the ISP header to the RF24 header.
We're lucky.. the ISP header is located right next to the RF24 header and this has the three pins we need to feed the radio.Cutting the traces:
Again some more luck. The three pins are together and on a corner of the Atmega so use a sharp Exacto knife of similar and cut these three traces.
If your nervous then use your multimeter to check you have the correct pins.Once cut, verify using your multimeter that they are now isolated nor shorted to GND.
In this image ive marked the pins to cut in RED http://i.imgur.com/2ztgmXS.jpg
And here is a bad photo of my cuts : http://i.imgur.com/KVARYqx.jpgThen you need to solder three wires:
Using some nice short wires connect the pins from the ISP header to the RF24 header
A picture tells 100 words so...http://i.imgur.com/jQoQLkS.jpgOk now some small changes to the sketch - still use this guide:
http://www.mysensors.org/build/vera#building-an-ethernet-connected-gateway-
As the board has WIZNET ( the sketch default is ENC28J60)
//#include <UIPEthernet.h> //Use this if you have attached a Ethernet ENC28J60
#include <Ethernet.h> // Use this fo WizNET module and Arduino Ethernet Shield -
Change the PINS assigned as the iboard is set to use D3 for CE and D8 for CSN:
#define RADIO_CE_PIN 3 // radio chip enable
#define RADIO_SPI_SS_PIN 8 // radio SPI serial selectThis will also require changing the LED pins to free ones like so:
#define RADIO_ERROR_LED_PIN 7 // Error led pin
#define RADIO_RX_LED_PIN 6 // Receive led pin
#define RADIO_TX_LED_PIN 9 // the PCB, on board LED
I dont use Include button or LED's so if you do want to , then post back with your solution.
-
Set the IP and MAC as you need to. I have multiple ethernet arduinos on my LAN so i always change from the default DEADBEEFFEED to something else...just change a few of the existing HEX.
-
Connect it to your USB programmer - ENSURE ITS SET TO 3.3V ( dont let the smoke out!! )
-
Set Arduino IDE to "Duemilanove" - and upload away!!
Testing:
You should be able to ping the IP address, and if your radio is working you will see any messages from your mySensors sensors in the serial console.Other notes:
- I'm using a NRF24l01+PA+LNA which have higher power requiremnts than the non ampified radios. - working great! I didnt need a decoupling capacitor either.
- The Iboard does have some non-standard support for POE. One of the customer reviews on the product page talks about this...im yet to try this. I do have some passive injectors ready to go..just haven't done it yet ;-)
Good luck.
@gregl
I just wanted to post to say that I implemented the Ethernet Gateway on the iBoard this afternoon and it worked first time. I used your directions for the hardware modifications and the minor changes to the sketch, uploaded it, turned it on and Voila! it eventually found all the sensors and it up and running.Thanks for the guidance. I received the iBoards in the mail the day before yesterday and planned on getting to it sometime in the next few weeks. This afternoon i power cycled my Vera with the Serial Gateway on it to move a power plug that was in the way and when it came back up it couldn't find the Gateway. I tried everything I could think of and then decided to bite the bullet and do the Ethernet GW right then and there.
worked great. Thanks
John -
-
@gregl
I just wanted to post to say that I implemented the Ethernet Gateway on the iBoard this afternoon and it worked first time. I used your directions for the hardware modifications and the minor changes to the sketch, uploaded it, turned it on and Voila! it eventually found all the sensors and it up and running.Thanks for the guidance. I received the iBoards in the mail the day before yesterday and planned on getting to it sometime in the next few weeks. This afternoon i power cycled my Vera with the Serial Gateway on it to move a power plug that was in the way and when it came back up it couldn't find the Gateway. I tried everything I could think of and then decided to bite the bullet and do the Ethernet GW right then and there.
worked great. Thanks
John -
Glad to hear your network is up and running again.
@hek Thanks, the iBoard was an absolute snap solution.
-
Just another thank you for the great instructions. Here is a better pic of the tracks to cut http://i.imgur.com/h87eOIy.jpg although i think i went overboard and hacked it a bit to much.
Here is one of the completed gateway http://i.imgur.com/SwcP7yN.jpg
The only problem i had was i had to also un-comment out the following line (To enable it) and force the inclusion PIN number to something other than 3.
// Uncomment this constructor if you have leds and include button attached to your gateway
MyGateway gw(RADIO_CE_PIN, RADIO_SPI_SS_PIN, INCLUSION_MODE_TIME, INCLUSION_MODE_PIN, RADIO_RX_LED_PIN, RADIO_TX_LED_PIN, RADIO_ERROR_LED_PIN);I would have thought not having it would disable the manual inclusion button, but without doing this, every time there was radio traffic the inclusion mode would start !
Now i just need to find a nice case.
Joseph
-
Just another thank you for the great instructions. Here is a better pic of the tracks to cut http://i.imgur.com/h87eOIy.jpg although i think i went overboard and hacked it a bit to much.
Here is one of the completed gateway http://i.imgur.com/SwcP7yN.jpg
The only problem i had was i had to also un-comment out the following line (To enable it) and force the inclusion PIN number to something other than 3.
// Uncomment this constructor if you have leds and include button attached to your gateway
MyGateway gw(RADIO_CE_PIN, RADIO_SPI_SS_PIN, INCLUSION_MODE_TIME, INCLUSION_MODE_PIN, RADIO_RX_LED_PIN, RADIO_TX_LED_PIN, RADIO_ERROR_LED_PIN);I would have thought not having it would disable the manual inclusion button, but without doing this, every time there was radio traffic the inclusion mode would start !
Now i just need to find a nice case.
Joseph
@jribera said:
Just another thank you for the great instructions. Here is a better pic of the tracks to cut http://i.imgur.com/h87eOIy.jpg although i think i went overboard and hacked it a bit to much.
Yep - looks like you got em!
Do let me know if you do find a nice case... i need one too.
I'm powering mine from a 5v plantronics 500ma supply... been rock solid for month or so now.
-
I have built a gateway following the instructions above. It works well, and the mod was quite simple.
I have had a first cut at printing a custom case to match, unfortunately I had one of the holes in the wrong place. I will correct this over the next few days. When I get it right, I can post the design if people are interested.
-
I like it.. Just need some LED; Power and Inclusion Switch holes... :-)
-
Who needs a fancy printed case when you have some an old mouse case, a dremel and some glue :)
-
..but i dont have an old mouse case? ;-)
-
Who needs a fancy printed case when you have some an old mouse case, a dremel and some glue :)
-
I haven't really tested the range explicitly, and really the case is hopefully somewhat temporary. That said, the unit is in the basement and I have a temp sensor in the attic which works fine, and another sensor on the main floor at the other end of the house which also works fine.
-
I have noticed that my ENC based ethernet gateway seems to lock up periodically (doesn't respond to ping or TCP on port 5003). I thought perhaps this case was overheating it, but now that doesn't seem to be the case. I'll be switching to one of the iBoard whenever it arrives, but had intended on using the ENC for another purpose, but perhaps not now.
-
@ServiceXp Just added a new version of the box with LEDs and include button.
http://www.thingiverse.com/thing:483676 -
@ServiceXp Just added a new version of the box with LEDs and include button.
http://www.thingiverse.com/thing:483676 -
@ServiceXp Just added a new version of the box with LEDs and include button.
http://www.thingiverse.com/thing:483676 -
@ServiceXp Just added a new version of the box with LEDs and include button.
http://www.thingiverse.com/thing:483676