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. $8 Lamp (Outlet) "Smart Plug" Module

$8 Lamp (Outlet) "Smart Plug" Module

Scheduled Pinned Locked Moved My Project
109 Posts 34 Posters 97.5k Views 13 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.
  • Z Offline
    Z Offline
    znikos
    wrote on last edited by
    #2

    Very nice job!

    But don't forget the earth wire on the plug! it's very important for security reason if your lamp (or anythings else) is metallic!!!!

    1 Reply Last reply
    0
    • petewillP petewill

      Hi All,

      I created a second "Smart Plug" and thought I'd make a how to video this time. I have found them very useful for controlling various devices around the house. It's long but hopefully will be good for everyone including those not too familiar with MySensors. I know when I was first starting out I had little to no experience with any of this stuff and it was hard to piece it all together.

      http://youtu.be/oNpMDN4QqD8

      Here is the parts list (most of this stuff can be obtained from the my sensors store so don't forget to support them!)

      • 1 Gang Outlet Box
      • Outlet
      • Computer power cord or extension cord
      • Old cell phone charger or some other 5v power supply
      • Items from MySensors Store http://www.mysensors.org/store/
      • 22-24 gauge wire or similar (network cord)
      • Female Pin Header Connector Strip
      • Prototype Universal Printed Circuit Board
      • NRF24L01 Radio
      • Arduino Pro Mini
      • Capacitors (10uf and .1uf)
      • 3.3v voltage regulator
      • Female Dupont cables

      Here is a wiring diagram for the 3.3v regulator:
      Voltage Regulator Schematic.png

      0_1467849909161_Fritzing Smart Outlet.png

      Here is the code I used. I made a few customizations but the example "Relay Actuator" code can be used as well.
      https://codebender.cc/sketch:72358

      *edited to add wiring diagram

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

      @petewill Well Done!! Another Great Help Video!

      RJ_Make

      1 Reply Last reply
      0
      • petewillP Offline
        petewillP Offline
        petewill
        Admin
        wrote on last edited by
        #4

        @znikos Yeah, I did connect it to the outlet but maybe I forgot to mention it? Oops...

        Thanks @ServiceXp!

        My "How To" home automation video channel: https://www.youtube.com/channel/UCq_Evyh5PQALx4m4CQuxqkA

        1 Reply Last reply
        0
        • blaceyB Offline
          blaceyB Offline
          blacey
          Admin
          wrote on last edited by
          #5

          Sweet! :)

          1 Reply Last reply
          0
          • N Offline
            N Offline
            NotYetRated
            wrote on last edited by
            #6

            Very nice video! Thanks!

            1 Reply Last reply
            0
            • gigiG Offline
              gigiG Offline
              gigi
              wrote on last edited by
              #7

              Nice project!!!

              Vera lite - mysensors Ethernet gateway - AirWik sensor - Relay Module

              1 Reply Last reply
              0
              • D Offline
                D Offline
                Dean
                wrote on last edited by
                #8

                Thanks for sharing your video! I just finished watching it and I feel like I just learned more in that time than I have in months! If you can't tell, I am a bit of a visual learner :-) It was really helpful to be able to watch the whole project come together from beginning to end.

                petewillP 1 Reply Last reply
                0
                • D Dean

                  Thanks for sharing your video! I just finished watching it and I feel like I just learned more in that time than I have in months! If you can't tell, I am a bit of a visual learner :-) It was really helpful to be able to watch the whole project come together from beginning to end.

                  petewillP Offline
                  petewillP Offline
                  petewill
                  Admin
                  wrote on last edited by
                  #9

                  @Dean glad it could help! That is exactly why I made it like that. I know it will be too long for some people but I remember it was difficult for me to piece together all the steps when I was first starting.

                  My "How To" home automation video channel: https://www.youtube.com/channel/UCq_Evyh5PQALx4m4CQuxqkA

                  1 Reply Last reply
                  0
                  • FrancoisF Offline
                    FrancoisF Offline
                    Francois
                    wrote on last edited by
                    #10

                    @petewill Great video when are you planning in doing the power monitoring for this project?

                    1 Reply Last reply
                    0
                    • hekH Offline
                      hekH Offline
                      hek
                      Admin
                      wrote on last edited by
                      #11

                      Excellent @petewill.

                      Your video has been added to relay build page and in the news section.

                      Great work!

                      1 Reply Last reply
                      0
                      • petewillP Offline
                        petewillP Offline
                        petewill
                        Admin
                        wrote on last edited by
                        #12

                        @Francois great question! To be honest, it's on the list but not very high. I have a few other projects I wanted to do and hopefully create videos for.

                        @hek Thanks! You have created something awesome and I am excited to give back just a little when I can. Thanks for all you've done (and continue to do)!!

                        My "How To" home automation video channel: https://www.youtube.com/channel/UCq_Evyh5PQALx4m4CQuxqkA

                        1 Reply Last reply
                        0
                        • J Offline
                          J Offline
                          johnr
                          wrote on last edited by
                          #13

                          Nice project.

                          I will build some plugs myself, but I would like to exclude the charger, we should be able to power the arduino directly from the ac plug.

                          I am thinking to use something like this

                          https://www.elfa.se/elfa3~tr_en/elfa/init.do?item=69-065-19&toc=19413

                          What do you think about it?

                          tbowmoT 1 Reply Last reply
                          0
                          • J johnr

                            Nice project.

                            I will build some plugs myself, but I would like to exclude the charger, we should be able to power the arduino directly from the ac plug.

                            I am thinking to use something like this

                            https://www.elfa.se/elfa3~tr_en/elfa/init.do?item=69-065-19&toc=19413

                            What do you think about it?

                            tbowmoT Offline
                            tbowmoT Offline
                            tbowmo
                            Admin
                            wrote on last edited by
                            #14

                            @johnr said:

                            Nice project.

                            I will build some plugs myself, but I would like to exclude the charger, we should be able to power the arduino directly from the ac plug.

                            I am thinking to use something like this

                            https://www.elfa.se/elfa3~tr_en/elfa/init.do?item=69-065-19&toc=19413

                            What do you think about it?

                            That looks like an "charger" just in another package :) in my opinion it's a bit over the top, with a 10W power supply, to a device that uses arround 0,5W (0.1mA @ 5V) in peaks.

                            / Thomas

                            1 Reply Last reply
                            0
                            • J Offline
                              J Offline
                              johnr
                              wrote on last edited by johnr
                              #15

                              Hi,

                              Sorry I Think I expressed myself to short and incorrect on my way to work.

                              I really like this Project. My personal problem is that when you have many sensors, sooner or later you run out of old chargers ;)

                              Therefore for the relay (wallplug) it would be nice to find a small ac/dc power supply, which is easy to integrate into the breadboard/pcb.

                              The Meanwell that I linked to i also availible in 5w, but personally I had some problems in the past, with the current consumption of the relays, using sub wall-warts. This is why I am thinking 10w.

                              Mean well have nice quality but pricing is quite high. Would be nice to find an alternative with enough quality that you can trust that it wont burst into flames.

                              Edit: Mybe this tread is the correct one to discuss ac/dc converters. http://forum.mysensors.org/topic/687/230v-power-supply-to-arduino

                              RJ_MakeR 1 Reply Last reply
                              0
                              • J johnr

                                Hi,

                                Sorry I Think I expressed myself to short and incorrect on my way to work.

                                I really like this Project. My personal problem is that when you have many sensors, sooner or later you run out of old chargers ;)

                                Therefore for the relay (wallplug) it would be nice to find a small ac/dc power supply, which is easy to integrate into the breadboard/pcb.

                                The Meanwell that I linked to i also availible in 5w, but personally I had some problems in the past, with the current consumption of the relays, using sub wall-warts. This is why I am thinking 10w.

                                Mean well have nice quality but pricing is quite high. Would be nice to find an alternative with enough quality that you can trust that it wont burst into flames.

                                Edit: Mybe this tread is the correct one to discuss ac/dc converters. http://forum.mysensors.org/topic/687/230v-power-supply-to-arduino

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

                                @johnr It doesn't look like that series has any temperature protection??

                                RJ_Make

                                1 Reply Last reply
                                0
                                • J Offline
                                  J Offline
                                  johnr
                                  wrote on last edited by
                                  #17

                                  servicexp, no I guess it have only over current protection.

                                  I am going to test a smaller 5w converter. MW irm-05-5 which I was able to get for a ok price through work. It has also smaller physical dimensions.

                                  petewillP 1 Reply Last reply
                                  0
                                  • J johnr

                                    servicexp, no I guess it have only over current protection.

                                    I am going to test a smaller 5w converter. MW irm-05-5 which I was able to get for a ok price through work. It has also smaller physical dimensions.

                                    petewillP Offline
                                    petewillP Offline
                                    petewill
                                    Admin
                                    wrote on last edited by
                                    #18

                                    @johnr said:

                                    servicexp, no I guess it have only over current protection.

                                    I am going to test a smaller 5w converter. MW irm-05-5 which I was able to get for a ok price through work. It has also smaller physical dimensions.

                                    Nice, let us know how it works! I also find I run out of chargers. Thankfully I can get them from work occasionally when people recycle their old phone chargers.

                                    My "How To" home automation video channel: https://www.youtube.com/channel/UCq_Evyh5PQALx4m4CQuxqkA

                                    BulldogLowellB 1 Reply Last reply
                                    0
                                    • petewillP petewill

                                      @johnr said:

                                      servicexp, no I guess it have only over current protection.

                                      I am going to test a smaller 5w converter. MW irm-05-5 which I was able to get for a ok price through work. It has also smaller physical dimensions.

                                      Nice, let us know how it works! I also find I run out of chargers. Thankfully I can get them from work occasionally when people recycle their old phone chargers.

                                      BulldogLowellB Offline
                                      BulldogLowellB Offline
                                      BulldogLowell
                                      Contest Winner
                                      wrote on last edited by
                                      #19

                                      @petewill

                                      Or hotel lost and found...

                                      1 Reply Last reply
                                      0
                                      • petewillP Offline
                                        petewillP Offline
                                        petewill
                                        Admin
                                        wrote on last edited by
                                        #20

                                        @BulldogLowell yeah, good idea! I wonder if electronics stores may have them too. I know Best Buy has a electronics recycling program. Maybe they get them there too? I just got a fresh supply from work so I should be good for a little while :)

                                        My "How To" home automation video channel: https://www.youtube.com/channel/UCq_Evyh5PQALx4m4CQuxqkA

                                        1 Reply Last reply
                                        0
                                        • Mohsin HassanM Offline
                                          Mohsin HassanM Offline
                                          Mohsin Hassan
                                          wrote on last edited by
                                          #21

                                          Hey Hi. Awesome project.
                                          Just a quick though, could i just a Pro mini 5V and skip the whole voltage regulator part? or would that need some additional changes to the project?

                                          Thank :+1:

                                          petewillP 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