Store data into SD CARD || FreeRTOS || STM32 || ADC || DHT

  Рет қаралды 33,870

ControllersTech

ControllersTech

Күн бұрын

Пікірлер: 54
@noweare1
@noweare1 4 жыл бұрын
Thank you for this and all your videos. What an awesome controller.
@chengL10
@chengL10 4 жыл бұрын
Great video! Could you make an example of sending values (humidity and temperature) by i2c?
@ControllersTech
@ControllersTech 4 жыл бұрын
Sending where ?
@gabrielcabrerasanchez1542
@gabrielcabrerasanchez1542 2 жыл бұрын
@@ControllersTech to the sd card
@abbrobotstudioporadnikipl9553
@abbrobotstudioporadnikipl9553 2 жыл бұрын
Hi! I have a problem with this project. Im using STM32F401RE microcontroller and sometimes I get an information "Unable to acquire semaphore" in terminal and after that reading are being stopped. Sometimes i have to restert microcontroller multiple times to get some data on SD card. I tried to change frequency to 80 MHz but it doesnt work. Can You help me with this problem?
@mecitpamuk5623
@mecitpamuk5623 3 жыл бұрын
Why we used Hardware Timer instead of Software timer in FreeRTOS ?
@embeddedjunction9204
@embeddedjunction9204 2 жыл бұрын
how we implement this for esp32 in esp-idf. can u share the code for esp32 idf
@embeddedjunction9204
@embeddedjunction9204 2 жыл бұрын
please help me i am using esp32 so how can i store with esp-idf using esp32
@adeshinaajibola5114
@adeshinaajibola5114 4 жыл бұрын
How can design full inverter circuit with low battery cutoff and overload using stm32
@bears7777777
@bears7777777 4 жыл бұрын
You could find an inverter circuit online and implement with an arduino first. Then port to stm32.
@ivanfernandolesmesroldan4502
@ivanfernandolesmesroldan4502 3 жыл бұрын
Bro where are you living, you are the best!!!!!
@Sahana740
@Sahana740 2 жыл бұрын
Nice video.. I'm also doing this data logger using Dave ide ....but I'm not getting proper result. please help!
@nayanhn9340
@nayanhn9340 Жыл бұрын
sir i need to do on AHT25 temperature sensor can u help
@woldecosgrove
@woldecosgrove 5 ай бұрын
Hello... could you do a video on reading from micro-SD card ?
@elmirakassymova380
@elmirakassymova380 2 жыл бұрын
Why my temperature updates only after reset?
@shyluj.p5115
@shyluj.p5115 2 жыл бұрын
Thanks for great video. I have tried the same method for SD card working fine. while implementing same method to SDHC card it is not working sir. please help me sir
@almightypush2251
@almightypush2251 9 ай бұрын
Make a video to store RS485 data on sd card/esp32 using mcu master blue pill😢
@LaboussoleNano
@LaboussoleNano 2 ай бұрын
Hello thanks for the video, How to save it directly in my computer? Best regards,
@jasmeetsingh7740
@jasmeetsingh7740 2 жыл бұрын
from where i can download File_Handling_RTOS.h and File_Handling_RTOS.c ????
@harryhan2974
@harryhan2974 4 жыл бұрын
please let us know about the module you use for the sd card. how is it named and where can we find it. greetings from greece
@ControllersTech
@ControllersTech 4 жыл бұрын
It's not named anything. They are all the same just ships with different branding.
@markoamon6958
@markoamon6958 4 жыл бұрын
Hi, I'm always having a problem reading dht11/dht22. The code always gets stuck and I'm running out of ideas why. Could you please help me? I'm using stm32f303k8.
@ControllersTech
@ControllersTech 4 жыл бұрын
Telegram me @controllerstech
@barrykeane2716
@barrykeane2716 3 жыл бұрын
I am having the same issue. After a while DHT_Task stops running. What could be the cause?
@markoamon6958
@markoamon6958 3 жыл бұрын
@@barrykeane2716 in my case the problem was with the frequency of the microcontroller. I had to increase it from 16MHz to 64MHz. After that it worked like a charm.
@barrykeane2716
@barrykeane2716 3 жыл бұрын
@@markoamon6958 Thank you, Marko! I changed my HCLK to 64MHz (It was originally 60MHz) and it looked like it was working, but quit after a minute or two. I changed it to 80MHz and it is still working. So, the clock does appear to be critical. Thank you for the help. Of course, I wonder why the program is unreliable at different clock frequencies. I would have to understand why before I would be confident using this in a real design.
@barrykeane2716
@barrykeane2716 3 жыл бұрын
Update: It quit after about 7 mins, so still not reliable, just takes longer to fail. Incidentally, I am using the NUCLEO-F446RE
@sureshp632
@sureshp632 4 жыл бұрын
thank you very much sir for great tutorial
@ControllersTech
@ControllersTech 4 жыл бұрын
You are most welcome
@krishnakumar-xo7ct
@krishnakumar-xo7ct 3 жыл бұрын
How to read all the log data from the file and print it using uart
@ControllersTech
@ControllersTech 3 жыл бұрын
Use f_read function. Save the date into the buffer and then transmit to the uart
@theraja011
@theraja011 4 жыл бұрын
awsm project...lots more to learn..
@ControllersTech
@ControllersTech 4 жыл бұрын
Keep watching
@hamzaisk9462
@hamzaisk9462 2 жыл бұрын
Great video.. I wonder if we can save data into excel file instead of txt file. Have you experienced storing data to excel file?
@fandusmercius723
@fandusmercius723 2 жыл бұрын
that's not embedded dev's job. someone else will take care of it dont worry
@hamzaisk9462
@hamzaisk9462 2 жыл бұрын
@@fandusmercius723 why should we need someone else if we can make it automatically?
@fandusmercius723
@fandusmercius723 2 жыл бұрын
@@hamzaisk9462 you aren't a frontend developer. Our job is to store the datas
@fandusmercius723
@fandusmercius723 2 жыл бұрын
@@hamzaisk9462 i mean you always pick the most effective and efficient way. Fast, low power etc. Why would you bother putting windows in your chipset. You have limited ram and flash.
4 жыл бұрын
Great video. Thank you for making these. Why do you remove the cmsis-related functions from the main code and then add the rtos functions?
@ControllersTech
@ControllersTech 4 жыл бұрын
Because unlike cmsis, freertos functions can be used in all other microcontrollers too
@barunbasnet
@barunbasnet 10 ай бұрын
Thankyou, however can you provide sourcecode of similar example that works in CMSIS RTOS? Just a simple example. 1 adc channel, may be potentiometer, and CMSIS rtos.
@anhemcoder4745
@anhemcoder4745 3 жыл бұрын
Thank you so much !
@barrykeane2716
@barrykeane2716 3 жыл бұрын
Very nice video! Here is my problem: The DHT_Task stops running after a while (If I increase the clock speed, it runs longer but still fails.) If I do nothing in the SDCARD_Task except delay, all tasks keep running. If I only do Mount_SD() and Unmount_SD() DHT_Task fails to run. Where could the problem be? I am using NUCLEO-446RE.
@ControllersTech
@ControllersTech 3 жыл бұрын
Could be the timing issue with DHT11.. try debugging the code. If it stops, check whether that happens in the dht code..
@barrykeane2716
@barrykeane2716 3 жыл бұрын
@@ControllersTech Thanks very much for the reply! The DHT task is not executing at all. I toggle a test flag as the first statement and watch this flag in the debugger (or set a break point). This is my first experience with freeRTOS. I'm wondering how the execution of the DHT task could be blocked in this software. I noticed that at least one other person had this same experience. I will check it out more and post anything that I discover. Thanks again!
@ControllersTech
@ControllersTech 3 жыл бұрын
But you said DHT was running for some time. Anyway give DHT11 task as highest priority and make sure no other task should be able to preempt it
@barrykeane2716
@barrykeane2716 3 жыл бұрын
@@ControllersTech Thank you again for helping me here. Yes DHT task runs for roughly 30sec. I found this: It appears that the task priorities must be 1,2,0 (DHT, ADC and SD, respectively) in order for all tasks to keep running. I just checked and the SD card has logged 688 samples! In the video you said to make the SD task the highest priority "or else the volume could fail." This seems to make sense, but for some reason does not work. Let me know if you have any insight. I will study more about freeRTOS. Thank you for this very helpful example that can be used as a guide/template for other projects.
@emreseyyar5078
@emreseyyar5078 4 жыл бұрын
Thanx for video sir i have a problem that is given below *Temperature = (int*)TEMP; *Humidity = (int*)RH; Error = ..\Src\DHT11.c(116): error: #513: a value of type "int *" cannot be assigned to an entity of type "int" could you help me for fixing this error ?
@javib8970
@javib8970 2 жыл бұрын
Superb video as usual, im following your video in a stm32f105RB, i am getting some nasty HardFaults when using Update_File() inside the FREERTOS task, if i place it at the beggining following CReate_File() it works fine. Any ideas? Edit: same happens with Format_SD(), Mount() and unmount() are fine , you dont seem to have any issue in the video.
@javib8970
@javib8970 2 жыл бұрын
I fixed it, the functions involving a SD card transfer didnt like to be interrupted by task switching. I had to raise the task priority to osPriorityRealTime Format_SD() is still not working
@Krish0724
@Krish0724 2 жыл бұрын
Hello, I had the hard fault error as well. To fix it, first try increasing the priority of the RTOS task (to osPriorityRealtime) and if you are trying to store a large amount of data into the SD card, try increasing the stack size of the RTOS task/thread. Secondly, check the formatting condition of the SD card on Windows PC and ensure that you format it to FAT32 filesystem with the allocation unit size set to 4096 bytes. Also make sure that in MIDDLEWARE ->FATFS settings from the Pinout&Configuration view, the "MAX_SS (Maximum Sector Size)" is set to 4096. Hope it helps.
@whatshoulditypehere333
@whatshoulditypehere333 2 жыл бұрын
Spi + fatfs
Corona Display Meter using STM32 || ESP8266 || OLED || LCD16X2
10:32
ControllersTech
Рет қаралды 6 М.
FreeRTOS Tutorial 2.0 || TASK Operations || STM32 || CUBEIDE
15:31
ControllersTech
Рет қаралды 43 М.
I'VE MADE A CUTE FLYING LOLLIPOP FOR MY KID #SHORTS
0:48
A Plus School
Рет қаралды 20 МЛН
29. STM32CubeIDE SD CARD. SPI with STM32F103C8T6
14:45
MicroPeta by Nizar Mohideen
Рет қаралды 26 М.
SD card using SDIO in STM32 || Uart RIng buffer || 4-Bit Mode || CubeMx
15:37
How to use ADC in STM32 Microcontroller- Read Analog Sensor Value
17:32
STM32 UART DMA and IDLE LINE || Receive unknown length DATA
19:26
ControllersTech
Рет қаралды 70 М.
STM32 + FATFS Доступ к файлам и данным.
22:50
Vladimir Medintsev
Рет қаралды 15 М.
SPI: The serial peripheral interface
33:00
Ben Eater
Рет қаралды 706 М.
STM32 SD Card Interface via SPI and FatFS Tutorial (No RTOS)
15:55
PR TechTalk
Рет қаралды 2,8 М.
Introduction to Free RTOS in STM32 || CubeIDE || Tasks || priorities
16:26
SD CARD using SPI in STM32 || Cube-IDE || File handling || uart
16:42
ControllersTech
Рет қаралды 93 М.