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.
Finised and working great.
|Qty||Value||Device||Package||Parts||Description||MF||MPN||Aliexpress or Ebay link|
|1||W5100 Ethernet Module||Ebay: New! Keyestudio ARDUINO Electronic Blocks W5100 Ethern...|
|1||Arduino Nano||Ebay: Mini USB Nano V3.0 ATmega328P 5V 16M Micro-controller ...|
|1||Aluminium Case||Ebay: Aluminum PCB instrument Box Enclosure Case Project ele...|
|1||Le33AZ 5 to 3.3v||Ebay: 10 PCS LE33A TO-92 LE33 Very low drop voltage regulato...|
|Alot||Wires||Ebay: 40pcs Dupont Wire Color Jumper Cable 2.54mm 1P-1P Fema...|
|1||NRF24L01+PA+LNA Antenna version||Ebay: NRF24L01+PA+LNA SMA Antenna Wireless Transceiver commu...|
|1||Prototype PCB||Ebay: 10PCS Double Side Prototype PCB Tinned Universal Bread...|
|1||headers male||Ebay: 10PCS 40Pin 2.54mm Single Row Straight Male Pin Header...|