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. Power external sensors on demand

Power external sensors on demand

Scheduled Pinned Locked Moved Hardware
6 Posts 3 Posters 1.4k Views 4 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.
  • hensingH Offline
    hensingH Offline
    hensing
    wrote on last edited by
    #1

    Hi there!

    I'm new to mysensors and wonder myself if it's possible to power up an external sensor (moisture, rain, etc.) only on demand just a few seconds before the readout.

    As the most external sensors come with their own PCB / μC they drain battery. So my idea here was to power them up when I really need them with

    • a transistor
    • or a MOSFET

    by pulling up the gate with a digital output of the arduino.

    Do you have any experiences which MOSFET (and additional resistors, preferably not SMD) are well suited to switch the sensors on with an 3,3 V arduino mini pro TTL?

    Many thanks in advance

    TheoLT F 2 Replies Last reply
    0
    • hensingH hensing

      Hi there!

      I'm new to mysensors and wonder myself if it's possible to power up an external sensor (moisture, rain, etc.) only on demand just a few seconds before the readout.

      As the most external sensors come with their own PCB / μC they drain battery. So my idea here was to power them up when I really need them with

      • a transistor
      • or a MOSFET

      by pulling up the gate with a digital output of the arduino.

      Do you have any experiences which MOSFET (and additional resistors, preferably not SMD) are well suited to switch the sensors on with an 3,3 V arduino mini pro TTL?

      Many thanks in advance

      TheoLT Offline
      TheoLT Offline
      TheoL
      Contest Winner
      wrote on last edited by
      #2

      @hensing Welcome to My sensors.

      It is possible and done before. Although not advisable, some sensors draw very little current so you could power them directly from an Arduino pin. But be careful with that, the Arduino can only deliver a small amount of current per pin.

      As to your second question, I've done it with a transistor. I think it was a BC547, the one that was included in the Arduino kit. Transistors will work when you've lgot ow power and current sensors. I think I did it with a battery powered soil moisture sensor.

      I wouldn't know a specific Mosfet for your needs, but maybe one of the hardware specialists can help you.

      The question I ask my self in these situations is, do I really want a battery powered node? Or do I have access to a power outlet in the final location of the node. I prefer using phone adapters above power battery sensors. Simply because I tend to forget to swap batteries ;-) I only use battery powered node's for sensors that are not critical in terms of, it's okay if they don't report for a couple of hours because of an empty battery.

      1 Reply Last reply
      0
      • hensingH hensing

        Hi there!

        I'm new to mysensors and wonder myself if it's possible to power up an external sensor (moisture, rain, etc.) only on demand just a few seconds before the readout.

        As the most external sensors come with their own PCB / μC they drain battery. So my idea here was to power them up when I really need them with

        • a transistor
        • or a MOSFET

        by pulling up the gate with a digital output of the arduino.

        Do you have any experiences which MOSFET (and additional resistors, preferably not SMD) are well suited to switch the sensors on with an 3,3 V arduino mini pro TTL?

        Many thanks in advance

        F Offline
        F Offline
        flopp
        wrote on last edited by
        #3

        @hensing
        If the sensor doesn't use more than the pro mini TTL can give you should be able to use the TTL otherwise you need to use a e.g. MOSFET

        1 Reply Last reply
        0
        • hensingH Offline
          hensingH Offline
          hensing
          wrote on last edited by hensing
          #4

          Thank you for you quick response!
          I tried to use the TTL directly and it works :)
          But now I'm afraid that I could kill the arduino by doing this all the time.

          The moisture sensor used here is a sensor of this type ebay article with a LM393 comparator chip.

          Best regards!

          TheoLT 1 Reply Last reply
          0
          • F Offline
            F Offline
            flopp
            wrote on last edited by
            #5

            That I am also using.

            Read here https://forum.mysensors.org/topic/2147/office-plant-monitoring/64 and here https://forum.mysensors.org/topic/4045/solar-powered-soil-moisture-sensor/45

            1 Reply Last reply
            2
            • hensingH hensing

              Thank you for you quick response!
              I tried to use the TTL directly and it works :)
              But now I'm afraid that I could kill the arduino by doing this all the time.

              The moisture sensor used here is a sensor of this type ebay article with a LM393 comparator chip.

              Best regards!

              TheoLT Offline
              TheoLT Offline
              TheoL
              Contest Winner
              wrote on last edited by
              #6

              @hensing just look at the data sheet.

              Features
              •
              Wide Single−Supply Range: 2.0 Vdc to 36 Vdc
              •
              Split−Supply Range: 
              ±
              1.0 Vdc to 
              ±
              18 Vdc
              •
              Very Low Current Drain Independent of Supply Voltage: 0.4 mA
              •
              Low Input Bias Current: 25 nA
              •
              Low Input Offset Current: 5.0 nA
              •
              Low Input Offset Voltage: 5.0 mV (max) LM293/393
              

              I wouldn't worry about the LM393 destroying your Arduino.

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


              13

              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