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. Development
  3. More than one sensor on one arduino pro mini

More than one sensor on one arduino pro mini

Scheduled Pinned Locked Moved Development
10 Posts 5 Posters 5.5k Views 2 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 Offline
    dakkyD Offline
    dakky
    wrote on last edited by
    #1

    I hope this is the right sub forum ;)

    is it possible, to connect 1 to n sensors to one arduino pro mini? What do i want to archive?

    I have some "clusters" of plants in my home. I want to use the moisture sensor (http://www.mysensors.org/build/moisture) to monitor the single plants. I can't imagine, that using one full sensor (arduino + sensor + wireless module) is the way to go? This will make it quite annoying, as every arduino will need a full power supply, wiring and the costs of the arduinos and NRF itself.

    so what i want to know, is there a setup like this:
    (arduino + nrf24L01+) --- (moisture sensor) --- (moisture sensor) --- [repeat n times] --- (moisture sensor)?
    so i have one wire connecting the sensors to the arduino?

    4 sensors/plants for one arduino pro mini should be possible without problems (i want to use the analog pin, and the pro has 4 analog inputs) but extend this amount would be awesome.

    Thx
    Dakky

    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
      andriej
      wrote on last edited by
      #2

      Of course you can.

      You will have to declare how many sensor child are there on one arduino and voila.

      Now go and learn how to achieve that.

      :-)

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

        thx 4 responding ;)

        what do you mean with "of course i can"?
        N sensor childs? Do u have a buzzword helping me with my research?
        Or do you mean the "max 4 sensors limited by the amount of (analog) input pins" solution?

        Greetings
        Dakky

        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
        • HeinzH Offline
          HeinzH Offline
          Heinz
          Hero Member
          wrote on last edited by
          #4

          Have a look at the dallas temperature sensor sample. This sketch reads several temperature sensors via onewire and sends the values as so called child sensor values to the gateway.

          1 Reply Last reply
          0
          • tbowmoT Offline
            tbowmoT Offline
            tbowmo
            Admin
            wrote on last edited by
            #5

            @dakky

            If you are going to use the analog input you are limited to the number of analog inputs on the board that you are using. Unless you are using an analog multiplexer like 74HC(T)4051

            You can not daisychain analog input from one sensor to the next one.

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

              hmm ok this means a max of X plants per arduino pro mini.

              when reading the pro mini specs:
              X = 6 (thats what the summary says)
              X = 8 (that what A0-A7 should be :P )
              ?

              Some general question:
              Whats makes a sensor useable with oneWire? why does the a temp sensor work and the moisture sensor not? is it, because the the temp sensor uses digital input?

              thx for the help

              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
                andriej
                wrote on last edited by
                #7

                It is because moisture sensor is analog, while OneWire is digital tech. on chip.

                :-)

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  maltimus
                  wrote on last edited by
                  #8

                  @dakky The official Arduino pro mini does not breakout the pins for A6 or A7. You can get off branded pro mini's that do offer these pins.

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

                    http://www.arduino.cc/en/Main/ArduinoBoardProMini says otherwise :D

                    or to be correct: the image says otherwise (have a look at the back of the board), the description says 6 Analog pins

                    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
                      maltimus
                      wrote on last edited by
                      #10

                      It's my understanding that since the ATmega168/328P in the DIP package does not physically have the pins to support A6 and A7, they originally decided not to put these on the mini. It seems that newer revisions of the mini now include these. If you take a look at the schematics on the page you linked above, you can see the newest design version is dated 4-9-2014.

                      1 Reply 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