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. NodeManager
  4. Nodemanage + EasyPCB Sleep

Nodemanage + EasyPCB Sleep

Scheduled Pinned Locked Moved NodeManager
18 Posts 6 Posters 186 Views 5 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.
  • E ElCheekytico

    @user2684 The MCP1702 appears to be a voltage regulator. Are you running a higher input voltage? I am running a pro mini on the easyPCB powered by 2xAA. All the DHT22, PIR, and SSD1306 are all powered at 3.3v. My idea was to use a 2n2222a with base to D6 and E to ground and C negative of sensors. Based on a forum post or issue on your github I saw that we can pass in -1 for the ground pin of the PowerManager constructor and of course 6 would be the power pin. Does this sound like it will work?

    MatiasVM Offline
    MatiasVM Offline
    MatiasV
    wrote on last edited by
    #9

    @ElCheekytico, I was asking myself the same question about @user2684 approach.

    For my power hungry sensors I'm experimenting using an 2n2222A Transistor with mixed success. (following this and that instructions ).

    All works OK with sensors as DHT22 and similar digital devices, but I can't make it work with Analog sensors as an soil moisture sensor. I need to test, but I believe is because the voltage drop disturbing the AREF.


    HomeAssistant
    MyController.org
    MQTT GW WIFI
    FOTA/MYSBootloader

    Phil WhitmarshP 1 Reply Last reply
    0
    • MatiasVM MatiasV

      @ElCheekytico, I was asking myself the same question about @user2684 approach.

      For my power hungry sensors I'm experimenting using an 2n2222A Transistor with mixed success. (following this and that instructions ).

      All works OK with sensors as DHT22 and similar digital devices, but I can't make it work with Analog sensors as an soil moisture sensor. I need to test, but I believe is because the voltage drop disturbing the AREF.

      Phil WhitmarshP Offline
      Phil WhitmarshP Offline
      Phil Whitmarsh
      wrote on last edited by
      #10

      @MatiasV to switch on/off power to sensors and oled displays it is best to use a logic level P-channel Fet, something like an Si2305, it is not good practice to switch power to sensors/displays by switching the ground, it's OK for a relay though.

      See this link
      https://www.avrfreaks.net/forum/hi-side-fet-switch-low-voltage

      1 Reply Last reply
      1
      • E ElCheekytico

        @user2684 The MCP1702 appears to be a voltage regulator. Are you running a higher input voltage? I am running a pro mini on the easyPCB powered by 2xAA. All the DHT22, PIR, and SSD1306 are all powered at 3.3v. My idea was to use a 2n2222a with base to D6 and E to ground and C negative of sensors. Based on a forum post or issue on your github I saw that we can pass in -1 for the ground pin of the PowerManager constructor and of course 6 would be the power pin. Does this sound like it will work?

        U Offline
        U Offline
        user2684
        Contest Winner
        wrote on last edited by
        #11

        @ElCheekytico my bad sorry I was referring to a PNP2222a or similar and for some reason I wrote down MCP1702. Yes, this is the approach I'm using as well, just pass the vcc pin which is activating the transistor hence powering on the sensor. You should use also some resistors, for sure to drive the base, potentially on the collector/emitter depending on the transistor you are using

        E MatiasVM 2 Replies Last reply
        0
        • U user2684

          @ElCheekytico my bad sorry I was referring to a PNP2222a or similar and for some reason I wrote down MCP1702. Yes, this is the approach I'm using as well, just pass the vcc pin which is activating the transistor hence powering on the sensor. You should use also some resistors, for sure to drive the base, potentially on the collector/emitter depending on the transistor you are using

          E Offline
          E Offline
          ElCheekytico
          wrote on last edited by
          #12

          @user2684 Thanks for the confirmation. Now I'm just not sure if I have enough IO pins without wiring directly from pro mini.

          @sundberg84 how many IO pins are actually available on easypcb rev10 without wiring directly from pro mini? I'm using D3 for PIR, A4/A5 for oled i2c, and D5 for DHT22. I think A0 is for battery voltage and D2 for RFM69. Maybe D6 and A1?

          sundberg84S 1 Reply Last reply
          0
          • E ElCheekytico

            @user2684 Thanks for the confirmation. Now I'm just not sure if I have enough IO pins without wiring directly from pro mini.

            @sundberg84 how many IO pins are actually available on easypcb rev10 without wiring directly from pro mini? I'm using D3 for PIR, A4/A5 for oled i2c, and D5 for DHT22. I think A0 is for battery voltage and D2 for RFM69. Maybe D6 and A1?

            sundberg84S Offline
            sundberg84S Offline
            sundberg84
            Hardware Contributor
            wrote on last edited by
            #13

            @ElCheekytico correct, every pin you have on the mysx connector.

            Controller: Proxmox VM - Home Assistant
            MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
            MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
            RFLink GW - Arduino Mega + RFLink Shield, 433mhz

            1 Reply Last reply
            0
            • U user2684

              @ElCheekytico my bad sorry I was referring to a PNP2222a or similar and for some reason I wrote down MCP1702. Yes, this is the approach I'm using as well, just pass the vcc pin which is activating the transistor hence powering on the sensor. You should use also some resistors, for sure to drive the base, potentially on the collector/emitter depending on the transistor you are using

              MatiasVM Offline
              MatiasVM Offline
              MatiasV
              wrote on last edited by
              #14

              @user2684 Did you experience any problems reading analog sensors that are powered via a transistor? I can not get reliable measurements from Capacitive Soil moisture Sensors when they are switched by a transistor.


              HomeAssistant
              MyController.org
              MQTT GW WIFI
              FOTA/MYSBootloader

              Phil WhitmarshP U 2 Replies Last reply
              0
              • MatiasVM MatiasV

                @user2684 Did you experience any problems reading analog sensors that are powered via a transistor? I can not get reliable measurements from Capacitive Soil moisture Sensors when they are switched by a transistor.

                Phil WhitmarshP Offline
                Phil WhitmarshP Offline
                Phil Whitmarsh
                wrote on last edited by
                #15

                @MatiasV said in Nodemanage + EasyPCB Sleep:

                @user2684 Did you experience any problems reading analog sensors that are powered via a transistor? I can not get reliable measurements from Capacitive Soil moisture Sensors when they are switched by a transistor.

                @MatiasV - How are you wiring up your transistor?
                Can you see the Voltage to the Sensor switching?

                1 Reply Last reply
                0
                • B bikerMark

                  @sundberg84 said in Nodemanage + EasyPCB Sleep:

                  @ElCheekytico - even better with transistor if you know how, atleast for the higher current things

                  This is exactly what I'm trying to achieve these days with an Attiny. Found a way to toggle on/off with one button: http://www.technoblogy.com/show?VOO (scroll down). When OFF; ATtiny is is a 0.5uA (!) sleep.

                  Now I want to swicth the full 10Amps on 40V with that aw..Tiny signal.
                  @sundberg84 do you know how to boost the signal to a (couple of) transistor(s)?

                  Any advice would be highly appreciated!

                  Phil WhitmarshP Offline
                  Phil WhitmarshP Offline
                  Phil Whitmarsh
                  wrote on last edited by
                  #16

                  @bikerMark said in Nodemanage + EasyPCB Sleep:

                  @sundberg84 said in Nodemanage + EasyPCB Sleep:

                  @ElCheekytico - even better with transistor if you know how, atleast for the higher current things

                  This is exactly what I'm trying to achieve these days with an Attiny. Found a way to toggle on/off with one button: http://www.technoblogy.com/show?VOO (scroll down). When OFF; ATtiny is is a 0.5uA (!) sleep.

                  Now I want to swicth the full 10Amps on 40V with that aw..Tiny signal.
                  @sundberg84 do you know how to boost the signal to a (couple of) transistor(s)?

                  Any advice would be highly appreciated!

                  I would not take too much notice of that Web Page schematics, he has drawn the Fets the wrong way around - this is on all his examples (He has mixed up the drawing of the P & N Mosfets)

                  1 Reply Last reply
                  0
                  • MatiasVM MatiasV

                    @user2684 Did you experience any problems reading analog sensors that are powered via a transistor? I can not get reliable measurements from Capacitive Soil moisture Sensors when they are switched by a transistor.

                    U Offline
                    U Offline
                    user2684
                    Contest Winner
                    wrote on last edited by
                    #17

                    @MatiasV Probably you would also need to wait a bit before reading after powering on the sensor. You can try adding a delay (in millis) as third argument to setPowerPins() of PowerManager so before the reading would take place, the Power Manager will wait a bit after power on and before giving control back to the sensor.

                    1 Reply Last reply
                    0
                    • sundberg84S sundberg84

                      @bikerMark, not sure - 10A is quite the current, i think you need some sort of relay for this. Not sure - be sure to be careful and check the datasheets .

                      B Offline
                      B Offline
                      bikerMark
                      wrote on last edited by
                      #18

                      @sundberg84 thanks, prudence is needed indeed. I abandoned this scenario and now only switch the lower energetic part of the bike.

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


                      30

                      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