I recently build and updated my gateway for Mysensors to the new version 2.0 and wanted to share my experience and pictures if anyone in the future are going for the same build.
Also along the way I have been working with Mysensors i learned a couple of things i wanted to implement in the new gateway.
As i heard many times from petewill, and I totaly agree - build modular. I have learned that working with DIY you always want to enchance or exchange something, do something better and if you build everything so its easy to change parts it will help you alot in the future.
AWI showed some great tips with metalic cases, and I have also experience better radio performance using a metalic case. Don´t forget to ground the metalic case.
Using a nrf24l01+ with external power supply (or not powered from the arduino) to enhance range and staility.
Well, here we go:
I got a 100x100x43 cm aliminium case from ebay and here is my first tip - dont buy to small case! I was even thinking buying this case - well here is plenty with space... NOPE! (See pictures below). If you are going to build modular - expect it will take up some space.
I planned everything out and cut the case for ethernet jack, power in, leds and a on/off switch. Hot glue is great! I glued the ethernet module to the bottom of the case after adding som insulation tape between the module and the case.
Before adding all components to the case, do a breadboard layout first. Like always, it didnt work the first time - and after checking my radio I had to go for a different one - you will not regret it.
My first "module" is the leds, one 5v in pin, leds, resistors and 3 leds out for the RX/TX/ERR pins.
I screwed my power switch to the case, and soldered pins to the switch. Now i made my second module, a "power" pcb with 5V. 3.3V and GND pins. As you see in the last picture there isnt much room left after all wires are added.
I uploaded standard sketch from MySensors lib. I excluded unclusion button since i use Domoticz.
Wiring is the WizNET (W5100) Ethernet module and leds is from Advanced Gateway Options
Finised and working great.
Qty | Value | Device | Package | Parts | Description | MF | MPN | Aliexpress or Ebay link |
---|---|---|---|---|---|---|---|---|
1 | W5100 Ethernet Module | https://www.ebay.com/?icep_ff3=2&pub=5575069610&toolid=10001... | ||||||
1 | Arduino Nano | https://www.ebay.com/?icep_ff3=2&pub=5575069610&toolid=10001... | ||||||
1 | Aluminium Case | Ebay: http://www.ebay.com/itm/381489381542?_trksid=p2057872.... | ||||||
3 | Leds | |||||||
3 | 330ohm | Resistors | ||||||
1 | 10uF | Capacitor | ||||||
1 | 0,1uF | Capacitor | ||||||
1 | Le33AZ 5 to 3.3v | https://www.ebay.com/?icep_ff3=2&pub=5575069610&toolid=10001... | ||||||
Alot | Wires | https://www.ebay.com/?icep_ff3=2&pub=5575069610&toolid=10001... | ||||||
1 | NRF24L01+PA+LNA Antenna version | https://www.ebay.com/?icep_ff3=2&pub=5575069610&toolid=10001... | ||||||
1 | Prototype PCB | https://www.ebay.com/?icep_ff3=2&pub=5575069610&toolid=10001... | ||||||
1 | headers male | https://www.ebay.com/?icep_ff3=2&pub=5575069610&toolid=10001... |