I am building a meteostation.

There is a WEMOS D1 mini as the brain of the meteostation. For power I am using solar panels with 18650 acumulators. Through a discharge circuit it gives 5VDC to the Wemos and modules.

I'd like to save power and power up the modules only when the Wemos is on (most of time it will be in deep sleep).

I'd like to connect the modules VIN pin to 5V through a transistor and switch it off and on via digital pin of Wemos (as shown in image below)

Could you please tell me, if this is posible and what transistor should I use?



closed as off-topic by Leon Heller, laptop2d, Dwayne Reid, Elliot Alderson, Marla Jan 8 at 0:08

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

  • 2
    \$\begingroup\$ There are hundreds, if not thousands of answers to this question on Google. It is essentially a 'How can I switch 5V with 3.3V?' question. You should try Google first. Plenty of answers and explanations there. \$\endgroup\$ – MCG Jan 4 at 8:31
  • 2
    \$\begingroup\$ You should first understand the basic concept of transistor. In your case a "level shifter" or "level converter" is required (it usually uses a "MOSFET" transistor). Ensure you've search for existing questions before asking, this type of question was asked dozens of times. Once you've understood basic electronics concepts the answers to these questions should help you. \$\endgroup\$ – try-catch-finally Jan 4 at 8:45
  • \$\begingroup\$ I tried to google it first but I didn't found any think that would help, so I tried to ask this question. I think I allready found what I need there: elinux.org/RPi_GPIO_Interface_Circuits#Output_circuits Thank a lot both of you \$\endgroup\$ – Karl Go Jan 4 at 9:50
  • \$\begingroup\$ Literally just google the phrase I mentioned in my comment and you will get hundreds of examples. You're focusing too much on it being a GPIO toggling a 5V load. It is essentially switching 5V with 3.3V. Google that instead and you will find many more examples. Then you just take use it in your application \$\endgroup\$ – MCG Jan 4 at 9:56

Browse other questions tagged or ask your own question.