Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Hardware
  3. Custom made ethernet gateway based on atmega128

Custom made ethernet gateway based on atmega128

Scheduled Pinned Locked Moved Hardware
39 Posts 6 Posters 22.0k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • axillentA axillent

    @epierre not me, @hek made

    I'm using a standard sketch from 1.4.1 version of the Mysensors library
    what i'm going to do is to add flexibility for multi-gateway setup

    AnticimexA Offline
    AnticimexA Offline
    Anticimex
    Contest Winner
    wrote on last edited by
    #6

    @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?

    Do you feel secure today? No? Start requiring some signatures and feel better tomorrow ;)

    axillentA 1 Reply Last reply
    0
    • AnticimexA Anticimex

      @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?

      axillentA Offline
      axillentA Offline
      axillent
      Mod
      wrote on last edited by
      #7

      @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

      sense and drive

      1 Reply Last reply
      0
      • axillentA axillent

        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 ENC8J60

        IMG_2057.JPG IMG_2058.JPG IMG_2059.JPG

        to use atmega128A a have to adjust Arduino configuration using some presets from the Internet.
        currently I'm running a standard Ethernet Gateway 1.4.1

        The 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.

        AnticimexA Offline
        AnticimexA Offline
        Anticimex
        Contest Winner
        wrote on last edited by
        #8

        @axillent
        Ah, I see. It makes sense that the routing logic updates are to the controller(s) in that case. I like it. Especially since nothing prevents existing gateways to be added to this topology without modification :)

        Do you feel secure today? No? Start requiring some signatures and feel better tomorrow ;)

        1 Reply Last reply
        0
        • axillentA Offline
          axillentA Offline
          axillent
          Mod
          wrote on last edited by
          #9

          it got been print-cased)

          IMG_2066.JPG IMG_2073.JPG IMG_2084.JPG

          this is in progress the development of gateway #2
          IMG_2085.JPG

          sense and drive

          1 Reply Last reply
          1
          • axillentA Offline
            axillentA Offline
            axillent
            Mod
            wrote on last edited by
            #10

            instant made PCB is ready to be soldered

            IMG_2087.JPG

            sense and drive

            1 Reply Last reply
            0
            • M Offline
              M Offline
              marceloaqno
              Code Contributor
              wrote on last edited by
              #11

              Great Job! What are you using for the power supply?

              axillentA 1 Reply Last reply
              0
              • M marceloaqno

                Great Job! What are you using for the power supply?

                axillentA Offline
                axillentA Offline
                axillent
                Mod
                wrote on last edited by axillent
                #12

                @celonunes thanks!

                on the photo you can see a black square part, it is a transformer
                after transformer i have a bridge rectifier, one step-down based on MP2359 to get +5V
                and other step-down base on NCP1529 to get 3.3V from the +5V

                sense and drive

                1 Reply Last reply
                0
                • axillentA Offline
                  axillentA Offline
                  axillent
                  Mod
                  wrote on last edited by
                  #13

                  the schematics
                  MySensors.GW.atmega128-01.jpeg

                  sense and drive

                  RJ_MakeR 1 Reply Last reply
                  1
                  • axillentA axillent

                    the schematics
                    MySensors.GW.atmega128-01.jpeg

                    RJ_MakeR Offline
                    RJ_MakeR Offline
                    RJ_Make
                    Hero Member
                    wrote on last edited by
                    #14

                    @axillent I just noticed 2 push buttons in the schematics? Is one a reset?

                    RJ_Make

                    axillentA 1 Reply Last reply
                    0
                    • RJ_MakeR RJ_Make

                      @axillent I just noticed 2 push buttons in the schematics? Is one a reset?

                      axillentA Offline
                      axillentA Offline
                      axillent
                      Mod
                      wrote on last edited by
                      #15

                      @ServiceXp atmega128 provides 53 I/O pins, I had to use at least some of them)))

                      I have no exact application for both buttons but probably will use them somehow in extended version of the Ethernet Gateway

                      sense and drive

                      1 Reply Last reply
                      0
                      • epierreE Offline
                        epierreE Offline
                        epierre
                        Hero Member
                        wrote on last edited by
                        #16

                        why not use a photon ? it is $19 and already has the wifi ?

                        z-wave - Vera -> Domoticz
                        rfx - Domoticz <- MyDomoAtHome <- Imperihome
                        mysensors -> mysensors-gw -> Domoticz

                        axillentA 1 Reply Last reply
                        0
                        • epierreE epierre

                          why not use a photon ? it is $19 and already has the wifi ?

                          axillentA Offline
                          axillentA Offline
                          axillent
                          Mod
                          wrote on last edited by axillent
                          #17

                          @epierre cortex is a nice thing but currently not supported by Mysensors. Do you want to add the support?

                          we are looking for the gateway based on ESP8266, it is just $4 board including WIFI and powerful MCU

                          sense and drive

                          1 Reply Last reply
                          0
                          • epierreE Offline
                            epierreE Offline
                            epierre
                            Hero Member
                            wrote on last edited by
                            #18

                            @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 ?

                            z-wave - Vera -> Domoticz
                            rfx - Domoticz <- MyDomoAtHome <- Imperihome
                            mysensors -> mysensors-gw -> Domoticz

                            axillentA 1 Reply Last reply
                            0
                            • epierreE epierre

                              @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 ?

                              axillentA Offline
                              axillentA Offline
                              axillent
                              Mod
                              wrote on last edited by
                              #19

                              @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 here

                              also 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

                              sense and drive

                              1 Reply Last reply
                              0
                              • epierreE Offline
                                epierreE Offline
                                epierre
                                Hero Member
                                wrote on last edited by
                                #20

                                @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.

                                z-wave - Vera -> Domoticz
                                rfx - Domoticz <- MyDomoAtHome <- Imperihome
                                mysensors -> mysensors-gw -> Domoticz

                                AnticimexA 1 Reply Last reply
                                0
                                • axillentA Offline
                                  axillentA Offline
                                  axillent
                                  Mod
                                  wrote on last edited by
                                  #21

                                  I got an idea to improve my gateway by adding 433MHz receiver
                                  I'm succeeded by adding it into the same dimension

                                  As discussed with @hek it will be other version of EthernetGateway sketch able to handle both NRF24 and RF433 reciever

                                  Just a small change to schematic
                                  MySensors.GW.atmega128-01 combined schema.jpeg

                                  sense and drive

                                  1 Reply Last reply
                                  0
                                  • epierreE epierre

                                    @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.

                                    AnticimexA Offline
                                    AnticimexA Offline
                                    Anticimex
                                    Contest Winner
                                    wrote on last edited by
                                    #22

                                    @epierre About security within rf24 we are close. I have implemented and verified HMAC-SHA256 signing. I just need some more time to implement support for a pure software-alternative to the ATSHA204 as well and my "offering" will be complete. Check the security thread (I will post my update there once finished).

                                    Do you feel secure today? No? Start requiring some signatures and feel better tomorrow ;)

                                    1 Reply Last reply
                                    0
                                    • epierreE Offline
                                      epierreE Offline
                                      epierre
                                      Hero Member
                                      wrote on last edited by
                                      #23

                                      @Anticimex This is good news, that would make us a bit safer... next step will be two ways SSL encryption ;-)

                                      z-wave - Vera -> Domoticz
                                      rfx - Domoticz <- MyDomoAtHome <- Imperihome
                                      mysensors -> mysensors-gw -> Domoticz

                                      AnticimexA 1 Reply Last reply
                                      0
                                      • epierreE epierre

                                        @Anticimex This is good news, that would make us a bit safer... next step will be two ways SSL encryption ;-)

                                        AnticimexA Offline
                                        AnticimexA Offline
                                        Anticimex
                                        Contest Winner
                                        wrote on last edited by
                                        #24

                                        @epierre ha! Well, whoever wants encryption, feel free to do it :) I see no need so I'm skipping that though. I am fine with somebody potentially reading the sensor values and instructions I transmit. What concerns me is if somebody could fool my system and inject their own commands. But with my signing, I challenge anybody to try ;) (and I publish full sources)

                                        Do you feel secure today? No? Start requiring some signatures and feel better tomorrow ;)

                                        1 Reply Last reply
                                        0
                                        • axillentA Offline
                                          axillentA Offline
                                          axillent
                                          Mod
                                          wrote on last edited by
                                          #25

                                          I made a version with RF433 receiver, I'm able to fit it into the same size PCB & same size box

                                          will work on the new code to support RF433 sensors. The idea is to use ID=254 for the single node which will holds all RF433 sensors as it's children. I will need to manage a special inclusion for RF433 sensors. I have two buttons and 3 leds. This probably will be used to select & indicate sensor type during inclusion. Sensor type and child ID will be stored in gateway EEPROM. For the controller sensors will behave as regular motions / fire / door / water leakage / etc. sensors

                                          I have all this sensors connected to simple GSM alarm system. The advantage to connect the, to mysensors is a reuse. All sensors will be working simultaneously with alarm and mysensors

                                          IMG_2145.JPG

                                          sense and drive

                                          RJ_MakeR 1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          13

                                          Online

                                          11.7k

                                          Users

                                          11.2k

                                          Topics

                                          113.1k

                                          Posts


                                          Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • MySensors
                                          • OpenHardware.io
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular