Announcement

Collapse
No announcement yet.

Hardware mods to Sonoff Wifi Basic

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Hardware mods to Sonoff Wifi Basic

    Just a post relating to what I have done to the SonOff basic WiFi device and planning to do for multiple purpose use.


    Low voltage SonOff basic Wifi device:


    1 - relay modification for 120 VAC to Low voltage switching - cut traces on main board
    2 - soldered pins for JTAG and GPIO and 5VDC and Ground. Here added another 5VDC and ground pin (2 of each)
    3 - 7 wires out plus use of 2 terminals built in.
    4 - hot melt glued main SonOff board to case as I had broken the button off and fixed it because of the loosey goosey main board.
    5 - wires out will be going to a pc style terminal mount on the case.
    6 - PIR and 1wire sensor will be glued to top lid of mini case.

    Click image for larger version

Name:	mods1.jpg
Views:	537
Size:	72.5 KB
ID:	1237862
    Found all of this stuff at All Electronics dot com. From this place adds will be more than $10. If I piece it together from Ebay might be able to do this for less than $5.
    Last edited by Pete; August 2, 2018, 07:04 AM.
    - Pete

    Auto mator
    Homeseer 3 Pro - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e 64 bit Intel Haswell CPU 16Gb
    Homeseer Zee2 (Lite) - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e - CherryTrail x5-Z8350 BeeLink 4Gb BT3 Pro
    HS4 Lite - Ubuntu 22.04 / Lenovo Tiny M900 / 32Gb Ram

    HS4 Pro - V4.1.18.1 - Ubuntu 22.04 / Lenova Tiny M900 / 32Gb Ram
    HSTouch on Intel tabletop tablets (Jogglers) - Asus AIO - Windows 11

    X10, UPB, Zigbee, ZWave and Wifi MQTT automation-Tasmota-Espurna. OmniPro 2, Russound zoned audio, Alexa, Cheaper RFID, W800 and Home Assistant

    #2
    I have seen good reviews for the little microwave radar sensors for presence detection. May be preferred over the PIR. Andries reviewed several in his YouTube video

    https://www.youtube.com/watch?v=9WiJJgIi3W0&vl=en.

    Comment


      #3
      Thank you Michael.

      Watching / listening to video while typing this message. Very impressive. Might connect one of these to the Sonoff versus using that little PIR.

      A couple of years ago purchased a "kit" of sensors for use with the Arduino. Thinking these are included in the kit.

      Today for enabling daylight in the garage (using LED very bright lamps on the ceiling) the garage door / regular door wired sensors work the best versus the outdoor wired PIR which really is OK in the winter but not at all OK in the summer. That said you cannot get in to the garage unless you open a door.

      currently garage has legacy:

      1 - wired PIR
      2 - wire open close wired GDO sensors and regular door sensors
      3 - wired to alarm panel GDO switch
      4 - POE IPHD cam wanting to change lens to fisheye.
      5 - RFID - receiver is in attic and automobiles each have 12 VDC tags.

      Tinkering with Sonoff to replicate wired stuff there in garage.

      If the radar sensor works with a small footprint over the car area then I could maybe sense when a car is parked in the garage (also using RFID 12VDC low voltage tags in the overhead dome light areas which do work fine).

      Have switched the in house PIR's to combo PIR / Microwave sensors. They used to be expensive and now are dirt cheap.

      Currently have always had false triggers with the outdoor / front porch PIR...wondering if I switched over to a combo sensor over the front door it would work better outside (hot or cold weather).
      Last edited by Pete; July 21, 2018, 01:17 PM.
      - Pete

      Auto mator
      Homeseer 3 Pro - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e 64 bit Intel Haswell CPU 16Gb
      Homeseer Zee2 (Lite) - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e - CherryTrail x5-Z8350 BeeLink 4Gb BT3 Pro
      HS4 Lite - Ubuntu 22.04 / Lenovo Tiny M900 / 32Gb Ram

      HS4 Pro - V4.1.18.1 - Ubuntu 22.04 / Lenova Tiny M900 / 32Gb Ram
      HSTouch on Intel tabletop tablets (Jogglers) - Asus AIO - Windows 11

      X10, UPB, Zigbee, ZWave and Wifi MQTT automation-Tasmota-Espurna. OmniPro 2, Russound zoned audio, Alexa, Cheaper RFID, W800 and Home Assistant

      Comment


        #4
        I forget if the microwave radar sensors would detect metal object. Typically what I have seen for detecting a parked car is a ultrasonic distance measuring sensor. In one case it served the function of door up (shortest distance), door down and car parked (middle distance) and door down and car not parked (longest distance).

        Comment


          #5
          Yeah the Sonoff device will be mounted over and next to the GDO facing down.

          Using a 2X4 wood for wheel stops - primitive and works. (have used the tennis ball on a string but never the radar thing with led lights).
          What would be fun would be to install a VFR thingy in the garage. I like the way it works when you fly (even though I am bad with colors).

          Found Arduino microwave sensors on Ebay for $3 with free shipping. These are all 5VDC ones.

          Click image for larger version

Name:	image_70072.jpg
Views:	486
Size:	37.5 KB
ID:	1198397

          Is there a 5VDC tap somewhere on the board?

          Looking at the ITEAD schematic all voltages are 3.3 VDC.

          Found these microwave sensors for around $1 free shipping...tiny things

          Click image for larger version

Name:	image_70073.jpg
Views:	512
Size:	69.5 KB
ID:	1198398

          The kit that I have has one of the ultrasonic dual speaker thingy's.
          Last edited by Pete; August 2, 2018, 07:05 AM.
          - Pete

          Auto mator
          Homeseer 3 Pro - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e 64 bit Intel Haswell CPU 16Gb
          Homeseer Zee2 (Lite) - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e - CherryTrail x5-Z8350 BeeLink 4Gb BT3 Pro
          HS4 Lite - Ubuntu 22.04 / Lenovo Tiny M900 / 32Gb Ram

          HS4 Pro - V4.1.18.1 - Ubuntu 22.04 / Lenova Tiny M900 / 32Gb Ram
          HSTouch on Intel tabletop tablets (Jogglers) - Asus AIO - Windows 11

          X10, UPB, Zigbee, ZWave and Wifi MQTT automation-Tasmota-Espurna. OmniPro 2, Russound zoned audio, Alexa, Cheaper RFID, W800 and Home Assistant

          Comment


            #6
            I have a picture of the 5VDC pickoff in the mcsMQTT manual for the Water Filter where the water counter needed more than the 3.3v. It is not regulated, but I measured it around 5V. It is in Section 13.3 of the manual. There are also level converters that go for under $2 to get from 3.3 to 5 (and the other way around).

            Comment


              #7
              Thank you Michael.

              So will I be fine without a regulator? The Arduino kit did include regulator tiny boards.

              Thinking of using Pin #7 here in the drawing as it doesn't appear to be connected to anything. I will put a post there to the other side of the board for 5VDC. Pin's there are for 3.3 VDC and Ground right now.

              Click image for larger version

Name:	image_70082.jpg
Views:	504
Size:	338.1 KB
ID:	1198402
              Last edited by Pete; August 2, 2018, 07:05 AM.
              - Pete

              Auto mator
              Homeseer 3 Pro - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e 64 bit Intel Haswell CPU 16Gb
              Homeseer Zee2 (Lite) - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e - CherryTrail x5-Z8350 BeeLink 4Gb BT3 Pro
              HS4 Lite - Ubuntu 22.04 / Lenovo Tiny M900 / 32Gb Ram

              HS4 Pro - V4.1.18.1 - Ubuntu 22.04 / Lenova Tiny M900 / 32Gb Ram
              HSTouch on Intel tabletop tablets (Jogglers) - Asus AIO - Windows 11

              X10, UPB, Zigbee, ZWave and Wifi MQTT automation-Tasmota-Espurna. OmniPro 2, Russound zoned audio, Alexa, Cheaper RFID, W800 and Home Assistant

              Comment


                #8
                So will I be fine without a regulator?
                I guess it depends upon the circuit that is using 5V. I did not look at it with a scope to see how clean it was. The other consideration is how much current is going to be drawn at 5V.

                Comment


                  #9
                  Thank you Michael.

                  Wired 5VDC tap to new NC post today on two Sonoff devices. Using a few drops of hot melt glue for the wire run to the NC post.

                  Click image for larger version

Name:	image_70105.jpg
Views:	492
Size:	107.7 KB
ID:	1198416
                  Last edited by Pete; August 2, 2018, 07:06 AM.
                  - Pete

                  Auto mator
                  Homeseer 3 Pro - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e 64 bit Intel Haswell CPU 16Gb
                  Homeseer Zee2 (Lite) - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e - CherryTrail x5-Z8350 BeeLink 4Gb BT3 Pro
                  HS4 Lite - Ubuntu 22.04 / Lenovo Tiny M900 / 32Gb Ram

                  HS4 Pro - V4.1.18.1 - Ubuntu 22.04 / Lenova Tiny M900 / 32Gb Ram
                  HSTouch on Intel tabletop tablets (Jogglers) - Asus AIO - Windows 11

                  X10, UPB, Zigbee, ZWave and Wifi MQTT automation-Tasmota-Espurna. OmniPro 2, Russound zoned audio, Alexa, Cheaper RFID, W800 and Home Assistant

                  Comment


                    #10
                    Found a small DS18B20 sensor with LED in my Arduino kit.

                    I was thinking maybe of removing the posts and gluing it on the cover of the Sonoff. Tested it to work fine.

                    Temperature reads will probably be better outside of the case than in the case.

                    I was going to try with thinner wire and wire wrapping the leads to the base of the soldered on posts on the Sonoff board.

                    Click image for larger version

