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. My Project
  3. Raspberry Pi2 + MQTT Gateway in one box!

Raspberry Pi2 + MQTT Gateway in one box!

Scheduled Pinned Locked Moved My Project
mqttraspberry pigateway
12 Posts 3 Posters 7.1k 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.
  • K Offline
    K Offline
    kunall
    wrote on last edited by kunall
    #1

    I decided to put my RPi and MQTT gateway in one box so made this. First time doing this, so it isnt that perfect. I will soon be adding LEDs to it too. :)

    IMAG0273.jpg
    IMAG0275.jpg

    1 Reply Last reply
    4
    • K Offline
      K Offline
      kunall
      wrote on last edited by
      #2

      Finished Product ! :satisfied:
      IMAG0283.jpg

      1 Reply Last reply
      0
      • gaduG Offline
        gaduG Offline
        gadu
        wrote on last edited by
        #3

        Great work!

        K 1 Reply Last reply
        0
        • gaduG gadu

          Great work!

          K Offline
          K Offline
          kunall
          wrote on last edited by
          #4

          @gadu Thanks!

          A 1 Reply Last reply
          0
          • K kunall

            @gadu Thanks!

            A Offline
            A Offline
            andriej
            wrote on last edited by
            #5

            @kunall do you encounter any problems with reading the values thru uart?
            do you reset your device using GPIO?

            :-)

            K 1 Reply Last reply
            0
            • A andriej

              @kunall do you encounter any problems with reading the values thru uart?
              do you reset your device using GPIO?

              K Offline
              K Offline
              kunall
              wrote on last edited by
              #6

              @andriej I have not encountered any issues and its working perfectly for past 2 days. Also i'm still looking into resetting Arduino via GPIO.. Please feel free to share recommends or any ideas. Meanwhile, I will be adding an external arduino reset switch on my ArduPi Gateway . :)

              1 Reply Last reply
              0
              • A Offline
                A Offline
                andriej
                wrote on last edited by
                #7

                I've just done resetting via GPIO myself - just can't share the code as I use RPi incompatible clone. :-)
                Anyway, its pretty easy. Connect transistor i.e. 2222A to GND of RPi and RST pin and also GND of Arduino.
                Each status "1" 'holds' the button and '0' releases.

                That got me very good redundancy - I can see hangup and reset after max 60-70 seconds. :-)

                :-)

                K 1 Reply Last reply
                0
                • A andriej

                  I've just done resetting via GPIO myself - just can't share the code as I use RPi incompatible clone. :-)
                  Anyway, its pretty easy. Connect transistor i.e. 2222A to GND of RPi and RST pin and also GND of Arduino.
                  Each status "1" 'holds' the button and '0' releases.

                  That got me very good redundancy - I can see hangup and reset after max 60-70 seconds. :-)

                  K Offline
                  K Offline
                  kunall
                  wrote on last edited by
                  #8

                  @andriej is there any link or tutorial on this? I'm fairly new so it would really help.

                  If I understand right, I can connect a transistor that you mentioned to rpi gpio and reset pin on arduino to achieve a rest when gateway is frozen? I'm correct?

                  1 Reply Last reply
                  0
                  • A Offline
                    A Offline
                    andriej
                    wrote on last edited by
                    #9

                    Yes, basically you need to google a little about 'how to reset arduino with button' and 'how to simulate push button on raspberry' ;-)
                    In general, RPi has a lot easier use of GPIO's than mine OrangePi.
                    You need to initiate selected GPIO PIN as "out", set it's value to 0.
                    Then (if I remember correct, so google to be sure) connect transistor:
                    colletor - to GND of RPi
                    base - to RPI GPIO pin with small resistor (I don't use it but just don't want to fry your RPi)
                    emiter - to reset button of arduino

                    Now, every time you set GPIO to '1' - it's the same as holding reset button on Arduino.
                    So, to reset it, you have to set value of GPIO to 1 for 1-2 seconds and 'release' button, by setting 0.

                    I use domoticz and script which checks 'last seen' values for 3 sensors which report maximum every minute.
                    If all of these 3 sensors have last seen time higher than 75 seconds I can be sure that gateway is frozen and then - voila - my script set's GPIO to reset gateway and everything is working as usual.

                    It already reset gateway twice during 2 days of work. :-)
                    And work flawlessly.

                    :-)

                    K 2 Replies Last reply
                    1
                    • A andriej

                      Yes, basically you need to google a little about 'how to reset arduino with button' and 'how to simulate push button on raspberry' ;-)
                      In general, RPi has a lot easier use of GPIO's than mine OrangePi.
                      You need to initiate selected GPIO PIN as "out", set it's value to 0.
                      Then (if I remember correct, so google to be sure) connect transistor:
                      colletor - to GND of RPi
                      base - to RPI GPIO pin with small resistor (I don't use it but just don't want to fry your RPi)
                      emiter - to reset button of arduino

                      Now, every time you set GPIO to '1' - it's the same as holding reset button on Arduino.
                      So, to reset it, you have to set value of GPIO to 1 for 1-2 seconds and 'release' button, by setting 0.

                      I use domoticz and script which checks 'last seen' values for 3 sensors which report maximum every minute.
                      If all of these 3 sensors have last seen time higher than 75 seconds I can be sure that gateway is frozen and then - voila - my script set's GPIO to reset gateway and everything is working as usual.

                      It already reset gateway twice during 2 days of work. :-)
                      And work flawlessly.

                      K Offline
                      K Offline
                      kunall
                      wrote on last edited by
                      #10

                      @andriej This is awesome! Thank you very much. Im going to try this. :)

                      1 Reply Last reply
                      0
                      • A andriej

                        Yes, basically you need to google a little about 'how to reset arduino with button' and 'how to simulate push button on raspberry' ;-)
                        In general, RPi has a lot easier use of GPIO's than mine OrangePi.
                        You need to initiate selected GPIO PIN as "out", set it's value to 0.
                        Then (if I remember correct, so google to be sure) connect transistor:
                        colletor - to GND of RPi
                        base - to RPI GPIO pin with small resistor (I don't use it but just don't want to fry your RPi)
                        emiter - to reset button of arduino

                        Now, every time you set GPIO to '1' - it's the same as holding reset button on Arduino.
                        So, to reset it, you have to set value of GPIO to 1 for 1-2 seconds and 'release' button, by setting 0.

                        I use domoticz and script which checks 'last seen' values for 3 sensors which report maximum every minute.
                        If all of these 3 sensors have last seen time higher than 75 seconds I can be sure that gateway is frozen and then - voila - my script set's GPIO to reset gateway and everything is working as usual.

                        It already reset gateway twice during 2 days of work. :-)
                        And work flawlessly.

                        K Offline
                        K Offline
                        kunall
                        wrote on last edited by
                        #11

                        @andriej I'm using OpenHab and I was wondering about domoticz. Many people seem to be using it. Have you used OpenHab? Do you like domoticz better?

                        A 1 Reply Last reply
                        0
                        • K kunall

                          @andriej I'm using OpenHab and I was wondering about domoticz. Many people seem to be using it. Have you used OpenHab? Do you like domoticz better?

                          A Offline
                          A Offline
                          andriej
                          wrote on last edited by
                          #12

                          @kunall the best recommendation against openhab for me was ugly interface and problems with running it (java). I was using domoticz since early version with own interface on arduino,now I've switched everything for MySensors.
                          It still lacks some functions but Inwait for further development as even programmers of domoticz start to use MyS hardware :-)

                          :-)

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


                          28

                          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