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.6k 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 scalz
    #90

    I think you may add some net labels at RST, DTR. So it is less ambiguous to read ;)
    Here a basic sparkfun arduino mini schematic so you can check :)
    https://cdn.sparkfun.com/assets/0/7/5/5/1/51eec304ce395f104c000000.png

    S 1 Reply Last reply
    0
    • scalzS scalz

      I think you may add some net labels at RST, DTR. So it is less ambiguous to read ;)
      Here a basic sparkfun arduino mini schematic so you can check :)
      https://cdn.sparkfun.com/assets/0/7/5/5/1/51eec304ce395f104c000000.png

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

      @scalz - Labels have been added to make it easier to understand.

      However, this is exactly how I wired Rev1, it didn't work until I hacked together the reset pin. I'm getting even more confused at to why my Rev1 didn't work now, I thought that by bypassing/altering the connections with some wires and it working would indicate that I had wired Rev1 incorrectly, I used the link you sent to me as reference while I was making Rev1.

      However, i have done as you have suggested and attached images below. I've also attached my eagle files in case you wanted to trace any routes you can't see clearly on the images.

      1_1453481153159_SchRev2.png 0_1453481153159_BrdRev2.png

      0_1453481212181_HominiSwitchNode.zip

      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
        #92

        Looks good now except that AVR ISP (JP1) pin 5 should connect straight to RESET and not to DTR.

        S 1 Reply Last reply
        0
        • m26872M m26872

          Looks good now except that AVR ISP (JP1) pin 5 should connect straight to RESET and not to DTR.

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

          @m26872 - Does the FTDI need to go to RESET or DTR? I'm feeling DTR because all the FTDI programmers i'm using is labeled with DTR and not RESET, am i correct in assuming this?

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

          m26872M 1 Reply Last reply
          0
          • S Samuel235

            @m26872 - Does the FTDI need to go to RESET or DTR? I'm feeling DTR because all the FTDI programmers i'm using is labeled with DTR and not RESET, am i correct in assuming this?

            m26872M Offline
            m26872M Offline
            m26872
            Hardware Contributor
            wrote on last edited by
            #94

            @samuel235 Yes.

            S 1 Reply Last reply
            0
            • m26872M m26872

              @samuel235 Yes.

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

              @m26872 - Perfect. Thank you for your assistance, I really appreciate it! I'll get these ordered tonight hopefully and then keep looking at the circuitry for my RESET and DTR line to memorize it and work out why its so hard to get into my brain xD.

              Just one last confirm, since I'm not that confident with myself at the moment regarding this RESET line, if you don't mind.
              0_1453498434576_BrdRev2.png

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

              m26872M 1 Reply Last reply
              0
              • S Samuel235

                @m26872 - Perfect. Thank you for your assistance, I really appreciate it! I'll get these ordered tonight hopefully and then keep looking at the circuitry for my RESET and DTR line to memorize it and work out why its so hard to get into my brain xD.

                Just one last confirm, since I'm not that confident with myself at the moment regarding this RESET line, if you don't mind.
                0_1453498434576_BrdRev2.png

                m26872M Offline
                m26872M Offline
                m26872
                Hardware Contributor
                wrote on last edited by
                #96

                @samuel235 Reset and Dtr routing looks correct, but you still have DTR silkscreen label next to AVR ISP.

                S 1 Reply Last reply
                0
                • m26872M m26872

                  @samuel235 Reset and Dtr routing looks correct, but you still have DTR silkscreen label next to AVR ISP.

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

                  @m26872 said:

                  @samuel235 Reset and Dtr routing looks correct, but you still have DTR silkscreen label next to AVR ISP.

                  Indeed I do, the board itself isn't finished yet, I just wanted you to clarify the wiring was correct. Time to tidy it up, finish the annotating and get it finalized. However, thank you for pointing it out to me (Shows you're actually paying some attention to this). Thank you, yet again. The level of support and time you dedicate to helping others on here is outstanding. It is most certainly noticed!

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

                  m26872M 1 Reply Last reply
                  0
                  • S Samuel235

                    @m26872 said:

                    @samuel235 Reset and Dtr routing looks correct, but you still have DTR silkscreen label next to AVR ISP.

                    Indeed I do, the board itself isn't finished yet, I just wanted you to clarify the wiring was correct. Time to tidy it up, finish the annotating and get it finalized. However, thank you for pointing it out to me (Shows you're actually paying some attention to this). Thank you, yet again. The level of support and time you dedicate to helping others on here is outstanding. It is most certainly noticed!

                    m26872M Offline
                    m26872M Offline
                    m26872
                    Hardware Contributor
                    wrote on last edited by
                    #98

                    @samuel235 You're very welcome. We'll all benefit when you succeed.

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

                      UPDATE!

                      Revision 2 boards have now been submitted for manufacturing. Standard shipping used, so expecting within the next 23 days. This is going to pain me!

                      On the side note, I've enrolled for Open University and will be studying now for around 4 years. I'm doing a Computing and IT degree to follow on from my existing IT Qualifications (Microsoft and CompTIA). I do hope to incorperate this community and the projects i take on with you guys into my studying. I also do not expect this to effect the time and effort I'm able to spend with you guys here and developing our projects together.

                      I will update you ASAP, when these boards get here :)

                      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
                        #100

                        great :)

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

                          I will upload this device to Openhardware.io as soon as i have it built up and the basic functionality working. Hopefully then it will become much easier for the starting MySensor budding builders to understand and follow. I may do a 'basic build instructions' that can be followed on how to get this working, including putting the hardware together.

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

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

                            Board Revision2 got delivered today and obviously i set about populating the board instantly!

                            1_1455360799849_3.JPG 0_1455360799849_1.JPG

                            I have the board all completed and now I'm attempting to burn the bootloader on. Before i go ahead and screw my IC up (I read if you use the wrong fuse reading for the timing of the clock you can't Re-burn anything else to it) i would like some advice. I've detected the current/pre-set fuse readings through AVRDUDESS using a clock speed of 93.75KHz, so i know the connection between my computer and the board is working. The readings for the fuses are below:
                            0_1455360751069_2.JPG

                            I'm currently using the fuse calculator here to workout the fuses needed. I'm also looking at Maniac's blog post here as he made a very low power module. The only thing i would question about his version/board is that his brownout is set to 2.7v. I've checked the nRF module and the lowest voltage it can go is 1.9, so maybe i should bring the BoD reading down even more or even disable it all together (I plan on reading the battery voltage from this module anyway).

                            The below settings for the fuses are my own workings out with the fuse calculator linked above, I'm doubting myself here, i'm in territory that i'm not comfortable with so I'm more than likely making a mistake here but what do you think? The BoD is set to 1.8 here:

                            Low: 0x62 | High: 0xD9 | Extended: 0xFE

                            Once i have confirmed a fuse setting, Do I edit them into the board.txt config of Maniac's blog post or do I use that of @tekka's?

                            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
                              #103

                              I have a very brief guide here, under 'Software'. There are some links to other guides as well. I think you use (42, DE, 07/FF) together with that linked bootloader (important).

                              I also think Maniacs guide is a little old. You should get a a lot lower power by using MySensors lib and other some other tricks and settings.

                              S 1 Reply Last reply
                              0
                              • m26872M m26872

                                I have a very brief guide here, under 'Software'. There are some links to other guides as well. I think you use (42, DE, 07/FF) together with that linked bootloader (important).

                                I also think Maniacs guide is a little old. You should get a a lot lower power by using MySensors lib and other some other tricks and settings.

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

                                @m26872 From having a quick look at your guide, you bring your clock speed right down to 1MHz, am i correct in thinking this? Do you have any timing issues at all, is the node still quick enough to respond to switching and sensor detecting or is there a delay in the signal sending?

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

                                m26872M 1 Reply Last reply
                                0
                                • S Samuel235

                                  @m26872 From having a quick look at your guide, you bring your clock speed right down to 1MHz, am i correct in thinking this? Do you have any timing issues at all, is the node still quick enough to respond to switching and sensor detecting or is there a delay in the signal sending?

                                  m26872M Offline
                                  m26872M Offline
                                  m26872
                                  Hardware Contributor
                                  wrote on last edited by
                                  #105

                                  @samuel235 Yes, it's working. But you can't use some things like DS18B20s and DHTs at these low frequencies. Si7021 etc are used instead. Button switches and other simple things are exellent applications.

                                  S 1 Reply Last reply
                                  0
                                  • m26872M m26872

                                    @samuel235 Yes, it's working. But you can't use some things like DS18B20s and DHTs at these low frequencies. Si7021 etc are used instead. Button switches and other simple things are exellent applications.

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

                                    @m26872 - Well, I was planning on maybe having a temp sensor in there at some point, but not this revision. So if i went without that function at the moment it wouldn't be the end of the world, i would just revise even more for the next revision. I'm presuming that you have taken it to 1MHz for power saving or?

                                    This is the configuration i'm thinking:

                                    ######## settings for 8Mhz internal clock

                                    proMYSBL8.name=ATmega328 internal 8Mhz with MYSBootloader
                                    proMYSBL8.upload.tool=avrdude
                                    proMYSBL8.upload.protocol=arduino
                                    proMYSBL8.upload.maximum_size=30720
                                    proMYSBL8.upload.maximum_data_size=2048
                                    proMYSBL8.upload.speed=57600
                                    proMYSBL8.bootloader.tool=avrdude
                                    proMYSBL8.bootloader.low_fuses=0x42
                                    proMYSBL8.bootloader.high_fuses=0xDE
                                    proMYSBL8.bootloader.extended_fuses=0xFF
                                    proMYSBL8.bootloader.unlock_bits=0x3F
                                    proMYSBL8.bootloader.lock_bits=0x3F
                                    proMYSBL8.bootloader.file=MySensors/MYSBootloader.hex
                                    proMYSBL8.build.mcu=atmega328p
                                    proMYSBL8.build.f_cpu=8000000L
                                    proMYSBL8.build.board=AVR_UNO
                                    proMYSBL8.build.core=arduino
                                    proMYSBL8.build.variant=standard

                                    That would remove the brownout, enable SPI, and put the clock to 8MHz. What is your thoughts on this config?

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

                                    m26872M 1 Reply Last reply
                                    0
                                    • S Samuel235

                                      @m26872 - Well, I was planning on maybe having a temp sensor in there at some point, but not this revision. So if i went without that function at the moment it wouldn't be the end of the world, i would just revise even more for the next revision. I'm presuming that you have taken it to 1MHz for power saving or?

                                      This is the configuration i'm thinking:

                                      ######## settings for 8Mhz internal clock

                                      proMYSBL8.name=ATmega328 internal 8Mhz with MYSBootloader
                                      proMYSBL8.upload.tool=avrdude
                                      proMYSBL8.upload.protocol=arduino
                                      proMYSBL8.upload.maximum_size=30720
                                      proMYSBL8.upload.maximum_data_size=2048
                                      proMYSBL8.upload.speed=57600
                                      proMYSBL8.bootloader.tool=avrdude
                                      proMYSBL8.bootloader.low_fuses=0x42
                                      proMYSBL8.bootloader.high_fuses=0xDE
                                      proMYSBL8.bootloader.extended_fuses=0xFF
                                      proMYSBL8.bootloader.unlock_bits=0x3F
                                      proMYSBL8.bootloader.lock_bits=0x3F
                                      proMYSBL8.bootloader.file=MySensors/MYSBootloader.hex
                                      proMYSBL8.build.mcu=atmega328p
                                      proMYSBL8.build.f_cpu=8000000L
                                      proMYSBL8.build.board=AVR_UNO
                                      proMYSBL8.build.core=arduino
                                      proMYSBL8.build.variant=standard

                                      That would remove the brownout, enable SPI, and put the clock to 8MHz. What is your thoughts on this config?

                                      m26872M Offline
                                      m26872M Offline
                                      m26872
                                      Hardware Contributor
                                      wrote on last edited by
                                      #107

                                      @samuel235

                                      • You'll need low MHz for ot to work when battery runs out and voltage decreases.
                                      • Those fuses are for 1MHz, not for 8MHz.
                                      • I've never used MYSBootloader. Someone else has to confirm the settings if you use this.
                                      S 1 Reply Last reply
                                      0
                                      • m26872M m26872

                                        @samuel235

                                        • You'll need low MHz for ot to work when battery runs out and voltage decreases.
                                        • Those fuses are for 1MHz, not for 8MHz.
                                        • I've never used MYSBootloader. Someone else has to confirm the settings if you use this.
                                        S Offline
                                        S Offline
                                        Samuel235
                                        Hardware Contributor
                                        wrote on last edited by
                                        #108

                                        @m26872

                                        Lower clock speed would last through the low power phase of the battery. Obviously, thank you for pointing that out! However, I'm looking at Maniacs battery testing graph and the battery is stable down to around 2.4v for around 150 hours, then it will rapidly drop off to 0v, so I'm thinking "is the lower clock speed really worth the extra 10 hours of use?".

                                        The fuses, although I am going off of what you suggested, i entered them into my fuse calculator and its showing up at 8MHz, with no modification needed to the speed.... I'm a little confused at this part as you have now said that those fuses are for 1MHz.

                                        I'm now wondering if its worth using MYSBootloader or the one you used, I can see that you used this and programmed through the Arduino IDE, from your post you said you're more comfortable with using the Arduino IDE (Which i am too, but can adapt if needed).

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

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

                                          @samuel235: don't worry about 1mhz...there is no big difference 1Mhz vs 8Mhz at 3V in deepsleep mode. In deepsleep mode, at 3V 8Mhz internal rc, you can get 140nA. So you can't have such interesting diff.
                                          In other hand, if node is wake up, you are in mA range, and here it can be interesting to play between clock and voltage ;) you can do it on the fly in sketch and it's good to know that for timing things, atmel clock and voltage are linked.
                                          So i would suggest you to stay with internal rc 8Mhz, BOD 1.8V and MYSBootloader. If I remember right it should be ok. Other thing good to know, you can disable BOD=0V when in deepsleepmode (this is done like this in lib I think), but it's not a good practice to disable it when wake up. Keep 1.8V limit, it can prevent some bugs..All is described in datasheet ;)

                                          Another thing good to know, as I see lot of peope estimation for coincell...there are lot of chance that you can't get the full coincell capacity, depending on the application, the use. A common "prevision is to plan 80% of its capacity. It's due to the rate of discharge of battery and coincell's one is small..
                                          There are lot of others resources on the subjects but here few links :
                                          https://www.dmcinfo.com/Portals/0/Blog Files/High pulse drain impact on CR2032 coin cell battery capacity.pdf
                                          http://www.embedded.com/electronics-blogs/break-points/4429960/How-much-energy-can-you-really-get-from-a-coin-cell-
                                          http://www.ti.com/lit/wp/swra349/swra349.pdf

                                          S m26872M 2 Replies Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          11

                                          Online

                                          11.7k

                                          Users

                                          11.2k

                                          Topics

                                          113.0k

                                          Posts


                                          Copyright 2019 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