Name:	image_70113.jpg
Views:	458
Size:	65.7 KB
ID:	1198418
                    Last edited by Pete; August 2, 2018, 07:06 AM.
                    - Pete

                    Auto mator
                    Homeseer 3 Pro - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e 64 bit Intel Haswell CPU 16Gb
                    Homeseer Zee2 (Lite) - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e - CherryTrail x5-Z8350 BeeLink 4Gb BT3 Pro
                    HS4 Lite - Ubuntu 22.04 / Lenovo Tiny M900 / 32Gb Ram

                    HS4 Pro - V4.1.18.1 - Ubuntu 22.04 / Lenova Tiny M900 / 32Gb Ram
                    HSTouch on Intel tabletop tablets (Jogglers) - Asus AIO - Windows 11

                    X10, UPB, Zigbee, ZWave and Wifi MQTT automation-Tasmota-Espurna. OmniPro 2, Russound zoned audio, Alexa, Cheaper RFID, W800 and Home Assistant

                    Comment


                      #11
                      I have drilled a hole in the DS10A motion sensor case to insert a DS18B20. This was done primarily as a stealthy way to add a temperature measurement. These are battery powered so no heat issue. I suspect, as you stated, that the heat from the Sonoff will likely bias the temperature reading. A little insulating material between the mount and the case may help with the temperature isolation.

                      Comment


                        #12
                        Thank you Michael.

                        Yes used regular Elmers glue for the hole in the cover this time versus using the glue gun.

                        Adding terminals next.

                        Super gluing these on and soldering to posts going inside of case to jumper wires.

                        This will keep everything to the device with no external wires to the switches.
                        - Pete

                        Auto mator
                        Homeseer 3 Pro - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e 64 bit Intel Haswell CPU 16Gb
                        Homeseer Zee2 (Lite) - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e - CherryTrail x5-Z8350 BeeLink 4Gb BT3 Pro
                        HS4 Lite - Ubuntu 22.04 / Lenovo Tiny M900 / 32Gb Ram

                        HS4 Pro - V4.1.18.1 - Ubuntu 22.04 / Lenova Tiny M900 / 32Gb Ram
                        HSTouch on Intel tabletop tablets (Jogglers) - Asus AIO - Windows 11

                        X10, UPB, Zigbee, ZWave and Wifi MQTT automation-Tasmota-Espurna. OmniPro 2, Russound zoned audio, Alexa, Cheaper RFID, W800 and Home Assistant

                        Comment


                          #13
                          Continuing here with the GDO SonOff WiFi basic modifications. Here did not tap in to the existing reed maxisized switches connected to the OmniPro 2 panel. Rather cleaned the reed side of the switches and connected tiny stick on reed switches and added wires to the top of the GDO. Testing the connections using wires coming out of the WiFi basic device waiting on terminal posts that I have ordered. The console now shows one sensor closed and one opened and status of Garage door just fine. Noticed too that the RSSI is around 50% and working fine.

                          09:20:45 MQT: /GarageDoor1/STATE = {"Time":"2018-07-28T09:20:45", "Uptime":0 0, "Vcc":3.499, "Wifi":{"AP":2, "SSId":"WAP", "RSSI":60, "IPAddress":"192.168.244.220", "APMac":"00:00:00:XX:XX:XX"}}

                          09:20:45 MQT: /GarageDoor1/Door1 = CLOSED

                          09:20:45 MQT: /GarageDoor1/SENSOR = {"Time":"2018-07-28T09:20:45", "Switch1":"Off", "Switch2":"On", "DS18x20":{"DS1":{"Type":"DS18B20", "Address":"282F515C04000080", "Temperature":99.1}}, "TempUnit":"F"}

                          09:22:58 HTP: Main Menu
                          09:23:03 HTP: Console

                          Next steps is to configure an autonmous button switch for the GDO. The new GDO is using Security 2.0+ which uses the two wires for a signal rather than just a switch. Here wired up a remote simple button sold by Chamberlain for the switch part which is on Amazon for ~ $10.00
                          - Pete

                          Auto mator
                          Homeseer 3 Pro - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e 64 bit Intel Haswell CPU 16Gb
                          Homeseer Zee2 (Lite) - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e - CherryTrail x5-Z8350 BeeLink 4Gb BT3 Pro
                          HS4 Lite - Ubuntu 22.04 / Lenovo Tiny M900 / 32Gb Ram

                          HS4 Pro - V4.1.18.1 - Ubuntu 22.04 / Lenova Tiny M900 / 32Gb Ram
                          HSTouch on Intel tabletop tablets (Jogglers) - Asus AIO - Windows 11

                          X10, UPB, Zigbee, ZWave and Wifi MQTT automation-Tasmota-Espurna. OmniPro 2, Russound zoned audio, Alexa, Cheaper RFID, W800 and Home Assistant

                          Comment


                            #14
                            Noticed too that the time/date is a bit off when starting.

                            00:00:09 APP: (UTC) Sat Jul 28 17:25:53 2018
                            00:00:09 APP: (DST) Sun Mar 25 02:00:00 2018
                            00:00:09 APP: (STD) Sun Oct 28 03:00:00 2018

                            @Michael...

                            Is there a way to adjust the mcsTasmota firmware to show local time and date once it starts to chat?

                            I can do this (or used to be able to do this) using the console commands or http commands a while back.
                            - Pete

                            Auto mator
                            Homeseer 3 Pro - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e 64 bit Intel Haswell CPU 16Gb
                            Homeseer Zee2 (Lite) - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e - CherryTrail x5-Z8350 BeeLink 4Gb BT3 Pro
                            HS4 Lite - Ubuntu 22.04 / Lenovo Tiny M900 / 32Gb Ram

                            HS4 Pro - V4.1.18.1 - Ubuntu 22.04 / Lenova Tiny M900 / 32Gb Ram
                            HSTouch on Intel tabletop tablets (Jogglers) - Asus AIO - Windows 11

                            X10, UPB, Zigbee, ZWave and Wifi MQTT automation-Tasmota-Espurna. OmniPro 2, Russound zoned audio, Alexa, Cheaper RFID, W800 and Home Assistant

                            Comment


                              #15
                              I developed the firmware using GPIO14 and GPIO4 for the door sensors. There was much learning on Tasmota. Its flexibilty to handle so many devices made it hard to understand under the hood. It easily could be the case that I have code somewhere that assumes GPIO14 is for the door. Cant you swap the temperature sensor and door sensor pings being used in you wiring?

                              Comment

                              Working...
                              X