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. New nrf24l01+ smd

New nrf24l01+ smd

Scheduled Pinned Locked Moved Hardware
39 Posts 9 Posters 16.7k Views 9 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.
  • GertSandersG GertSanders

    @AWI No problem, this board is making its way to me via the mail now (was shipped from OSH Park last wednesday).

    I'm hoping to test it coming week.

    This board one is a one-trick pony. It is based on @m26872's concept of a very narrow board, but in my case I just need it to handle 2 magnetic switches. So pull-up resistors and connection for two contacts (normally closed) is provided (on the pins that allow hardware wake up from power down), and nothing else. No crystal, just minimal power decoupling and a led. No FTDI adapter or ISP. And of course only connection for the SMD version of the NRF24.

    0_1454851622651_Screen Shot 2016-02-07 at 14.22.03.png

    0_1454851679505_Screen Shot 2016-02-07 at 14.21.41.png

    While that was being made at OSH Park I prepared a second design, but this one is still in movement (not ordered yet), measurements are in mm:

    0_1454852947623_Screen Shot 2016-02-07 at 14.47.56.png

    It is certainly not a Sensebender, as it lacks ATSHA204A, SI7021 and SPIFlash, but it does have FTDI interface and optional pull-ups on D2 and D3. It is my first try at SMD, with 0805 size components (I need to be able to hand solder them).

    The objective is to make a working sensor board as flat as possible. At the moment is is even smaller then the CR2032 batteryholder I was planning to use. A possibility is that I go for a two board approach using this "flat node" and a second board to hold a CR1632 (a holder for this smaller battery is in the image above, Keystone Technologies model 3013).

    To be continued ...

    alexsh1A Offline
    alexsh1A Offline
    alexsh1
    wrote on last edited by
    #15

    @GertSanders said:

    This board one is a one-trick pony. It is based on @m26872's concept of a very narrow board, but in my case I just need it to handle 2 magnetic switches.

    This is what I was looking for as I need a small board for a reed switch. Please keep us posted about your testing

    GertSandersG 1 Reply Last reply
    0
    • M Offline
      M Offline
      meddie
      wrote on last edited by
      #16

      i like the first layou. Its just pretty narrow. ideal for housing in a cable duct. if there will be an atsha204, a flash modul and a battery sensor this would be the perfect node.

      1 Reply Last reply
      0
      • alexsh1A Offline
        alexsh1A Offline
        alexsh1
        wrote on last edited by alexsh1
        #17

        Let a fiddly job begin...0_1454940850479_image.jpeg

        YveauxY AWIA 2 Replies Last reply
        0
        • alexsh1A alexsh1

          Let a fiddly job begin...0_1454940850479_image.jpeg

          YveauxY Offline
          YveauxY Offline
          Yveaux
          Mod
          wrote on last edited by
          #18

          @alexsh1 those pliers seem to be the wrong size.... :smirk:

          http://yveaux.blogspot.nl

          alexsh1A 1 Reply Last reply
          0
          • alexsh1A Offline
            alexsh1A Offline
            alexsh1
            wrote on last edited by
            #19

            @Yveaux yeah, I know - I placed an order today for a new set of cutters on Amazon

            1 Reply Last reply
            0
            • alexsh1A alexsh1

              Let a fiddly job begin...0_1454940850479_image.jpeg

              AWIA Offline
              AWIA Offline
              AWI
              Hero Member
              wrote on last edited by
              #20

              @alexsh1 don't mount it in the wrong direction...

              alexsh1A 1 Reply Last reply
              0
              • AWIA AWI

                @alexsh1 don't mount it in the wrong direction...

                alexsh1A Offline
                alexsh1A Offline
                alexsh1
                wrote on last edited by
                #21

                @AWI you mean nrf24l01+? I have to check what the best fit is given I'll have a few wires

                AWIA 1 Reply Last reply
                0
                • alexsh1A alexsh1

                  @AWI you mean nrf24l01+? I have to check what the best fit is given I'll have a few wires

                  AWIA Offline
                  AWIA Offline
                  AWI
                  Hero Member
                  wrote on last edited by
                  #22

                  @alexsh1 this is what I did. Mount it in the same direction as the original

                  alexsh1A 1 Reply Last reply
                  0
                  • YveauxY Yveaux

                    @alexsh1 those pliers seem to be the wrong size.... :smirk:

                    alexsh1A Offline
                    alexsh1A Offline
                    alexsh1
                    wrote on last edited by
                    #23

                    @Yveaux are these much better now? ;)))

                    0_1455024726133_image.jpeg

                    YveauxY 1 Reply Last reply
                    0
                    • AWIA AWI

                      @alexsh1 this is what I did. Mount it in the same direction as the original

                      alexsh1A Offline
                      alexsh1A Offline
                      alexsh1
                      wrote on last edited by
                      #24

                      @AWI Now I see what you mean! Thanks for heads up - really appreciated it. This is the first time I'm dealing with this transceiver in SMD

                      1 Reply Last reply
                      0
                      • alexsh1A alexsh1

                        @Yveaux are these much better now? ;)))

                        0_1455024726133_image.jpeg

                        YveauxY Offline
                        YveauxY Offline
                        Yveaux
                        Mod
                        wrote on last edited by
                        #25

                        @alexsh1 much less of a challenge :satisfied:

                        http://yveaux.blogspot.nl

                        1 Reply Last reply
                        0
                        • alexsh1A alexsh1

                          @GertSanders said:

                          This board one is a one-trick pony. It is based on @m26872's concept of a very narrow board, but in my case I just need it to handle 2 magnetic switches.

                          This is what I was looking for as I need a small board for a reed switch. Please keep us posted about your testing

                          GertSandersG Offline
                          GertSandersG Offline
                          GertSanders
                          Hardware Contributor
                          wrote on last edited by
                          #26

                          @alexsh1 My very narrow board was built and tested today. It works fine, I posted info on the hardware forum.

                          I must say I feel pity for this sliver of plastic and metal ...

                          alexsh1A 1 Reply Last reply
                          0
                          • GertSandersG GertSanders

                            @alexsh1 My very narrow board was built and tested today. It works fine, I posted info on the hardware forum.

                            I must say I feel pity for this sliver of plastic and metal ...

                            alexsh1A Offline
                            alexsh1A Offline
                            alexsh1
                            wrote on last edited by
                            #27

                            @GertSanders said:

                            @alexsh1 My very narrow board was built and tested today. It works fine, I posted info on the hardware forum.

                            I must say I feel pity for this sliver of plastic and metal ...

                            Excellent! I ordered your narrow board a few days ago as I thought it would be very useful.

                            One thing I can tell for sure - cutters are really well built. They are made in Japan and electrostatic safe. Most important they are not big as the ones I had before.

                            1 Reply Last reply
                            0
                            • SweebeeS Offline
                              SweebeeS Offline
                              Sweebee
                              wrote on last edited by
                              #28

                              ordered the pro mini shields and I'm not disappointed :) As small as you can get:




                              YveauxY 1 Reply Last reply
                              2
                              • SweebeeS Sweebee

                                ordered the pro mini shields and I'm not disappointed :) As small as you can get:




                                YveauxY Offline
                                YveauxY Offline
                                Yveaux
                                Mod
                                wrote on last edited by
                                #29

                                @Sweebee Very nice indeed!
                                I'm very surprised btw that you're using 2xAA to power the PIR. Will it work reliably (no false detections), even when the batteries are running out?
                                I use 2xAA to power Pro Mini + nRF and an extra AA to power the PIR. This way the supply to the PIR will stay > 3V over time.

                                http://yveaux.blogspot.nl

                                SweebeeS 1 Reply Last reply
                                0
                                • YveauxY Yveaux

                                  @Sweebee Very nice indeed!
                                  I'm very surprised btw that you're using 2xAA to power the PIR. Will it work reliably (no false detections), even when the batteries are running out?
                                  I use 2xAA to power Pro Mini + nRF and an extra AA to power the PIR. This way the supply to the PIR will stay > 3V over time.

                                  SweebeeS Offline
                                  SweebeeS Offline
                                  Sweebee
                                  wrote on last edited by
                                  #30

                                  @Yveaux the pirs work fine if you only have interrupts with CHANGE. I don't use a sleep timer. If you wake it up every minute or so its unreliable yes. but only with interrupts from the pir it works fine. I have 10 pirs like this. Oldest one is from march 2015 and still running.

                                  YveauxY alexsh1A 2 Replies Last reply
                                  1
                                  • SweebeeS Sweebee

                                    @Yveaux the pirs work fine if you only have interrupts with CHANGE. I don't use a sleep timer. If you wake it up every minute or so its unreliable yes. but only with interrupts from the pir it works fine. I have 10 pirs like this. Oldest one is from march 2015 and still running.

                                    YveauxY Offline
                                    YveauxY Offline
                                    Yveaux
                                    Mod
                                    wrote on last edited by
                                    #31

                                    @Sweebee Consider yourself lucky then! I have the same issues decribed here when powering using 2xAA.
                                    I ditched the step-up converter as it introduces too much noise and reduces battery life. The 3xAA solution seems to work reliably though.

                                    http://yveaux.blogspot.nl

                                    1 Reply Last reply
                                    0
                                    • SweebeeS Sweebee

                                      @Yveaux the pirs work fine if you only have interrupts with CHANGE. I don't use a sleep timer. If you wake it up every minute or so its unreliable yes. but only with interrupts from the pir it works fine. I have 10 pirs like this. Oldest one is from march 2015 and still running.

                                      alexsh1A Offline
                                      alexsh1A Offline
                                      alexsh1
                                      wrote on last edited by
                                      #32

                                      @Sweebee

                                      You have an excellent setup - I ordered those adapter as well at oshpark.
                                      @Yveaux has got a point - I have been struggle to build a reliable PIR on 2xAA batteries. I have just started building it now. 1 year battery life and counting is impressive.

                                      @Sweebee Would you care to share your code? Maybe there is anything there which gives us some clues though I believe this is more a hardware issue.

                                      YveauxY 1 Reply Last reply
                                      0
                                      • alexsh1A alexsh1

                                        @Sweebee

                                        You have an excellent setup - I ordered those adapter as well at oshpark.
                                        @Yveaux has got a point - I have been struggle to build a reliable PIR on 2xAA batteries. I have just started building it now. 1 year battery life and counting is impressive.

                                        @Sweebee Would you care to share your code? Maybe there is anything there which gives us some clues though I believe this is more a hardware issue.

                                        YveauxY Offline
                                        YveauxY Offline
                                        Yveaux
                                        Mod
                                        wrote on last edited by
                                        #33

                                        @alexsh1 said:

                                        Would you care to share your code? Maybe there is anything there which gives us some clues though I believe this is more a hardware issue.

                                        Agree. Apparently @Sweebee made modifications to the PIR (mainly to move some capacitors, judging from the photos) but maybe you did some more to improve battery life/stability?

                                        http://yveaux.blogspot.nl

                                        1 Reply Last reply
                                        0
                                        • SweebeeS Offline
                                          SweebeeS Offline
                                          Sweebee
                                          wrote on last edited by
                                          #34

                                          I removed the left capacitor since it's not needed in 3.3v hack. And I moved the right one because otherwise it didn't fit into the case.

                                          My sketch:

                                          #include <MySensor.h>
                                          #include <SPI.h>
                                          #include <readVcc.h>
                                          
                                          // ********** CONFIG **********************************
                                          
                                              #define NODE_ID AUTO          // ID of node
                                              #define CHILD_ID 1            // ID of sensor
                                              #define PIR_PIN 3             // Pin connected to the PIR
                                              
                                              #define MIN_V 2000            // empty voltage (0%)
                                              #define MAX_V 3200            // full voltage (100%)
                                          
                                          // ****************************************************
                                          
                                          MyMessage msg(CHILD_ID, V_TRIPPED);
                                          MySensor node;
                                          
                                          int oldBatteryPcnt;
                                          int sentValue;
                                          int forceSend = 0;
                                          
                                          void setup()
                                          {
                                            node.begin(NULL, NODE_ID, false);
                                            node.sendSketchInfo("PIR Sensor", "1.2");
                                            node.present(CHILD_ID, S_MOTION);
                                            pinMode(PIR_PIN, INPUT);
                                            digitalWrite(PIR_PIN, HIGH);
                                          }
                                          
                                          void loop()
                                          {
                                            
                                            // Get PIR
                                            int value = digitalRead(PIR_PIN); // Get value of PIR
                                            if (value != sentValue) { // If status of PIR has changed
                                              resend(msg.set(value), 5); // Send PIR status to gateway
                                              sentValue = value;
                                            }
                                          
                                            // Send batterylevel
                                            sendBattery(); 
                                          
                                            // Sleep until something happens with the sensor
                                            node.sleep(PIR_PIN-2, CHANGE); 
                                          }
                                          
                                          // FUNCTIONS
                                          
                                          void sendBattery() // Send battery percentage to GW
                                          {
                                            forceSend++;
                                            int batteryPcnt = min(map(readVcc(), MIN_V, MAX_V, 0, 100), 100); // Get VCC and convert to percentage      
                                            if (batteryPcnt != oldBatteryPcnt || forceSend >= 20) { // If battery percentage has changed
                                              node.sendBatteryLevel(batteryPcnt); // Send battery percentage to gateway
                                              oldBatteryPcnt = batteryPcnt; 
                                              forceSend = 0;
                                            }
                                          }
                                          
                                          void resend(MyMessage &msg, int repeats) // Resend messages if not received by GW
                                          {
                                            int repeat = 0;
                                            int repeatDelay = 0;
                                            boolean ack = false;
                                          
                                            while ((ack == false) and (repeat < repeats)) {
                                              if (node.send(msg)) {
                                                ack = true;
                                              } else {
                                                ack = false;
                                                repeatDelay += 100;
                                              } 
                                              repeat++;
                                              delay(repeatDelay);
                                            }
                                          }
                                          
                                          YveauxY M 2 Replies 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.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