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. My Slim 2AA Battery Node

My Slim 2AA Battery Node

Scheduled Pinned Locked Moved My Project
498 Posts 71 Posters 342.6k Views 69 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.
  • dakkyD dakky

    Could u show a screen for the lockbits too? I have never set them before and need some guidance :D thanks

    Dakky

    bjacobseB Offline
    bjacobseB Offline
    bjacobse
    wrote on last edited by
    #95

    @dakky said:

    Could u show a screen for the lockbits too? I have never set them before and need some guidance :D thanks

    Dakky

    I use ubuntu, and a tiny USB, so after I have flashed my arduino board, I run this avrdude command, that will run until battery is low

    avrdude -c usbtiny -p m328p -U efuse:w:0x07:m
    

    I have bought usbtiny from this guy:
    http://www.ebay.com/itm/USBtinyISP-V4-AVR-ISP-Programmer-Reliable-Plastic-Enclosure-/330824700564?hash=item4d06b05294

    1 Reply Last reply
    0
    • m26872M m26872

      @ahmedadelhosni
      I think it's a good idea! And an easy mod, but it's not on priority list atm. Someone else would get a quick start from my already published kicad-files.

      The thought behind present design is that I didn't want anything to cover the antenna in any direction, but I doubt it would matter much in this suggested case. It'll be worse when it comes to the hight. Look at the photos. The nRF becomes too high for my enclosures if I use a socket, and the 328p with its socket is too high to fit under a nRF without its socket. The solution would be to remove the 328p socket and move the R and Cs to bottom side or somewhere else. And without a 328p socket, the 3x2 AVR ISP pins would become more important to keep. Otherwise the board could have been trimmed even more.

      ahmedadelhosniA Offline
      ahmedadelhosniA Offline
      ahmedadelhosni
      wrote on last edited by ahmedadelhosni
      #96

      @m26872 Hi again. Just a small update regarding rotating the nrf.

      I decided that in my designs I'll need the straight and rotated version, thus I'll design a small board to map the pin outputs like the image below. It will be above the ICSP pins but I really don't care about re flashing.

      I'll order the board as soon as I finish pcb layout of some other boards and ship all at once.

      Thanks.

      upload-dbcd859c-7c4c-4e46-959c-e83314602bcd

      m26872M 1 Reply Last reply
      0
      • ahmedadelhosniA ahmedadelhosni

        @m26872 Hi again. Just a small update regarding rotating the nrf.

        I decided that in my designs I'll need the straight and rotated version, thus I'll design a small board to map the pin outputs like the image below. It will be above the ICSP pins but I really don't care about re flashing.

        I'll order the board as soon as I finish pcb layout of some other boards and ship all at once.

        Thanks.

        upload-dbcd859c-7c4c-4e46-959c-e83314602bcd

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

        @ahmedadelhosni You know that the nRF pins are not centered? That means if you rotate it like this it will no longer be straight above the "slim node motherboard".
        What height do you expect it to be?

        ahmedadelhosniA 1 Reply Last reply
        0
        • dakkyD Offline
          dakkyD Offline
          dakky
          wrote on last edited by dakky
          #98

          Another "noobish" question:
          When using this bootloader, one cycle takes 8 seconds? What happens, if for example, a switch is pressed between? does this sensor detect this?

          Controller: Raspberry Pi 2 :: Openhab2 :: with @TimO MySensors Binding
          Gateway: Arduino MEGA 2560 R3 :: W5100 :: Ethernet GW

          Software: MySensors 2.0development

          m26872M 1 Reply Last reply
          0
          • dakkyD dakky

            Another "noobish" question:
            When using this bootloader, one cycle takes 8 seconds? What happens, if for example, a switch is pressed between? does this sensor detect this?

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

            @dakky Plz correct me... but I guess you're talking about the Avr sleep cycles? I don't know what that's got to do with the bootloader or this thread. I think it's related to interrupt, timers, mysensors and arduino lowpower library. The sleep cycles shouldn't be something to worry about if you're using the "sleep" function as in MySensors API.

            dakkyD 1 Reply Last reply
            1
            • m26872M m26872

              @dakky Plz correct me... but I guess you're talking about the Avr sleep cycles? I don't know what that's got to do with the bootloader or this thread. I think it's related to interrupt, timers, mysensors and arduino lowpower library. The sleep cycles shouldn't be something to worry about if you're using the "sleep" function as in MySensors API.

              dakkyD Offline
              dakkyD Offline
              dakky
              wrote on last edited by dakky
              #100

              @m26872 hmm you're right. maybe this is a too generic question to be discussed here. pardon me.

              Controller: Raspberry Pi 2 :: Openhab2 :: with @TimO MySensors Binding
              Gateway: Arduino MEGA 2560 R3 :: W5100 :: Ethernet GW

              Software: MySensors 2.0development

              1 Reply Last reply
              0
              • M Offline
                M Offline
                martkrui
                wrote on last edited by martkrui
                #101

                I had a bit of an issue getting things going as I've never played with the fuses before. Maybe this can save someone else some time. If I'm doing something silly here please correct me. :sweat_smile:

                [DISCLAIMER] this worked for me. Use at own risk[DISCLAIMER]

                Executed these commands from the subfolder \hardware\tools\avr\bin of my local arduino IDE.
                Connected the board ICSP using an USBASP with the latest firmware. Change the "-c usbasp" part if you connect using something else.

                Flash bootloader

                avrdude -C ../etc/avrdude.conf -c usbasp -B5 -p ATmega328P -U flash:w:..\..\..\arduino\avr\bootloaders\atmega\atmega328_1a.hex
                

                Set fuses

                avrdude -C ../etc/avrdude.conf -c usbasp -B5 -p ATmega328P -U lfuse:w:0x62:m -U hfuse:w:0xDE:m -U efuse:w:0x07:m -U lock:w:0x2F:m
                
                

                I think the B5 was crucial as it slows things down a bit. The bootloader (atmega328_1a.hex) is the one mentioned in the first post. I also added the part in the boards.txt of the arduino IDE.

                Now I can connect the board to the FTDI and upload and run sketches without issues.

                On to the next step :smiley: :+1:

                1 Reply Last reply
                3
                • dakkyD Offline
                  dakkyD Offline
                  dakky
                  wrote on last edited by
                  #102

                  I am not so really skilled in transferring a wiring diagram to "real live". Is this the correct implementation for battery measuring?

                  upload-8e188148-e6c0-44ef-9b8c-a01fe9cd1c3a

                  Controller: Raspberry Pi 2 :: Openhab2 :: with @TimO MySensors Binding
                  Gateway: Arduino MEGA 2560 R3 :: W5100 :: Ethernet GW

                  Software: MySensors 2.0development

                  m26872M 1 Reply Last reply
                  0
                  • dakkyD dakky

                    I am not so really skilled in transferring a wiring diagram to "real live". Is this the correct implementation for battery measuring?

                    upload-8e188148-e6c0-44ef-9b8c-a01fe9cd1c3a

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

                    @dakky First, the "normal" battery monitoring to this node is to use the internal method by, if you like, using the vcc library. Measuring Vcc with external voltage divider makes not a lot of sense. The external voltage divider is useful when measuring e.g. raw battery voltage to some voltage regulator.
                    Second, I think you've switched A0 and Gnd in your drawing.

                    1 Reply Last reply
                    0
                    • dakkyD Offline
                      dakkyD Offline
                      dakky
                      wrote on last edited by dakky
                      #104

                      hurm did i switch them?
                      Concerning the method: hmm ok. I just thought, that the one recommenced in the build section of mysensors should be the "correct" one.

                      EDIT: Hrhr @Yveaux vcc lib is cute :D workd out of the box ;) thx

                      Controller: Raspberry Pi 2 :: Openhab2 :: with @TimO MySensors Binding
                      Gateway: Arduino MEGA 2560 R3 :: W5100 :: Ethernet GW

                      Software: MySensors 2.0development

                      1 Reply Last reply
                      0
                      • A Offline
                        A Offline
                        arnoldg
                        wrote on last edited by
                        #105

                        Is there some one who have lying around several boards, who can share them with me.
                        i'm from the netherlands, and for now i only need 5 to 6 boards, not 30 :)

                        so i hope i could take over a couple from someone.

                        AWIA A 2 Replies Last reply
                        0
                        • A arnoldg

                          Is there some one who have lying around several boards, who can share them with me.
                          i'm from the netherlands, and for now i only need 5 to 6 boards, not 30 :)

                          so i hope i could take over a couple from someone.

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

                          @arnoldg send me a pm...

                          1 Reply Last reply
                          0
                          • A arnoldg

                            Is there some one who have lying around several boards, who can share them with me.
                            i'm from the netherlands, and for now i only need 5 to 6 boards, not 30 :)

                            so i hope i could take over a couple from someone.

                            A Offline
                            A Offline
                            ar91
                            wrote on last edited by
                            #107

                            @arnoldg said:

                            Is there some one who have lying around several boards, who can share them with me.
                            i'm from the netherlands, and for now i only need 5 to 6 boards, not 30 :)

                            so i hope i could take over a couple from someone.

                            Same here, anybody in US has 4 or 5 boards that i could buy?

                            1 Reply Last reply
                            0
                            • dakkyD Offline
                              dakkyD Offline
                              dakky
                              wrote on last edited by
                              #108

                              Anyone want to share some photos with sensors assembled?
                              Any experiences how long this node will last? I have one DHT11 and one BH1750 onboard and will wake up the node every 5-15 Minutes.

                              Greetings
                              Dakky

                              Controller: Raspberry Pi 2 :: Openhab2 :: with @TimO MySensors Binding
                              Gateway: Arduino MEGA 2560 R3 :: W5100 :: Ethernet GW

                              Software: MySensors 2.0development

                              rsachocR 1 Reply Last reply
                              0
                              • N Offline
                                N Offline
                                nikos1671
                                wrote on last edited by
                                #109

                                If I order the 10 pieces for 14$ how many sensor I can build? They mean 10 panels with 3 boards each one?

                                1 Reply Last reply
                                0
                                • K Offline
                                  K Offline
                                  kr0815
                                  wrote on last edited by kr0815
                                  #110

                                  yes, that´s 30 sensors you could build then

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

                                    @nikos1671 If you buy the proto pack you could get 9,10 or 11 boards. It could be different that exactly 10 boards. In my case I received 12 boards for my design, in another order I received 11 boards. My last order was 10 boards. But in any case you will be able to make more then 25 sensors. Plenty for a normal house.

                                    1 Reply Last reply
                                    0
                                    • dakkyD dakky

                                      Anyone want to share some photos with sensors assembled?
                                      Any experiences how long this node will last? I have one DHT11 and one BH1750 onboard and will wake up the node every 5-15 Minutes.

                                      Greetings
                                      Dakky

                                      rsachocR Offline
                                      rsachocR Offline
                                      rsachoc
                                      wrote on last edited by rsachoc
                                      #112

                                      @dakky said:

                                      Anyone want to share some photos with sensors assembled?
                                      Any experiences how long this node will last? I have one DHT11 and one BH1750 onboard and will wake up the node every 5-15 Minutes.

                                      Greetings
                                      Dakky

                                      I would like this too please! I'm trying to decide on which node to use as a motion sensor and temp/humidity sensor and would like to understand how I add a temp/humidty sensor to these and also the battery drain. And also, what temp/humidity sensors are we able to use with this node? I guess it ouputs max 3v, so does that mean the DHT11 and DHT22 are not able to be used here? Sorry for the newbie questions, I'm beginning to explore my options in relation to building my initial temp/humidity sensor and then a motion sensor.

                                      edit OK, so based on what m26872 said here (http://forum.mysensors.org/topic/2715/slim-node-as-a-mini-2aa-battery-pir-motion-sensor/5) I think that I can only use Si7021 or HTU21 sensors as this outputs around 3v? From reading the spec sheet of the DHT11 and 22 I see they need 3.7v, so I guess if I want to use those sensors I need this node (http://forum.mysensors.org/topic/486/my-2aa-battery-sensor)?

                                      m26872M 1 Reply Last reply
                                      0
                                      • rsachocR rsachoc

                                        @dakky said:

                                        Anyone want to share some photos with sensors assembled?
                                        Any experiences how long this node will last? I have one DHT11 and one BH1750 onboard and will wake up the node every 5-15 Minutes.

                                        Greetings
                                        Dakky

                                        I would like this too please! I'm trying to decide on which node to use as a motion sensor and temp/humidity sensor and would like to understand how I add a temp/humidty sensor to these and also the battery drain. And also, what temp/humidity sensors are we able to use with this node? I guess it ouputs max 3v, so does that mean the DHT11 and DHT22 are not able to be used here? Sorry for the newbie questions, I'm beginning to explore my options in relation to building my initial temp/humidity sensor and then a motion sensor.

                                        edit OK, so based on what m26872 said here (http://forum.mysensors.org/topic/2715/slim-node-as-a-mini-2aa-battery-pir-motion-sensor/5) I think that I can only use Si7021 or HTU21 sensors as this outputs around 3v? From reading the spec sheet of the DHT11 and 22 I see they need 3.7v, so I guess if I want to use those sensors I need this node (http://forum.mysensors.org/topic/486/my-2aa-battery-sensor)?

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

                                        @rsachoc Yep, you got it right.

                                        1 Reply Last reply
                                        1
                                        • dakkyD Offline
                                          dakkyD Offline
                                          dakky
                                          wrote on last edited by dakky
                                          #114

                                          Arghls no DHT11 with this node? Dammit. But a step up converter should do it?

                                          Controller: Raspberry Pi 2 :: Openhab2 :: with @TimO MySensors Binding
                                          Gateway: Arduino MEGA 2560 R3 :: W5100 :: Ethernet GW

                                          Software: MySensors 2.0development

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


                                          17

                                          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