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 own board (50mm x 30mm)

My own board (50mm x 30mm)

Scheduled Pinned Locked Moved My Project
133 Posts 22 Posters 94.4k Views 21 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

    @alexsh1 It is based on my AC capable board, is a normal atmega328p board, but with a SIM800L mounted on it. This module allows me to send and receive SMS's, and I use one of the digital output pins to control a waterpump. I have a second AC based board ready which will be my MySensors SMS gateway. This means it will be able to receive V_TEXT and send that to the default GSM number as a SMS. It should be possible to receive SMS and send that as V_TEXT to other nodes, but so far I have not started the design of the second sketch yet.

    1447344753891-img_7575.jpg

    You see it here also (top right) with the relay module and the white AC-DC converter connected.

    1447344662709-img_7579.jpg

    Side view:

    1447344891388-img_7582.jpg

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

    @GertSanders said:

    @alexsh1 It is based on my AC capable board, is a normal atmega328p board, but with a SIM800L mounted on it. This module allows me to send and receive SMS's, and I use one of the digital output pins to control a waterpump. I have a second AC based board ready which will be my MySensors SMS gateway. This means it will be able to receive V_TEXT and send that to the default GSM number as a SMS. It should be possible to receive SMS and send that as V_TEXT to other nodes, but so far I have not started the design of the second sketch yet.

    I only have 1-2 high current (3kWh at 240V resistive load) devices at home and I am already controlling them as well my internet router (remote reboot if no internet) via SMS. At this stage I need a larger property to expand my home automation lol :satisfied: :satisfied: :satisfied:

    1 Reply Last reply
    0
    • G gloob

      @GertSanders
      Do you have a source or shop for the AAA battery holder with solder pins? I did only find some for AA batteries.

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

      @gloob said:

      @GertSanders
      Do you have a source or shop for the AAA battery holder with solder pins? I did only find some for AA batteries.

      Would you mind me asking why you'd need AAA batteries? Much less capacity and the holder is not much smaller. I have been using Eneloop AA rechargable lithium batteries (http://www.ebay.co.uk/itm/4pcs-1-5V-AA-2200mWh-Lithium-li-ion-Rechargeble-Battery-4-PORTS-AA-charger-/272027421169?hash=item3f561909f1:g:r9AAAOSwMTZWSFHz) and they are holding up really well. The advantage is that they hold 1.5V almost until they are discharged unlike NiMh

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

        @gloob I got my AAA holders from Aliexpress.

        1 Reply Last reply
        0
        • Carl HC Offline
          Carl HC Offline
          Carl H
          wrote on last edited by
          #91

          @GertSanders said:

          AAA holders

          Like this? http://www.aliexpress.com/item/Wholesale-30Pcs-lot-1-AAA-Battery-Case-Holder-Box-Base-Socket-With-two-pins-AAA-Battery/32244035084.html?spm=2114.01020208.3.182.YlN1cu&ws_ab_test=searchweb201556_2_79_78_77_80,searchweb201644_0,searchweb201560_5

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

            Indeed, those :+1:

            1 Reply Last reply
            0
            • G Offline
              G Offline
              gloob
              wrote on last edited by
              #93

              Do you have an idea how long a temperature sensor will run on 2 AAA batteries?

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

                @gloob Not yet, some of mine have been running for 2months with a voltage drop of less then 1%

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

                  IMG_2229.JPG

                  My board waiting for a sensor from China

                  G 1 Reply Last reply
                  2
                  • alexsh1A alexsh1

                    IMG_2229.JPG

                    My board waiting for a sensor from China

                    G Offline
                    G Offline
                    gloob
                    wrote on last edited by
                    #96

                    @alexsh1
                    How did you connect the battery? Did you solder it directly to the board?

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

                      @gloob There are two connections on the board to allow soldering the battery holder. Both the AA and AAA versions I use have the same pin spacing (seems standard), so you can use an AA battery holder as @alexsh1 does, or an AAA as I have.

                      http://forum.mysensors.org/uploads/files/1446751714416-image.jpeg

                      The red arrows show where the batteryholder pins should go. If you have individual AAA battery holders, then the pins surrounded by yellow circle are also used to connect the batteries in series. If the battery holder holds 2 batteries, then only the pins pointed to by red arrows are used.

                      batteryholderconnections.jpg

                      The PLUS sign next the the pin on the lower right of the above image is for the LED, the polarity of the pins from the battery is marked on the silkscreen of the bottom side. Looking at it from the top side, the pin above right is for Positive, the pin on below right is for Negative (or GND).

                      Jumper J2 is to connect the IRQ pin from the NRF24 to pin 2 (INT0) of the atmega328. You could also use that to connect a switch between the top jumper pad (connected to pin 2) and the extra ground pin of C5, to use with a doorswitch. I have used this with the internal pull up, but that would not be very good for the battery-use. It is better to use a 1MOhm pull up resistor wich can also be connected using the extra hole connected to pin 2 and Vcc

                      rmtuckerR 1 Reply Last reply
                      1
                      • alexsh1A Offline
                        alexsh1A Offline
                        alexsh1
                        wrote on last edited by
                        #98

                        @gloob @GertSanders is spot on! I only have 1.5V AA rechargeable lithium batteries so the choice of the battery holder is obvious.

                        1 Reply Last reply
                        0
                        • rmtuckerR Offline
                          rmtuckerR Offline
                          rmtucker
                          wrote on last edited by
                          #99

                          Just ordered a batch from DirtyPcb so the journey is just beginning!.
                          Doubt i will need a whole batch so if anyone requires a couple in the uk let me know.

                          1 Reply Last reply
                          0
                          • GertSandersG GertSanders

                            @alexsh1 I completely switched off the BoD in my fuse settings, this saves the battery even more. I found that the processor kept working down to around 1,64V. Even my NRF24 worked to that low level, because the last message I received in my Domoticz from that node gave a battery voltage of 1.64V
                            Anyway, since I monitor all battery levels via a script in Domoticz, there is no need for BoD.

                            rmtuckerR Offline
                            rmtuckerR Offline
                            rmtucker
                            wrote on last edited by
                            #100

                            @GertSanders said:

                            @alexsh1 I completely switched off the BoD in my fuse settings, this saves the battery even more. I found that the processor kept working down to around 1,64V. Even my NRF24 worked to that low level, because the last message I received in my Domoticz from that node gave a battery voltage of 1.64V
                            Anyway, since I monitor all battery levels via a script in Domoticz, there is no need for BoD.

                            How is 1.64v possible,It was my understanding that 8Mhz requires a minimum of 2.4v?

                            1 Reply Last reply
                            0
                            • mfalkviddM Offline
                              mfalkviddM Offline
                              mfalkvidd
                              Mod
                              wrote on last edited by
                              #101

                              The processor is guaranteed to work within the specified limits. Outside the specified limits, no guarantees are made. It might work, it might not work or it might work slightly with strange glitches.

                              1 Reply Last reply
                              0
                              • rmtuckerR Offline
                                rmtuckerR Offline
                                rmtucker
                                wrote on last edited by
                                #102

                                I see now.Thank you
                                Has anyone modified Gertsanders Firmware to run at 1Mhz?
                                That would give reasonably stable results down to 1.8v.
                                I don't have the skills to compile from scratch and cater for the led on pin8 etc.

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

                                  @rmtucker The firmware itself does not need to be changed to use the internal oscillator. You accomplish that by using a different set of fuse values:
                                  atmega328pO4M8i.bootloader.low_fuses=0xE2
                                  atmega328pO4M8i.bootloader.high_fuses=0xDE
                                  atmega328pO4M8i.bootloader.extended_fuses=0x07

                                  This sets the processor to a mode using the internal oscillator.

                                  Add the call to divide the frequency by 8 (can be done in the sketch itself) and you have a 1MHz internal clock.

                                  rmtuckerR 1 Reply Last reply
                                  0
                                  • GertSandersG GertSanders

                                    @rmtucker The firmware itself does not need to be changed to use the internal oscillator. You accomplish that by using a different set of fuse values:
                                    atmega328pO4M8i.bootloader.low_fuses=0xE2
                                    atmega328pO4M8i.bootloader.high_fuses=0xDE
                                    atmega328pO4M8i.bootloader.extended_fuses=0x07

                                    This sets the processor to a mode using the internal oscillator.

                                    Add the call to divide the frequency by 8 (can be done in the sketch itself) and you have a 1MHz internal clock.

                                    rmtuckerR Offline
                                    rmtuckerR Offline
                                    rmtucker
                                    wrote on last edited by
                                    #104

                                    @GertSanders So have you never found it a problem running at 8Mhz?
                                    Do most of your sensors work ok below the 2.4v threshold?
                                    Guess i will find out when the pcb boards arrive:smiley:

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

                                      @rmtucker Short answer: yes. So far most my sensors are working fine and all sit above 2.4V but I have not had problems when they do below 2.4V

                                      There is one sensor now that has a battery in decline. This sensor uses a lot of power and goes through it's batteries very fast. So it is a good test for this low voltage work. It is now at 2.11V and still sends messages every 5 minutes. On the first graph you can see it is still working fine wel below 2.4V and it is clocked at 8MHz with a crystal.

                                      Screen Shot 2016-01-03 at 20.27.54.png

                                      I have a notification on all my sensors so that when the battery voltage goes below 2V I get a Prowl from Domoticz. This has only happened on this sensor (twice so far), because I was using NiMH batteries (which discharge faster than alkaline). Around 2 november I put in 2 alkaline batteries (AAA), but these were not brand new.

                                      Most of my sensors have a discharge pattern as here below:

                                      Screen Shot 2016-01-03 at 20.38.51.png

                                      rmtuckerR 1 Reply Last reply
                                      0
                                      • GertSandersG GertSanders

                                        @rmtucker Short answer: yes. So far most my sensors are working fine and all sit above 2.4V but I have not had problems when they do below 2.4V

                                        There is one sensor now that has a battery in decline. This sensor uses a lot of power and goes through it's batteries very fast. So it is a good test for this low voltage work. It is now at 2.11V and still sends messages every 5 minutes. On the first graph you can see it is still working fine wel below 2.4V and it is clocked at 8MHz with a crystal.

                                        Screen Shot 2016-01-03 at 20.27.54.png

                                        I have a notification on all my sensors so that when the battery voltage goes below 2V I get a Prowl from Domoticz. This has only happened on this sensor (twice so far), because I was using NiMH batteries (which discharge faster than alkaline). Around 2 november I put in 2 alkaline batteries (AAA), but these were not brand new.

                                        Most of my sensors have a discharge pattern as here below:

                                        Screen Shot 2016-01-03 at 20.38.51.png

                                        rmtuckerR Offline
                                        rmtuckerR Offline
                                        rmtucker
                                        wrote on last edited by
                                        #106

                                        @GertSanders What rate is the sensor in the very bottom graph sending messages?
                                        That discharge rate looks very nice.

                                        @GertSanders said:

                                        @rmtucker The firmware itself does not need to be changed to use the internal oscillator. You accomplish that by using a different set of fuse values:
                                        atmega328pO4M8i.bootloader.low_fuses=0xE2
                                        atmega328pO4M8i.bootloader.high_fuses=0xDE
                                        atmega328pO4M8i.bootloader.extended_fuses=0x07

                                        This sets the processor to a mode using the internal oscillator.

                                        Add the call to divide the frequency by 8 (can be done in the sketch itself) and you have a 1MHz internal clock.

                                        Problem with using div/8 in the sketch and not altering the bootloader is that all the timings are off for baud rates and pwm etc.
                                        Where if it is altered in the bootloader it all works as it should.

                                        Last question i promise :yum:

                                        I currently use the arduino mini pro and when uploading sketches to it using ftdi,i have to press the reset button to get the upload to work.
                                        Will i have the same problem with your boards?

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

                                          @rmtucker On my board I do not need to press a reset to be able to upload sketches, since I connected the RESET pin to the FTDI header via a capacitor.

                                          So if the FTDI interface does the reset via RTS pin, then it will reset the board and you can upload sketches.

                                          The sensor in the last graph sends it's voltage and temperature every 5 minutes, even if the value is sometimes the same as the previous one. It also sends it's battery voltage every 5 minutes.

                                          In my last version of the sketch I have now added a change based on the Sensebender sketch. That sketch sends it's temperature or humidity only if the change is a minimal difference with the previously sent temperature or humidity. It always sends it's battery level every half hour. That should make it last minimum a year on 2 AAA batteries.

                                          Below is a graph of another sensor sending data every 5 minutes.
                                          Screen Shot 2016-01-05 at 21.06.06.png

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


                                          25

                                          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