Custom made ethernet gateway based on atmega128
-
I need to have 4-5 ethernet gateways for my two installations (one for the apartment and one for the house)
for this I'm developing a custom hardware
it is a PCB with AC power supply, atmega128A, step-down for 5V (for atmega128), step-down for 3.3V (for radio and ENC28J60) ,
4 leds (powe, error, TX, RX), ISP connector, 3.5mm jack to connect Serial, connector for NRF24L01 and connector for ENC8J60to use atmega128A a have to adjust Arduino configuration using some presets from the Internet.
currently I'm running a standard Ethernet Gateway 1.4.1The plan is to add menu style configuration from the Serial connection for ethernet network parameters and for MySensors parameters.
The plan is to propose a patch to MySensors to support Gateway ID - this will add support to the project to have multiple gateways without need of a hack. Otherwise devices from different gateways will conflict on the air. -
I need to have 4-5 ethernet gateways for my two installations (one for the apartment and one for the house)
for this I'm developing a custom hardware
it is a PCB with AC power supply, atmega128A, step-down for 5V (for atmega128), step-down for 3.3V (for radio and ENC28J60) ,
4 leds (powe, error, TX, RX), ISP connector, 3.5mm jack to connect Serial, connector for NRF24L01 and connector for ENC8J60to use atmega128A a have to adjust Arduino configuration using some presets from the Internet.
currently I'm running a standard Ethernet Gateway 1.4.1The plan is to add menu style configuration from the Serial connection for ethernet network parameters and for MySensors parameters.
The plan is to propose a patch to MySensors to support Gateway ID - this will add support to the project to have multiple gateways without need of a hack. Otherwise devices from different gateways will conflict on the air. -
@ServiceXp thanks!
regular arduina with atmega328 on board is too limited in the size of programming memory for the powerful and configurable ethernet gateway. Especially in case of using ENC28J60
mega board is too big.
the advantage is to have compact and powerful design. It is even more important if you need a future design like this one http://forum.mysensors.org/topic/887/future-network-topology-for-discussion. With my multi-gateway installation I'm going to test this concept. This one on the photo is a prototype. As soon as it will succeeds I will made 3-4 more.
-
Hello,
Have you made mysensors compliant with ENC28J60 ?
-
@axillent
Nice. On the topic of flash usage of ethernet gateways, I also struggle with fitting signing support to an ethernet GW. I will eventually succeed, but it will leave virtually no room for other additions (at least with DEBUG enabled). So my question to you is: will you make your additions to the GW software (if any) switchable (if they add to the codesize)?
Or will you simply state that a Ethernet GW with "multi gw support" is not supported on a vanilla Arduino Nano? -
@axillent
Nice. On the topic of flash usage of ethernet gateways, I also struggle with fitting signing support to an ethernet GW. I will eventually succeed, but it will leave virtually no room for other additions (at least with DEBUG enabled). So my question to you is: will you make your additions to the GW software (if any) switchable (if they add to the codesize)?
Or will you simply state that a Ethernet GW with "multi gw support" is not supported on a vanilla Arduino Nano?@Anticimex as such multi-gateway do not requires code size increase but will need a hardcoding : IP, MAC, radio channel or BASE_ADDRSS. You have to use different parameters for different gateway nodes, Otherwise it will be a conflict on Air or on Ethernet
My list of additional futures will require more flash and atmega128 is very sufficient for this:
I plan a serial terminal with a configuration menu. It will work like BIOS on any PC. The "BIOS" will be activated by a button pressed during power on circle. By connecting a computer to the serial connector (I'm using audio 3.5mm stereo jack) you will be able to interact with the "BIOS" menu.. Menu will allow to:- switch between DHCP/no DHCP
- to see assigned IP
- to assign a MAC
- to assign an IP
- to set radio channel
- to set BASE_ADDRESS
- to display current configuration
- to test ethernet and radio
- to see statistics
- to switch ON/OFF serial debug
-
I need to have 4-5 ethernet gateways for my two installations (one for the apartment and one for the house)
for this I'm developing a custom hardware
it is a PCB with AC power supply, atmega128A, step-down for 5V (for atmega128), step-down for 3.3V (for radio and ENC28J60) ,
4 leds (powe, error, TX, RX), ISP connector, 3.5mm jack to connect Serial, connector for NRF24L01 and connector for ENC8J60to use atmega128A a have to adjust Arduino configuration using some presets from the Internet.
currently I'm running a standard Ethernet Gateway 1.4.1The plan is to add menu style configuration from the Serial connection for ethernet network parameters and for MySensors parameters.
The plan is to propose a patch to MySensors to support Gateway ID - this will add support to the project to have multiple gateways without need of a hack. Otherwise devices from different gateways will conflict on the air. -
Great Job! What are you using for the power supply?
-
Great Job! What are you using for the power supply?
-
@axillent I'm currently supporting my scripts on both arduino and spark.io to avoid everybody reinventing the wheel. Hopefully spark.io is more a hardware provider, meaning they design and implement hardware of their own they afterward sell, or sponsor through indiegogo. They also already have a could cum IFTTT already working.
Currently mysensors is too much linked to the vera although it is opening up. With a gateway that would be automatically wifi or wired, as you plan to do, that would change this.
I understand the approch for a cheap board, but I guess that you would need more components in you BOM that just the ESP8266 plus some soldering on a board ? (I don't speak of this nice russian transformer ;-) but that would kill many people in between just soldering, no ?
-
@axillent I'm currently supporting my scripts on both arduino and spark.io to avoid everybody reinventing the wheel. Hopefully spark.io is more a hardware provider, meaning they design and implement hardware of their own they afterward sell, or sponsor through indiegogo. They also already have a could cum IFTTT already working.
Currently mysensors is too much linked to the vera although it is opening up. With a gateway that would be automatically wifi or wired, as you plan to do, that would change this.
I understand the approch for a cheap board, but I guess that you would need more components in you BOM that just the ESP8266 plus some soldering on a board ? (I don't speak of this nice russian transformer ;-) but that would kill many people in between just soldering, no ?
@epierre nice value arduino provide is that you can do nice things with low entry barrier and without soldering
Mysensors is intend to use this value as much as possible."Solder or not solder" is a personal decision and mostly subject of the fan.
At least for me it is fan
as for device from this topic it is not share of the schematics, it is just share of a fan)
russian transformer is part of it (i have a german one but it is too weak for this particular application)as for ESP8266 - 4$ is the cost of a ready to use module. The only missing thing is radio, you will need to connect 5 wires to radio,
your BOM is simple - ESP module, nordic module and power supply
should be simple even without a special Mysensors board.
I see a good potential herealso I see a good potential on a future network topology discussed in a separate thread, I'm going to test myself an installation with multi hardware layer multi gateway MySensors network
-
@axillent which is something I actually do with all deversing into domoticz (vera, mysensors, spark core, webcam), and have an uniformized access through imperihome.
I'm very interrested about the wifi capacity if we cannot achieve some level of security within rf24.
