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. In wall light switch node - Custom PCB

In wall light switch node - Custom PCB

Scheduled Pinned Locked Moved Hardware
custompcbinwallnodelight switchswitch
245 Posts 15 Posters 132.7k Views 23 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.
  • scalzS Offline
    scalzS Offline
    scalz
    Hardware Contributor
    wrote on last edited by
    #21

    for coincell, maybe you could add a capacitor near the coincell to absorb spike of power consumption..so the coincell would not discharge too fast with sudden spike ;)
    maybe 47u or 100u if you add few sensors in future...100u not very cheap..maybe through hole, there are some not too big.

    1 Reply Last reply
    0
    • m26872M m26872

      @samuel235
      Arduino Pro Mini should be your no1 reference. Schematics and Eagle files povided. There your can see the normal layout of Q1 e.g. It's the crystal/oscillator (with 22pF caps if you choose xtal) I don't know why Sensebender looks like it does.

      I haven't studied your design closely or know your intentions, but I don't know of any proven coin cell nRF designs, but I suppose you'll have it sleeping a lot.

      Sometimes it's good to breadboard prototypes if there're any hesistance.

      S Offline
      S Offline
      Samuel235
      Hardware Contributor
      wrote on last edited by
      #22

      @m26872 I have been looking at a nano i have on my desk while building these designs, and i didn't notice anything with Q1 hense why i asked about it on sensebender. However it is not of any interest to this project (to my knowledge), i just wanted to learn the use of a tran in this case.

      I will be sleeping the module quite a bit yeah, literally asleep all the time until someone presses the switch.

      @scalz I'll throw a 47u in there, this node shouldn't be used for any other sensor at any time to be honest, hence why i'm designing it from scratch to go into the socket.

      MySensors 2.1.1
      Controller - OpenHAB (Virtual Machine)
      Gateway - Arduino Mega MQTT Gateway W5100

      1 Reply Last reply
      0
      • S Offline
        S Offline
        Samuel235
        Hardware Contributor
        wrote on last edited by Samuel235
        #23

        Tonight i have finished updating my schematic to reflect some of your helpful inputs. Please, again, throw any comments you have regarding my layouts my way so i can further improve the board if needed. Upgrades i have done are:

        • Added Capacitors for the VCC lines.
        • Added proper pinout/layout for the FTDI header.
        • Added a Capacitor on the battery to stop any spikes of current draw.
        • Changed the double position screw terminals for a 4 position one.
        • Added a pull-up resistor and capacitor on reset pin for the FTDI uploads to be able to reset upon new sketch upload.

        Currently i still do not have a SPI header included. Would i be able to survive without one, could i do the sketch upload through the FTDI header at all?
        Once i finalize the overall board layout i will know what size i'm working with and IF i can fit a SPI header in, i will install one onto the board. However, because of the limiting space i may struggle on this.
        Sch2.jpg

        MySensors 2.1.1
        Controller - OpenHAB (Virtual Machine)
        Gateway - Arduino Mega MQTT Gateway W5100

        1 Reply Last reply
        0
        • m26872M Offline
          m26872M Offline
          m26872
          Hardware Contributor
          wrote on last edited by
          #24

          Looks proper. I think those two 47uF caps don't necessarily have to be two and can be placed anywhere between vcc and gnd, provided short low resistance traces etc.

          S 1 Reply Last reply
          0
          • m26872M m26872

            Looks proper. I think those two 47uF caps don't necessarily have to be two and can be placed anywhere between vcc and gnd, provided short low resistance traces etc.

            S Offline
            S Offline
            Samuel235
            Hardware Contributor
            wrote on last edited by
            #25

            @m26872 - Do you feel it would be perfectly fine to remove the Capacitor thats directly on the battery then?

            MySensors 2.1.1
            Controller - OpenHAB (Virtual Machine)
            Gateway - Arduino Mega MQTT Gateway W5100

            1 Reply Last reply
            0
            • m26872M Offline
              m26872M Offline
              m26872
              Hardware Contributor
              wrote on last edited by m26872
              #26

              Either you breadboard your design first or make it a flexible pcb design.

              Add footprint and make room for bigger or more caps just in case they'll be needed. The physical place shouldn't matter.

              Edit: Since someone will object to that last sentence if I don't clarify it .... Physical place of that 47uF near nRF could matter, but if so - it should be fixed with some small low ESR cap near it instead.

              S 1 Reply Last reply
              1
              • m26872M m26872

                Either you breadboard your design first or make it a flexible pcb design.

                Add footprint and make room for bigger or more caps just in case they'll be needed. The physical place shouldn't matter.

                Edit: Since someone will object to that last sentence if I don't clarify it .... Physical place of that 47uF near nRF could matter, but if so - it should be fixed with some small low ESR cap near it instead.

                S Offline
                S Offline
                Samuel235
                Hardware Contributor
                wrote on last edited by
                #27

                @m26872 So just to clarify, do i understand correctly that you're suggesting to remove the battery capacitor, keep the nRF cap in there and just allow a few VCC -> Capacitor -> GND dotted around the board to allow me to add more caps if needed?

                MySensors 2.1.1
                Controller - OpenHAB (Virtual Machine)
                Gateway - Arduino Mega MQTT Gateway W5100

                1 Reply Last reply
                0
                • m26872M Offline
                  m26872M Offline
                  m26872
                  Hardware Contributor
                  wrote on last edited by
                  #28

                  Ok. Leave the 47u near nRF as it is. Make the footprint for the other 47u one, but make it fit even a 100uF if there's room for it. Only populate if needed. And yes open footprints for 0.1uF caps dotted around is not bad either.

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    Samuel235
                    Hardware Contributor
                    wrote on last edited by
                    #29

                    Awesome! I have that all sketched out now. For the passive components i have gone with a size of 0603 SMD. Would this be the cheapest? Or would 0805 be for its popularity? Cost of pense isn't really an issue for me however i would like to have a really cheap source price for this board as another positive point for it, but again its not vital.

                    MySensors 2.1.1
                    Controller - OpenHAB (Virtual Machine)
                    Gateway - Arduino Mega MQTT Gateway W5100

                    1 Reply Last reply
                    0
                    • scalzS Offline
                      scalzS Offline
                      scalz
                      Hardware Contributor
                      wrote on last edited by scalz
                      #30

                      @samuel235: cool.

                      • I think you need to learn some basic electronics basics guide, it could help you in future to understand because if you want to draw schem, it would be useful, positive feedback ;)
                        I started to learn elec and uc stuff some years ago(10+), so when I say I am not electronician, it is a small lie :) I am not graduated in this field ;) but my dad, elec engineer, teached me a lot. I am lucky. Now you can have lot infos at sparkfun, adafruit, arduino ....and you are choosing the fun/interesting way, learning learning and learning.
                      • like @m26872 said, it is better, and I like it too when I can, to have footprints.
                      • for the batt cap, I told you this because of the cr2032 comment..it can prevent the coin cell to discharge too fast. coin cell don't like spikes, this is one of the reason for people choosing alkaline. but you can do lot of stuff with coin cell too. the cap is optional of course.
                      • If you can have avrspi, better, but if no space. like you said upload bootloader, and then...if you have to reupload it later, just unsolder nrf, not big thing.
                      • for 0805 or 0603, this is not a question about component cost here...it is much more a question of your soldering skills and available space of course.
                        I have no problem with 0603, I handsolder some vqfn sensors (very hard stuff...), but what I would advice for noob, a step by step curve. Try 0805 first, then move harder stuff. You will see that you must be careful when soldering atmel tqfp. If all ok, then...pcb are cheap now ;) I hope you have good iron solder, thin wire....
                      S 1 Reply Last reply
                      1
                      • m26872M Offline
                        m26872M Offline
                        m26872
                        Hardware Contributor
                        wrote on last edited by
                        #31

                        ... and flux.

                        1 Reply Last reply
                        2
                        • scalzS scalz

                          @samuel235: cool.

                          • I think you need to learn some basic electronics basics guide, it could help you in future to understand because if you want to draw schem, it would be useful, positive feedback ;)
                            I started to learn elec and uc stuff some years ago(10+), so when I say I am not electronician, it is a small lie :) I am not graduated in this field ;) but my dad, elec engineer, teached me a lot. I am lucky. Now you can have lot infos at sparkfun, adafruit, arduino ....and you are choosing the fun/interesting way, learning learning and learning.
                          • like @m26872 said, it is better, and I like it too when I can, to have footprints.
                          • for the batt cap, I told you this because of the cr2032 comment..it can prevent the coin cell to discharge too fast. coin cell don't like spikes, this is one of the reason for people choosing alkaline. but you can do lot of stuff with coin cell too. the cap is optional of course.
                          • If you can have avrspi, better, but if no space. like you said upload bootloader, and then...if you have to reupload it later, just unsolder nrf, not big thing.
                          • for 0805 or 0603, this is not a question about component cost here...it is much more a question of your soldering skills and available space of course.
                            I have no problem with 0603, I handsolder some vqfn sensors (very hard stuff...), but what I would advice for noob, a step by step curve. Try 0805 first, then move harder stuff. You will see that you must be careful when soldering atmel tqfp. If all ok, then...pcb are cheap now ;) I hope you have good iron solder, thin wire....
                          S Offline
                          S Offline
                          Samuel235
                          Hardware Contributor
                          wrote on last edited by
                          #32

                          @scalz - This is partially why i'm choosing to do all of this myself, I'm learning electronics while i go. Honestly, its why i have created this topic/thread so i can learn and other can tune in to learn a thing or two as well. I have that Cap wired into the battery if i need it, i will more than likely just put it in anyway to be on the safe side. I think I'm going straight into 0603 SMD tbh, I have a pretty steady hand and have some decent soldering experience. I may need to get myself a expensive/quality soldering iron, i have a cheap(ish) temperature regulated one at the moment. I'm getting some thin solder on order with the parts when i finally order it all.

                          MySensors 2.1.1
                          Controller - OpenHAB (Virtual Machine)
                          Gateway - Arduino Mega MQTT Gateway W5100

                          1 Reply Last reply
                          0
                          • scalzS Offline
                            scalzS Offline
                            scalz
                            Hardware Contributor
                            wrote on last edited by scalz
                            #33

                            cool. so, for soldering, from my own experience, but I will start to use reflow oven, what I can advise you is:

                            • find a 0.2mm tip for your iron solder. I have a great old weller. but I know someone who have bought a ts100 recently and he is very happy with it! you have large choice to power it, and we can imagine to use lipo with it for ponctual mobile soldering, far better than butane gaz iron solder!. crazy price, quality I don't know but I am very tempted to buy one...
                              http://www.banggood.com/fr/TS100-Digital-OLED-Programable-Interface-DC-5525-Soldering-Iron-Station-Built-in-STM32-Chip-p-984214.html
                            • a magnifier is a minimum I think. a cheap one is a good start. maybe a 3rd hand..
                            • thin solder. I use 0.3 but 0.5mm can work I think. Choose good quality for thin solder. some aliexpress thin solder are very bad.
                            • flux of course. very helpful. I prefer gel or liquid. I don't like aliexpress pen.
                            • desolder wick. very helpful too.
                            • tweezers like this for instance:
                              http://fr.aliexpress.com/item/6pcs-Set-VETUS-Tweezers-Anti-static-ESD-10-15-Tweezers-Set-for-Soldering-Welding-Station/32265054449.html?spm=2114.06010108.3.112.yI04vt&ws_ab_test=searchweb201556_7_79_78_77_82_80_62,searchweb201644_0,searchweb201560_4
                            • I use isopropil alcool (rubbing alcool I think) to clean my board after soldering..
                            • solder paste, optional, but helpful sometimes and funny to try
                            • lots of soldering howto on youtube
                            S 1 Reply Last reply
                            0
                            • scalzS scalz

                              cool. so, for soldering, from my own experience, but I will start to use reflow oven, what I can advise you is:

                              • find a 0.2mm tip for your iron solder. I have a great old weller. but I know someone who have bought a ts100 recently and he is very happy with it! you have large choice to power it, and we can imagine to use lipo with it for ponctual mobile soldering, far better than butane gaz iron solder!. crazy price, quality I don't know but I am very tempted to buy one...
                                http://www.banggood.com/fr/TS100-Digital-OLED-Programable-Interface-DC-5525-Soldering-Iron-Station-Built-in-STM32-Chip-p-984214.html
                              • a magnifier is a minimum I think. a cheap one is a good start. maybe a 3rd hand..
                              • thin solder. I use 0.3 but 0.5mm can work I think. Choose good quality for thin solder. some aliexpress thin solder are very bad.
                              • flux of course. very helpful. I prefer gel or liquid. I don't like aliexpress pen.
                              • desolder wick. very helpful too.
                              • tweezers like this for instance:
                                http://fr.aliexpress.com/item/6pcs-Set-VETUS-Tweezers-Anti-static-ESD-10-15-Tweezers-Set-for-Soldering-Welding-Station/32265054449.html?spm=2114.06010108.3.112.yI04vt&ws_ab_test=searchweb201556_7_79_78_77_82_80_62,searchweb201644_0,searchweb201560_4
                              • I use isopropil alcool (rubbing alcool I think) to clean my board after soldering..
                              • solder paste, optional, but helpful sometimes and funny to try
                              • lots of soldering howto on youtube
                              S Offline
                              S Offline
                              Samuel235
                              Hardware Contributor
                              wrote on last edited by
                              #34

                              @scalz Pretty cool list of things there! I'm going to use the soldering iron i have at the moment and see how that stands up to the task. I will be ordering a magnifier, some thin solder, a few tweezers, desolder wick and some alcohol too. I have been doing some pretty basic soldering jobs where i didn't need to pay close attention as much as this in terms of little things like cleaning up the board etc etc. I have soldered and replaced laptop motherboard power connectors and such, completed the PCB Board kits for little projects but nothing as serious as this before. So now is the time my soldering skills are going to be put to the test, and i honestly can't wait! I'm working on my board layout as we speak and i will get this uploaded soon as i am done for a update to the project.

                              MySensors 2.1.1
                              Controller - OpenHAB (Virtual Machine)
                              Gateway - Arduino Mega MQTT Gateway W5100

                              1 Reply Last reply
                              0
                              • S Offline
                                S Offline
                                Samuel235
                                Hardware Contributor
                                wrote on last edited by Samuel235
                                #35

                                I'm very tempted to have some jumper headers or even a dip switch on the board to allow for sketch uploads with the nRF intact. I'm hoping to get some sizings done tomorrow and if i have the room i may have the RF module on a header/socket so i can remove it while uploading a swetch. If not i will have to go with the idea of jumpers or try to rearrange the board to allow a SPI header. I shall see what i can do, upload to this build log and see what you guys think. Again, with shared input we could possibly create a much better suited board then.

                                Whats your opinions to the jumper pins across the SPI connection on the nRF module to effectivly disconnect the RF while we upload the sketch upgrades?

                                MySensors 2.1.1
                                Controller - OpenHAB (Virtual Machine)
                                Gateway - Arduino Mega MQTT Gateway W5100

                                1 Reply Last reply
                                0
                                • GertSandersG Offline
                                  GertSandersG Offline
                                  GertSanders
                                  Hardware Contributor
                                  wrote on last edited by
                                  #36

                                  C6 should be in parallel to the battery. In the schematic you show, the C6 would disconnect the battery from Vcc (from DC point of view). If you have Vcc - C6 - battery- GND, then no DC current will flow from Vcc to GND. Is should be:
                                  Vcc -+- battery -+- GND
                                  Vcc -+- C6 -+- GND

                                  S 1 Reply Last reply
                                  0
                                  • GertSandersG GertSanders

                                    C6 should be in parallel to the battery. In the schematic you show, the C6 would disconnect the battery from Vcc (from DC point of view). If you have Vcc - C6 - battery- GND, then no DC current will flow from Vcc to GND. Is should be:
                                    Vcc -+- battery -+- GND
                                    Vcc -+- C6 -+- GND

                                    S Offline
                                    S Offline
                                    Samuel235
                                    Hardware Contributor
                                    wrote on last edited by
                                    #37

                                    @GertSanders I should remove C6 from the battery to make VCC - BATT - GND. Then put it like i have done with C5, as VCC - C6 - GND. Have i understood you correctly?

                                    MySensors 2.1.1
                                    Controller - OpenHAB (Virtual Machine)
                                    Gateway - Arduino Mega MQTT Gateway W5100

                                    1 Reply Last reply
                                    0
                                    • scalzS Offline
                                      scalzS Offline
                                      scalz
                                      Hardware Contributor
                                      wrote on last edited by
                                      #38

                                      C6 // Batt
                                      one side of C6 to VCC/Vbat
                                      other side of C6 to GND

                                      S 1 Reply Last reply
                                      0
                                      • scalzS scalz

                                        C6 // Batt
                                        one side of C6 to VCC/Vbat
                                        other side of C6 to GND

                                        S Offline
                                        S Offline
                                        Samuel235
                                        Hardware Contributor
                                        wrote on last edited by Samuel235
                                        #39

                                        @scalz said:

                                        C6 // Batt
                                        one side of C6 to VCC/Vbat
                                        other side of C6 to GND

                                        Thank you for confirming that Scalz, i'll get that updated tonight :)

                                        MySensors 2.1.1
                                        Controller - OpenHAB (Virtual Machine)
                                        Gateway - Arduino Mega MQTT Gateway W5100

                                        1 Reply Last reply
                                        0
                                        • GertSandersG Offline
                                          GertSandersG Offline
                                          GertSanders
                                          Hardware Contributor
                                          wrote on last edited by
                                          #40

                                          @samuel235 you understand correctly :-)

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


                                          16

                                          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