STANDBY MODE in STM32 || LOW POWER MODES || CubeIDE

  Рет қаралды 26,389

ControllersTech

ControllersTech

Күн бұрын

Purchase the Products shown in this video from :: controllerstech.store
________________________________________________________________________________________
Low Power Modes #3 :: How to Setup Standby Mode in CubeIDE
Current consumption is extremely LOW in Standby Mode
SLEEP MODE ::::: • SLEEP Mode in STM32F10...
STOP MODE ::::: • STOP MODE in STM32 || ...
To download the code, and for more explanation, goto controllerstech.com/low-power...
Check out STM32 LOW POWER modes Playlist • STM32 LOW Power MODES
________________________________________________________________________________________
****** SUPPORT US BY DONATING*****
paypal.me/controllertech
******Join the Membership******
/ @controllerstech
Join the Discord Server / discord
Join the Telegram Group t.me/controllerstechdiscuss
Follow me on Instagram / controllerstech
For more info, visit www.controllerstech.com

Пікірлер: 39
@tuloca011
@tuloca011 4 жыл бұрын
Great video as always!
@abhishekm1903
@abhishekm1903 4 жыл бұрын
Excellent work as always
@ElettronicaRiparo
@ElettronicaRiparo 4 жыл бұрын
Thank you
@nguyenhuyhoang2693
@nguyenhuyhoang2693 9 ай бұрын
Thanks your help. Respect!
@user-oq8jq9mc5y
@user-oq8jq9mc5y Жыл бұрын
Hello .Thanks for your video. Great men have Great mind.
@fixwell
@fixwell 4 жыл бұрын
Hello friend! Thank you so much for your videos! Very helpful in learning! Could you shoot a video of how to make a multi-level menu on the microcontroller, in particular for the OLED display SSD1306 128*64 with SPI interface and the blue pill Board stm32f103c8t6 or for any other STM32 microcontroller. Thanks!
@ControllersTech
@ControllersTech 4 жыл бұрын
Sure.. I'll work on that soon
@fixwell
@fixwell 4 жыл бұрын
@@ControllersTech Great news! Thanks!
@johnfrancis923
@johnfrancis923 5 ай бұрын
Hi I want to enable the wake-up function for RTC, but I didn't see a wake-up option in RTC of the STM32C011F6U6 controller in the cube IDE. I need to implement a 5-second delay while reading the temperature via SPI in standby mode to save power. Is this a limitation of my controller, or do I need to change some other settings to enable wake-up in RTC?
@suleakcay4838
@suleakcay4838 5 ай бұрын
I do the wake-up operation with the WakeUp pin on the STM32F7508-DK board, but after it goes to sleep once and wakes up with a trigger, it constantly goes to sleep and wakes up before the trigger comes and continues like a cycle. What can I do about this?
@suleakcay4838
@suleakcay4838 5 ай бұрын
I clear the flags before going into sleep mode, but the problem still persists.
@johnfrancis923
@johnfrancis923 5 ай бұрын
I am periodically waking the controller every 5 seconds to read the temperature from the MAX31855 slave device and transmit it to the computer console using UART. While sleep and stop modes work fine with my STM32 L053R8 controller, enabling shutdown mode results in incorrect temperature readings. Is this due to the short delay of 5 seconds, or is shutdown mode not suitable for my application? Please help.
@ibrahimabubakr2227
@ibrahimabubakr2227 10 ай бұрын
hello sir, I did get an STM32f401 , and the standby works fine but there is something, if (__HAL_PWR_GET_FLAG(PWR_FLAG_SB) == SET) I use this if statement to check if the wakeup reason is the RTC or the Reset as you mentioned in your blog, this If condition has an else that the board doesn't execute. when I press the Reset button it goes to the If statement. in short, I couldn't distinguish between the RTC wake-up and the reset button. I hope you get my question and help me with it
@jacobdavis000
@jacobdavis000 3 жыл бұрын
Great tutorial. Music is pleasant but was a distraction. BTW: chords? eMaj, bMaj, f#Min, aMaj, bMaj (back to eMaj)....I think.
@zekoli1243
@zekoli1243 2 жыл бұрын
Hi. I boot with stm32L010C6Tx. I am in standby mode. While waiting in standby mode, it shows between 3.1 micro amps and 50 micro amps 50 microamps is too high, I can't use it like this. . I turned off all peripherals. What else should I turn off? void SystemClock_Config(void); static void MX_GPIO_Init(void); static void MX_LPUART1_UART_Init(void); static void MX_I2C1_Init(void); static void MX_ADC_Init(void); static void MX_RTC_Init(void); if (__HAL_PWR_GET_FLAG(PWR_FLAG_SB) != RESET) { __HAL_PWR_CLEAR_FLAG(PWR_FLAG_SB); printf("Wakeup from the STANDBY MODE "); for (int i = 0; i < 20; i++) { HAL_GPIO_TogglePin(GPIOC, GPIO_PIN_13); HAL_Delay(200); } HAL_PWR_DisableWakeUpPin(PWR_WAKEUP_PIN1); HAL_RTCEx_DeactivateWakeUpTimer(&hrtc); } __HAL_PWR_CLEAR_FLAG(PWR_FLAG_WU); __HAL_RTC_WAKEUPTIMER_CLEAR_FLAG(&hrtc, RTC_FLAG_WUTF); printf("About to enter the STANDBY MODE "); for (int i = 0; i < 5; i++) { HAL_GPIO_TogglePin(GPIOC, GPIO_PIN_13); HAL_Delay(750); } HAL_PWR_EnableWakeUpPin(PWR_WAKEUP_PIN1); if (HAL_RTCEx_SetWakeUpTimer_IT(&hrtc, 0x5A55, RTC_WAKEUPCLOCK_RTCCLK_DIV16) != HAL_OK) { Error_Handler(); } printf("STANDBY MODE is ON "); HAL_GPIO_DeInit(GPIOC, GPIO_PIN_13); HAL_GPIO_DeInit(GPIOA, SDIO_Pin); HAL_GPIO_DeInit(GPIOA,GPO3_Pin); HAL_GPIO_DeInit(GPIOA,BUZZER_Pin); HAL_GPIO_DeInit(GPIOA, GPIO_PIN_0); HAL_GPIO_DeInit(GPIOA, CSB_Pin); HAL_GPIO_DeInit(GPIOA,FCSB_Pin); HAL_GPIO_DeInit(GPIOA,SCLK_Pin); HAL_UART_DeInit(&hlpuart1); HAL_I2C_DeInit(&hi2c1); HAL_ADC_DeInit(&hadc); HAL_PWR_EnterSTANDBYMode();
@sevenminuteswiththelord
@sevenminuteswiththelord 3 жыл бұрын
Hi, I have a problem with the standby mode, namely I would like to make the time appear on the LCD display for 5 seconds, while after 5 seconds the system goes into standby mode for some time, wakes up, shows the time for 5 seconds, falls asleep and so on. However, when the LCD screen wakes up, the time is not displayed, but goes into standby mode immediately.
@ControllersTech
@ControllersTech 3 жыл бұрын
And how are u keeping the track of the time ? Are u using some kind of RTC ? If you doing so, first test your code without the lcd. Just use some led and see if it is on for 5 sec or not
@ibrahimabubakr2227
@ibrahimabubakr2227 Жыл бұрын
Hi I cant fined these options in stm32cubemx with stm32f103c8t6 (I mean the alarm and wakeup section) is it supported in stm32f103 ?
@ControllersTech
@ControllersTech Жыл бұрын
I see the options are available at the register level but not in cubeMX. You can check the reference manual about how to turn the alarm on.
@ucontrolchannel5967
@ucontrolchannel5967 4 жыл бұрын
great job tahnk you. Could you also share a video about USB mass storage??
@ControllersTech
@ControllersTech 4 жыл бұрын
Not possible right now..
@ucontrolchannel5967
@ucontrolchannel5967 4 жыл бұрын
@@ControllersTech 🥺🥺🥺
@ControllersTech
@ControllersTech 4 жыл бұрын
I don't have the module, and can't buy it too.
@ucontrolchannel5967
@ucontrolchannel5967 4 жыл бұрын
@@ControllersTech Thanks a lot bro, you are doing very good job, I like your videos so much, pls continue.
@Zerk0ful
@Zerk0ful 3 жыл бұрын
Could I place this whole standby code part to while(1)? I would like to periodically read sensor values when MCU awakes.
@ControllersTech
@ControllersTech 3 жыл бұрын
What's the point of putting inside the while loop ? When the mcu wakes up from the standby, the code executes from the beginning i.e. HAL_Init () function.. So you just keep it in the main function like i did, and it will work fine
@phamthanhlong6637
@phamthanhlong6637 4 жыл бұрын
I'm new to stm32, do you have lots of tutorial videos from the beginning about it?
@lizethgallegosmartinez4958
@lizethgallegosmartinez4958 2 жыл бұрын
Hi! Using this example is possible to standby minutes or hours?? Because I tried to change the time of the standby and it only works from 1-30 seconds
@ControllersTech
@ControllersTech 2 жыл бұрын
I replied on the website..
@utkudenizaltiok860
@utkudenizaltiok860 Жыл бұрын
I want to be in lowest power mode but I want to see the values of variables at Live Expressions eve I entered that power mode as well what should I use ?
@ControllersTech
@ControllersTech Жыл бұрын
you can't.. that's not how the low power modes work
@uawhisper
@uawhisper 4 жыл бұрын
Hello. I am using stm32f103c8t6 aka bluepill. But the lowest consumption I get is 1mA. Ive removed the power regulator and the LEDs. Measuring the current witch INA3221 and the regular multimeter. Could someone please help me...?
@ControllersTech
@ControllersTech 4 жыл бұрын
Are you sure that the device is entering the standby mode ?
@uawhisper
@uawhisper 4 жыл бұрын
​@@ControllersTech i am running the folowing commands: //enable the PWR control clock RCC->APB1ENR |= RCC_APB1ENR_PWREN; //setSLEEPDEEP bit of Cortex System Control Register SCB->SCR |= SCB_SCR_SLEEPDEEP_Msk; //select standby mode PWR->CR |= PWR_CR_PDDS; //clear wake up flag PWR->CR |= PWR_CR_CWUF; //enable wake up pin PWR->CSR |= PWR_CSR_EWUP; __DSB(); /* Ensure effect of last store takes effect */ //request wait for interrupt __WFI();
@uawhisper
@uawhisper 4 жыл бұрын
Controllers Tech I am quite sure, because when I apply pos-edge pulse on PA0, it wakes up.
@ControllersTech
@ControllersTech 4 жыл бұрын
Can u simply use the function to go into the standby mode.. like i have used in the video. And than try measuring current
@uawhisper
@uawhisper 4 жыл бұрын
@@ControllersTech i am using the next code: __HAL_PWR_CLEAR_FLAG(PWR_FLAG_WU); HAL_PWR_EnableWakeUpPin(PWR_WAKEUP_PIN1); HAL_PWR_EnterSTANDBYMode(); I have two bluepills and with this code, one gives me 0.8mA and another, 0.02mA. The difference between both is that the first one has an on board power regulator and LEDs removed. The other one has exactly 0 coponents on board (just the uC and reset button). I am trying to achieve 0.002mA (2uA) because I am working on battery powered IoT device.
@muhammadbasir83
@muhammadbasir83 3 жыл бұрын
at first, i thought i was watching "How it's Made" channel.
STOP MODE in STM32 || CubeIDE || Low Power Mode
19:25
ControllersTech
Рет қаралды 23 М.
Sleep & Low Power Modes with STM32
41:28
1s and 0s
Рет қаралды 6 М.
Comfortable 🤣 #comedy #funny
00:34
Micky Makeover
Рет қаралды 11 МЛН
Nastya and SeanDoesMagic
00:16
Nastya
Рет қаралды 44 МЛН
CHOCKY MILK.. 🤣 #shorts
00:20
Savage Vlogs
Рет қаралды 17 МЛН
Они так быстро убрались!
01:00
Аришнев
Рет қаралды 2,4 МЛН
STM32. Обзор. Семейство STM32G0
35:36
NR.electronics
Рет қаралды 4,2 М.
STM32 HAL CUBE STANDBY MODE
9:11
ElectroHobby
Рет қаралды 12 М.
WATCHDOGS in STM32 || IWDG and WWDG || CubeIDE
16:56
ControllersTech
Рет қаралды 29 М.
EEVblog #900 - STM32 ARM Development Board
54:04
EEVblog
Рет қаралды 249 М.
STM32 ADC Conversion Time/Frequency Calculation || Internal Temp Sensor
19:28
DAC in STM32 || Sine wave || HAL || CubeIDE
16:07
ControllersTech
Рет қаралды 64 М.
Finding UART and Getting a Root Shell on a Linux Router
20:11
Matt Brown
Рет қаралды 33 М.
EEVblog #496 - What Is An FPGA?
37:44
EEVblog
Рет қаралды 760 М.
STM32 LowPower modes testing
4:26
cbm80amiga
Рет қаралды 12 М.
My iPhone 15 pro max 😱🫣😂
0:21
Nadir Show
Рет қаралды 1,9 МЛН
تجربة أغرب توصيلة شحن ضد القطع تماما
0:56
صدام العزي
Рет қаралды 64 МЛН
ноутбуки от 7.900 в тг laptopshoptop
0:14
Ноутбуковая лавка
Рет қаралды 3,6 МЛН
Tag him😳💕 #miniphone #iphone #samsung #smartphone #fy
0:11
Pockify™
Рет қаралды 4,8 МЛН