Features: - regular mode - ADC disabled - pins set to analog input - all not used peripherals clocks disabled - prescaler modes - HSI PLL modes - stop - standby (max deep sleep) The code: github.com/cbm80amiga/N5110_S...
Пікірлер: 35
@greensasque4 жыл бұрын
Very nice. Thanks for posting this.
@ackmaniac51014 жыл бұрын
Great video.
@pablojeldes12122 жыл бұрын
hello, I am currently doing my thesis project, part of my job is to achieve low power consumption in a bluepill, I have doubts in low consumption modes, according to the data sheet in stop mode the stm32 reaches currents of order of the micro Ampere in the stop mode, however I never get those consumptions for the stop mode, in fact the current consumption gives me practically the same as what you show in this video. my teacher insists that the consumption of the bluepill must be equal to that of the stm32, my question is, do you know what the consumption is due to? in stop/8MHz mode I get 2mA and in run mode I get 9.8mA.
@Philip88888885 жыл бұрын
Nice video! How about clocking on LSI instead of HSI?
@eka39114 жыл бұрын
very nice you are the best tnx
@muaazbadrulhisham83133 жыл бұрын
Hai great tutorial there !, i want to ask question, if it is possible to wake up from standby mode using wakeup pin PA0 pin as button?
@user-fj9lp7ot7v8 ай бұрын
Hi, I read from datasheet that the current consumption goes down to tens of microamps in standby mode. It is 0.32mA in the video? How can we further reduce it?
5 жыл бұрын
Very interesting. Some time ago I was looking for examples on how to reduce the STM32F103 power consumption, and found very little. Will you publish your code?
@cbm80amiga5 жыл бұрын
I've just added the link to my GitHub
@jacobdavis0004 жыл бұрын
Does anybody know what this song is?
@thomaspetit19945 жыл бұрын
Did you try with a screen i2c type SSD1302? I ask you the question, because with microcontrollers type atmega328, there are conflicts between the i2c and deep sleep modes.
@cbm80amiga5 жыл бұрын
I tried it with OLED too (SSD1306). But OLED i not lowpower friendly so I prefer LCDs in such applications. I didn't notice any issues with I2C, maybe because I use SoftwareI2C which is much faster and uses much less memory that Arduino Wire.
@thomaspetit19945 жыл бұрын
@@cbm80amiga Seeking why the alarm clock is not done, I realized that when I use an analogRead, the bug occurs .... When in my code I do not use analogRead, tut goes well
@thomaspetit19945 жыл бұрын
Looking a little not to put the pin analog standby, I can not do it, what do you think?
@thomaspetit19945 жыл бұрын
It s all right now: "sleepMode(false,delTime/1000); setPLL(RCC_PLLMUL_9); adc_enable(ADC1);" adc_enable(ADC1) at the end of function sleepMode() Thanks for your work ;)
@michaelpey9325 жыл бұрын
boloss
@rocchirodrigo3 жыл бұрын
How did you get as low as 1mA? On stop mode@24MHz I measured 3.9mA on my board! Do removing debugger pins (SWIO, SWCLK) make a difference? I see you just power it up with 3.3 and GND...
@cbm80amiga3 жыл бұрын
I only removed power LED. Make sure you have genuine STM32 bluepill, those fake chips can work different way.
@kolokarimsoro32934 жыл бұрын
Very Very good job ! Is a way to wakup from serial incoming value ? Thank you !
@jacobdavis0004 жыл бұрын
No.
@j.ag.35374 жыл бұрын
yes you can ,on devices with LPUART.
@svvelanautica23745 жыл бұрын
Hello, thats a great demo showing the low power modes. Do you have any examples for using the STM32 generic core HAL Timer / interrupt timer.h ?
@chiraggoyal76373 жыл бұрын
What libraries do I need to install in order to get this code working? Please tell, I have a delayed project just waiting because I have to implement sleep mode.
@cbm80amiga3 жыл бұрын
Mainly Roger's stm32duino. For N5110 I used my own N5110_SPI available at my github
@chiraggoyal76373 жыл бұрын
@@cbm80amiga Thanks so much brother. Subscribed to your channel. Great content
@dr.emmettbrown84662 жыл бұрын
Super
@annaoaulinovna Жыл бұрын
good chip
@irongarden84155 жыл бұрын
what is "stop" mode?
@cbm80amiga5 жыл бұрын
Look at STM32 datasheet for more details: 2.3.12 Low-power modes