Powering sensors th...
 
Notifications
Clear all

Powering sensors through GPIO Pins

2 Posts
2 Users
0 Likes
631 Views
 Sven
(@sven)
Member
Joined: 2 years ago
Posts: 1
Topic starter  

Good day,

I am a Electrical Engineering student currently working on my own project which involves creating a wine bottle storage quality sensor. These questions might seem trivial but I am not very experienced when it comes to MCU's and any assistance will be greatly appreciated! This device will be powered using a CR2032 3V coin-cell battery. The aim is to run the device for over a year on this single coin-cell battery. Measurements will be taken once every hour and the device should be as small as possible (hence the coin-cell). I've chosen I2C sensors that are low power with minimum current draw. All these sensors have a minimum operation voltage of around 2V (the end-of-life voltage for the coin-cell). In-between sensor readings, the MCU will be put into sleep mode. The questions I have are concerning the power draw of these sensors while the MCU is in sleep mode.

Some of the questions I have are:

  • What are the advantages/disadvantages of powering the sensors (granted they do not exceed the current limit) through the GPIO pins? Would this minimize power consumption or is it bad practice?
  • Is a better alternative powering the sensors through the 3.3V rail of the MCU and then make use of a switch to power the loads? Is it appropriate to connect the gate of the transistor to a GPIO pin to switch the loads on and off?

If interested, the components I am using are:

If anyone has any experience in projects of this nature, your help will be greatly appreciated! 

Thank you.

 


   
Quote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 6970
 
Posted by: @sven

Good day,

I am a Electrical Engineering student currently working on my own project which involves creating a wine bottle storage quality sensor. These questions might seem trivial but I am not very experienced when it comes to MCU's and any assistance will be greatly appreciated! This device will be powered using a CR2032 3V coin-cell battery. The aim is to run the device for over a year on this single coin-cell battery. Measurements will be taken once every hour and the device should be as small as possible (hence the coin-cell). I've chosen I2C sensors that are low power with minimum current draw. All these sensors have a minimum operation voltage of around 2V (the end-of-life voltage for the coin-cell). In-between sensor readings, the MCU will be put into sleep mode. The questions I have are concerning the power draw of these sensors while the MCU is in sleep mode.

Some of the questions I have are:

  • What are the advantages/disadvantages of powering the sensors (granted they do not exceed the current limit) through the GPIO pins? Would this minimize power consumption or is it bad practice?
  • Is a better alternative powering the sensors through the 3.3V rail of the MCU and then make use of a switch to power the loads? Is it appropriate to connect the gate of the transistor to a GPIO pin to switch the loads on and off?

If interested, the components I am using are:

If anyone has any experience in projects of this nature, your help will be greatly appreciated! 

Thank you.

 

I think you would be better off with a seperate battery for the MCU and each sensor. More redundancy.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote