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. ATMEGA328P standalone soil moisture sensor

ATMEGA328P standalone soil moisture sensor

Scheduled Pinned Locked Moved Hardware
atmega328pnrf24l01+soil moisture
12 Posts 3 Posters 146 Views 3 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.
  • RonR Offline
    RonR Offline
    Ron
    wrote on last edited by
    #3

    Hi everyone,

    I have rebuild the sensor and this is the current status:

    • Changed out the coincell for two AAA batteries due to higher capacity and better availability. This increased the sensor size in both height and width but this does not bother me.
    • Added the possibility to attach an ATSHA204A in a SOT-23-3 package for message signing.
    • Added an FTDI connection besides the AVR-ISP
    • Changed from indentation to mounting holes. This makes it easier to design 3D printed cases for it.

    Any nice features that I am missing here or that some of you would like to see on this? I am open for suggestions :)

    PS: Is there any way to scale the uploaded images?

    SoilMoistureSensor02.jpeg
    SoilMoistureSensor01.jpeg

    1 Reply Last reply
    1
    • RonR Offline
      RonR Offline
      Ron
      wrote on last edited by
      #4

      Hi there,

      I am currently thinking about a power supply solution for the sensor. The possible options with their advantages/disadvantages are:

      • Single AAA Battery Cell + dc-dc boost converter
        + compact formfactor
        - not that much capacity
        - additional costs because of boost converter hardware
      • Double AAA Battery
        + relatively large capacity and thus longer lifetime
        + no need of a booster which could introduce noise to the radio
        - bulky (as you can see on the photos of my last post)

      What bothers me is that without a booster I can only use two AAA batteries until they reach 2.7V in total, as I need at least 2.7V if I want to use the 8 MHz internal clock of the atmega.
      Does it make sense to combine two AAA batteries with a boost converter to 3.3V? This way one could use the batteries until they reach ~2V in total.
      I am interested to hear your thoughts on that.

      mfalkviddM 1 Reply Last reply
      0
      • RonR Ron

        Hi there,

        I am currently thinking about a power supply solution for the sensor. The possible options with their advantages/disadvantages are:

        • Single AAA Battery Cell + dc-dc boost converter
          + compact formfactor
          - not that much capacity
          - additional costs because of boost converter hardware
        • Double AAA Battery
          + relatively large capacity and thus longer lifetime
          + no need of a booster which could introduce noise to the radio
          - bulky (as you can see on the photos of my last post)

        What bothers me is that without a booster I can only use two AAA batteries until they reach 2.7V in total, as I need at least 2.7V if I want to use the 8 MHz internal clock of the atmega.
        Does it make sense to combine two AAA batteries with a boost converter to 3.3V? This way one could use the batteries until they reach ~2V in total.
        I am interested to hear your thoughts on that.

        mfalkviddM Offline
        mfalkviddM Offline
        mfalkvidd
        Mod
        wrote on last edited by
        #5

        @Ron You can use 8MHz safely down to 2.34V according to the graph in the datasheet.

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

          For size, CR123a might be an option. They are lithium 3V, so one would be sufficient.

          1 Reply Last reply
          0
          • mfalkviddM mfalkvidd

            @Ron You can use 8MHz safely down to 2.34V according to the graph in the datasheet.

            RonR Offline
            RonR Offline
            Ron
            wrote on last edited by
            #7

            @mfalkvidd said in ATMEGA328P standalone soil moisture sensor:

            @Ron You can use 8MHz safely down to 2.34V according to the graph in the datasheet.

            Are you sure with that? I found this information in the datasheet to the atmega328p-au, where it states that the safe operating range ends at 2.7V:
            SmartSelect_20200907-211145_Xodo Docs.jpg

            Maybe I should consider using an external oscillator instead of the internal one? Do you know something about the power consumption with an external crystal compared to the internal oscillator?

            @mfalkvidd said in ATMEGA328P standalone soil moisture sensor:

            For size, CR123a might be an option. They are lithium 3V, so one would be sufficient.

            These ones look definitely interesting, I will have a look at them, thank you :)

            mfalkviddM 1 Reply Last reply
            0
            • RonR Ron

              @mfalkvidd said in ATMEGA328P standalone soil moisture sensor:

              @Ron You can use 8MHz safely down to 2.34V according to the graph in the datasheet.

              Are you sure with that? I found this information in the datasheet to the atmega328p-au, where it states that the safe operating range ends at 2.7V:
              SmartSelect_20200907-211145_Xodo Docs.jpg

              Maybe I should consider using an external oscillator instead of the internal one? Do you know something about the power consumption with an external crystal compared to the internal oscillator?

              @mfalkvidd said in ATMEGA328P standalone soil moisture sensor:

              For size, CR123a might be an option. They are lithium 3V, so one would be sufficient.

              These ones look definitely interesting, I will have a look at them, thank you :)

              mfalkviddM Offline
              mfalkviddM Offline
              mfalkvidd
              Mod
              wrote on last edited by mfalkvidd
              #8

              @Ron interesting. This is what the graph looks like in my copy:
              1B580CB6-FD8A-4071-B0CE-B71DB397A944.png

              I guess the difference is P vs P-AU, and my datasheet might be an older revision.

              RonR YveauxY 2 Replies Last reply
              0
              • mfalkviddM mfalkvidd

                @Ron interesting. This is what the graph looks like in my copy:
                1B580CB6-FD8A-4071-B0CE-B71DB397A944.png

                I guess the difference is P vs P-AU, and my datasheet might be an older revision.

                RonR Offline
                RonR Offline
                Ron
                wrote on last edited by Ron
                #9

                @mfalkvidd you are right, I might somehow have found an older datasheet somewhere (my one was from 2015). In the current datasheet from the microchip website the same graph is present which indicates 2.4V minimum for 8 MHz. So I probably will deactivate 2.7V BOD. :)

                1 Reply Last reply
                1
                • mfalkviddM mfalkvidd

                  @Ron interesting. This is what the graph looks like in my copy:
                  1B580CB6-FD8A-4071-B0CE-B71DB397A944.png

                  I guess the difference is P vs P-AU, and my datasheet might be an older revision.

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

                  @mfalkvidd said in ATMEGA328P standalone soil moisture sensor:

                  difference is P vs P-AU

                  You found the automotive grade datasheet, which contains a different curve

                  http://yveaux.blogspot.nl

                  mfalkviddM 1 Reply Last reply
                  0
                  • YveauxY Yveaux

                    @mfalkvidd said in ATMEGA328P standalone soil moisture sensor:

                    difference is P vs P-AU

                    You found the automotive grade datasheet, which contains a different curve

                    mfalkviddM Offline
                    mfalkviddM Offline
                    mfalkvidd
                    Mod
                    wrote on last edited by
                    #11

                    @Yveaux which one is for automotive?

                    YveauxY 1 Reply Last reply
                    0
                    • mfalkviddM mfalkvidd

                      @Yveaux which one is for automotive?

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

                      @mfalkvidd the one that stops at 2.7v
                      I once broke my head over it, then it saw I was looking at the automotive datasheet...

                      http://yveaux.blogspot.nl

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


                      18

                      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