5822 views|9 replies

3180

Posts

0

Resources
The OP
 

STM32F103C8T6 low power consumption issue [Copy link]

I am making a product that needs low power consumption. The chip is STM32F103C8T6. There is an STM32F103C8T6 chip, a Bluetooth module, 10 buttons, and an indicator light on the board. It is powered by CR2032. Without the low power consumption function, the battery is used up in one day. Later, a low-power sleep mode was added. The program is as follows: int main(void){u8 **; long int i; char flag=0; Stm32_Clock_Init(9); //72MHz //IWDG_Init(6,800); //Watchdog initialization, 256 division, 800 counts, reset time 5s CPU_Init(); //CPU initialization VAR_Init(); //Variable initialization Timer_Init(); //Timer initialization //usart1_init(115200); //Serial port 1 initialization usart1_init(9600); usart2_init(115200); //Serial port 2 initialization InitKeyboard(); But after trying it, the battery is still used up in one day. Can an expert take a look and tell me what's wrong? Thank you!

This post is from stm32/stm8

Latest reply

The following is the current of the product using CC2640r2: /*Working current is based on the Panasonic CR2032 battery capacity of 220mAH Working state Maximum current Maximum time Connecting 7mA (0DBm) 5 seconds connected 1.2mA 10 seconds no connection idle 1.2mA 220mAH/1.2mA=183 hours (when a key is pressed continuously) Sleep 0.1uA 220mAH/0.1uA=2200000 hours=251 years*/  Details Published on 2019-3-7 15:46
Personal signature为江山踏坏了乌骓马,为社稷拉断了宝雕弓。
 

1368

Posts

6

Resources
2
 
This post was last edited by Lazy Cat Love Flying on 2019-3-6 09:12 Low power consumption of 103 has not been done yet. You can start from the following places: 1) Before going to bed, set the high and low levels of the corresponding ports to be consistent with the peripheral circuits. For example, if the peripheral is high, you also set the corresponding IO to high. 2) Before hibernation, manually turn off unused peripherals, such as serial ports, ADC, I2C, etc., and reinitialize them after waking up. 3) First use the minimum system to enter the hibernation state to test the power consumption. 4) Then calculate the power consumption of the peripherals. 5) You can add a power switch to the peripherals that consume more power, and turn off the power when not in use.
This post is from stm32/stm8
 
Personal signature专注智能产品的研究与开发,专注于电子电路的生产与制造……QQ:2912615383,电子爱好者群: void
 

6063

Posts

4

Resources
3
 
This post was last edited by damiaa on 2019-3-6 09:26 Saving power on the IO port is very important. I remember using PIC16LC62 to make a gas meter N years ago. That reached 10UA. The peripheral IO port was constantly measured. From a few milliamperes to 10UA. All of this was done from the IO port. The CPU itself can reach 1~2 microamperes. In fact, you can use STM32L0XX or STM8LXX. This is better. And it has an internal EEPROM. It is difficult to achieve low power consumption with an external EEPROM.
This post is from stm32/stm8
 
 

32

Posts

0

Resources
4
 
The CR2032 battery discharge current is not suitable for more than 20MA, so it is not suitable to use STM32; a Bluetooth IC should be used to handle this product.
This post is from stm32/stm8

Comments

What kind of battery should I use? Please recommend one. Also, I have never used Bluetooth IC before, can it be programmed? Because I still have buttons and indicator lights. Thank you!  Details Published on 2019-3-6 13:12
 
 
 

3180

Posts

0

Resources
5
 
DELAN1234567 posted on 2019-3-6 12:33 The discharge current of CR2032 battery is not suitable for more than 20MA, so it is not suitable to use STM32; a Bluetooth IC should be used to handle this product
So what kind of battery should be used? Recommend one. In addition, I have never used Bluetooth IC, can it be programmed? Because I still have buttons and indicator lights. Thank you!
This post is from stm32/stm8

Comments

I think you may want to use Bluetooth BLE, CC2640, nrf51822 can do it  Details Published on 2019-3-7 09:42
 
Personal signature为江山踏坏了乌骓马,为社稷拉断了宝雕弓。
 
 

32

Posts

0

Resources
6
 
chenbingjy posted on 2019-3-6 13:12 What kind of battery should I use? Please recommend one. Also, I have never used Bluetooth IC before. Can it be programmed? Because I still have buttons and indicator lights. Thank you!
I think you may want to use Bluetooth BLE. CC2640 and nrf51822 can handle it.
This post is from stm32/stm8

Comments

Thank you! I don't know much about these. If I use CC2640, can this chip cut off the power supply of Bluetooth when Bluetooth is in use?  Details Published on 2019-3-7 10:27
 
 
 

3180

Posts

0

Resources
7
 
DELAN1234567 posted on 2019-3-7 09:42 I think you may want to use Bluetooth BLE, CC2640, nrf51822 can do it
Thank you! I don't know much about these. If I use CC2640, can this chip cut off the power supply of Bluetooth when Bluetooth is in use?
This post is from stm32/stm8

Comments

CC2640 can wake up with ultra-low power consumption of a few microamps, and the emission current is also small, which is suitable for CR2032. You need to read the manual of CC2640 and respond to your project requirements.  Details Published on 2019-3-7 15:40
 
Personal signature为江山踏坏了乌骓马,为社稷拉断了宝雕弓。
 
 

32

Posts

0

Resources
8
 
chenbingjy posted on 2019-3-7 10:27 Thank you! I don't know much about these. If I use CC2640, can this chip cut off the power supply of Bluetooth when Bluetooth is in use?
CC2640 can wake up with ultra-low power consumption of a few tenths of a microamp, and the transmission current is also small, which is suitable for CR2032. You should read the manual of CC2640 and respond to your project requirements.
This post is from stm32/stm8
 
 
 

32

Posts

0

Resources
9
 
The following is the current of the product using CC2640r2: /*Working current is based on the Panasonic CR2032 battery capacity of 220mAH Working state Maximum current Maximum time Connecting 7mA (0DBm) 5 seconds connected 1.2mA 10 seconds no connection idle 1.2mA 220mAH/1.2mA=183 hours (when a key is pressed continuously) Sleep 0.1uA 220mAH/0.1uA=2200000 hours=251 years*/
This post is from stm32/stm8

Comments

Thank you! I'll take a look  Details Published on 2019-3-7 15:57
 
 
 

3180

Posts

0

Resources
10
 
DELAN1234567 posted on 2019-3-7 15:46 The following is the current of the product made with CC2640r2: /*The working current is based on the Panasonic CR2032 battery capacity of 220mAH. The maximum current in the working state...
Thank you! I'll take a look
This post is from stm32/stm8
 
Personal signature为江山踏坏了乌骓马,为社稷拉断了宝雕弓。
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list