Data Logger using STM32 || ESP8266 || Thingspeak

  Рет қаралды 34,673

ControllersTech

ControllersTech

Күн бұрын

Пікірлер: 171
@safridwikurniawati8094
@safridwikurniawati8094 3 жыл бұрын
Hi, why I can't send my multiple data sensor SCT 013 using DMA to thingspeak ?
@caleb7799
@caleb7799 2 жыл бұрын
For someone who hates hearing voice recordings, this type of narration is a Godsend!!
@Mort_Mort
@Mort_Mort 3 жыл бұрын
You are amazing. I haven't tried it out, but if it works i'm gonna be very happy!
@muhammadhaziq5542
@muhammadhaziq5542 4 жыл бұрын
I managed to do this tutorial with ESP8266-01, LDR sensor, and STM32F103C8. The only thing that I need to change is to use a crystal clock.
@JoelAnth0ny
@JoelAnth0ny Жыл бұрын
I have been debugging for over a week. My code gets to ESP_init and then appears to get stuck in the Uart isr. I am not sure when it is supposed to move on from ESP_init but my code gets stuck there. Not sure if I'm not understanding the code right or if I'm not getting good connection to my ESP-01
@JoelAnth0ny
@JoelAnth0ny Жыл бұрын
Nvm. I figured it out. My HAL_Delay wasn’t long enough after AT+RST because my clock was configured differently than yours. Also after (AT+CWJAP…) wait for waits for “GOT IP” but my ESP was sending “OK” so changing that field to OK solved the problem. Hope this helps anyone having similar issues
@bonziqin7341
@bonziqin7341 11 ай бұрын
@@JoelAnth0ny good day, how long is the delay?
@lanvuthihoang7227
@lanvuthihoang7227 4 жыл бұрын
I had a problem when I added the library. "Error: L6200E: Symbol huart1 multiply defined (by uartringbuffer.o and main.o)" Can you help me fix it please.
@lanvuthihoang7227
@lanvuthihoang7227 4 жыл бұрын
I fixed it by copying the library and putting it into main.c, and removing the old library (UartRingbuffer.c) It worked, but I still want to know how to fix the UartRingbuffer library or main to work as your tutorials. Thank you so much
@ControllersTech
@ControllersTech 4 жыл бұрын
In the uartringbuffer.c, where the huart1 is defined, put extern in front of it.
@minhcongho3639
@minhcongho3639 4 жыл бұрын
@@ControllersTech thank you very much
@Alan96555
@Alan96555 2 жыл бұрын
I have a problem, i use the nucleo f303 the program it stucks at ESP_Init(). What should i do?
@EpicBaNaNA
@EpicBaNaNA Жыл бұрын
Hi for some reason I am stuck in the USART2_IRQHandler function. It goes in Uart_isr(&huart2) and then comes back again and so on. Do you know what the issue could be ?
@bugrasargoz7924
@bugrasargoz7924 Жыл бұрын
Esp files are deleted in github. Could u please upload them again. I couldnt find them
@adelsalam9735
@adelsalam9735 11 күн бұрын
How can I download the libraries? please.
@prasadbabu5360
@prasadbabu5360 11 ай бұрын
Tq bro it's useful our major project
@MahadiHasan-qi1cb
@MahadiHasan-qi1cb 7 ай бұрын
I'm using STM32WL series custom board with Esp32 C3 mini is connected via uart. But I made the necessary changes according to your tutorial, my program got stuck on ESP_Init() function, therefore not going to the while loop.
@ControllersTech
@ControllersTech 7 ай бұрын
ESP32 is itself another MCU. Here I have used the ESP8266 module. They are different.
@MahadiHasan-qi1cb
@MahadiHasan-qi1cb 7 ай бұрын
@@ControllersTech What changes do I need to perform inside ESP_Init() function, Is there any possibility to make it work with your libraries?
@MahadiHasan-qi1cb
@MahadiHasan-qi1cb 7 ай бұрын
@@ControllersTech I was looking into the ESP_Init() function and step into RingBuf_Init() and Also Uart_sendstring() function, it looks like only a single letter is for RingBuf_Init() like "a" even though it should be "abc" for "SSID" and "1" it should be "1e1" and for Uart_sendstring() sending only "A" not the "AT+RST ". What could cause this issue if you have any guideline that I could follow?
@soranfatah1033
@soranfatah1033 2 жыл бұрын
Why using black themes is not a good sight
@aishwaryasr3913
@aishwaryasr3913 3 жыл бұрын
Tested this code long back and it worked. But on tssting the same SW, it gets stuck on the ESP_init() function. On debugging found out that its getting stuck on IsDataAvailable() function. What could be the issue? Appreciate your help
@Wuzz7
@Wuzz7 3 жыл бұрын
Same here. looking for help
@Wuzz7
@Wuzz7 3 жыл бұрын
Got it to work. first i checked getting started with esp8266 video. followed it everything worked. Then I double checked the code. Found an error hero make sure to comment. /* USER CODE BEGIN USART1_IRQn 0 */ Uart_isr(&huart1); /* USER CODE END USART1_IRQn 0 */ // HAL_UART_IRQHandler(&huart1); /* USER CODE BEGIN USART1_IRQn 1 */ Also checked connection for RX TX and found an error there.
@eneoxkeskin
@eneoxkeskin 2 жыл бұрын
@@Wuzz7 did you find any solution?
@sarapahlavan6637
@sarapahlavan6637 4 жыл бұрын
Hi, In the tutorial you have mentioned that you activated uart1(PA9,PA10) but in the picture and movie you have connected (D8,D2) pins? Can you please clear this for me I am confused!
@ControllersTech
@ControllersTech 4 жыл бұрын
on nucleo boards, D8 is PA9, and D2 is PA10
@gurkantopkara6556
@gurkantopkara6556 3 жыл бұрын
Sir ı have a bşg problem. I have been trying to solve it for a week but u couldn't. I wrote the same code on my stm32f429, but ı cant see the datas on thingspeaks server. I dont even see my adc value on stmstudio. Rx and Tx is correctly connected, ı double checked it. What is the problem ? I uploaded my esp to at commands also. It responds OK when ı write AT. What can ı do sir, please help me.
@ControllersTech
@ControllersTech 3 жыл бұрын
you need to debug your code and find errors. Just put breakpoints and check where the code is getting stuck. PS: No code will work without debugging
@faliainnocentiaanandas.7279
@faliainnocentiaanandas.7279 2 жыл бұрын
Hello, I have exactly the same problem as you. Have you solved it?
@bimower8019
@bimower8019 2 жыл бұрын
can u give example how to sync ds3231 rtc with NTP time using esp8266 as interface to internet. Thank u
@luismoiseslopezlopez9329
@luismoiseslopezlopez9329 3 жыл бұрын
can I turn on a led from thingspeak??
@vikneswaranrajandaran6588
@vikneswaranrajandaran6588 4 жыл бұрын
how to get external serial monitor for windows like cutecom that you used?
@ControllersTech
@ControllersTech 4 жыл бұрын
I wasn't using windows back then. For windows you can use hercules, tera term or realterm
@sureshp632
@sureshp632 4 жыл бұрын
Nice video keep it 👌 thank you very much
@SravyaTaduthuri
@SravyaTaduthuri 7 ай бұрын
@ControllersTech, firstly thanking you a lot for sharing your knowledge. can you please make a video to send sensor data to thingspeak or any other platform like rabbit mq using mqtt protocol in stm32cubeide.
@aliakbar4068
@aliakbar4068 Жыл бұрын
but you have used the node mcu, it has also one EN pin so like ESP8266-01 , we should make EN pin of node mcu high??
@ControllersTech
@ControllersTech Жыл бұрын
The nodemcu has been flashed with AT firmware and i only used the tx and rx pins from it. I didn’t check the EN pin, it might be high via internal connections
@aliakbar4068
@aliakbar4068 Жыл бұрын
@@ControllersTech is node mcu is flashed by stm32 ??
@ControllersTech
@ControllersTech Жыл бұрын
No
@aliakbar4068
@aliakbar4068 Жыл бұрын
@@ControllersTech but in your code,using UART you have sent AT commands to the node mcu!!
@ControllersTech
@ControllersTech Жыл бұрын
I said the nodemcu is flashed with AT firmware. So it behaves like an ESP8266 here.
@SravyaTaduthuri
@SravyaTaduthuri 7 ай бұрын
sir, firstly thanking you a lot for sharing your knowledge. can you please make a video to send sensor data to thingspeak or any other platform like rabbit mq using mqtt protocol in stm32cubeide.
@luquasmc
@luquasmc Жыл бұрын
Good evening, would you like to carry out this project in firebase.
@muhammadhaziq5542
@muhammadhaziq5542 4 жыл бұрын
Do I need to flash NodeMcu on ESP8266-01 first before go through this tutorial ?
@ControllersTech
@ControllersTech 4 жыл бұрын
No. Just get that esp8266... The cheaper module and it will work
@muhammadhaziq5542
@muhammadhaziq5542 4 жыл бұрын
@@ControllersTech Thank you. Will try it very soon for my project.
@KhayriHamdi-g3b
@KhayriHamdi-g3b Жыл бұрын
does it work with esp8266 nodemcu , if so how do i do the wiring
@ControllersTech
@ControllersTech Жыл бұрын
You need to flash the AT firmware on nodemcu. For connection, just connect TX with RX and RX with TX
@KhayriHamdi-g3b
@KhayriHamdi-g3b Жыл бұрын
Thank you very much for the explanation @@ControllersTech
@mahdikaffel3060
@mahdikaffel3060 3 жыл бұрын
there's implicit huart1 declaration in main.c and UartRingbuffer can't build the project any solutions to fix that
@ControllersTech
@ControllersTech 3 жыл бұрын
Enable uart in cubemx
@mahdikaffel3060
@mahdikaffel3060 3 жыл бұрын
@@ControllersTech already enabled and that's what causes an implicit declaration in main.c
@SahilJethva-vo9sl
@SahilJethva-vo9sl 8 ай бұрын
can you me connection between stm32 and esp82 ?
@ControllersTech
@ControllersTech 8 ай бұрын
It is shown on the wepage linked in the description.
@aishwaryasr3913
@aishwaryasr3913 4 жыл бұрын
I tried implementing the same and do not see any output. Can you please let me how to set the buad rate of ESP8266?
@ControllersTech
@ControllersTech 4 жыл бұрын
Look at the first video in this playlist
@aishwaryasr3913
@aishwaryasr3913 4 жыл бұрын
@@ControllersTech Both my stm board and the esp8266 are at 115200 buad rate and still no output? Can you please help me how to move further?
@ControllersTech
@ControllersTech 4 жыл бұрын
Connection ? Tx to Rx and Rx to Tx right?
@aishwaryasr3913
@aishwaryasr3913 4 жыл бұрын
@@ControllersTech it worked. The reset on flash settings were disabled. Thank you so much for your support:)
@canerbaydur5199
@canerbaydur5199 3 жыл бұрын
Hi I got while(!(Wait_for("OK "))); this problem how can ı solve this thanks
@eneoxkeskin
@eneoxkeskin 2 жыл бұрын
did you find any solution?
@alihancoban
@alihancoban 2 жыл бұрын
I am using esp8266mod the data returned is meaningless or "ready ". i didn't use extrnal power source i used stm32f4 discovrey 5V with ams1117 3.3v regulator but I didn't get the "OK" message
@ControllersTech
@ControllersTech 2 жыл бұрын
power it with 5V
@alihancoban
@alihancoban 2 жыл бұрын
@@ControllersTech thanks I’ll try
@alihancoban
@alihancoban 2 жыл бұрын
unfortunately this was not successful, I looked at the data in tx_buffer with usb ttl, they seem meaningless on the com port, I will work on it a bit, but I have no hope
@alihancoban
@alihancoban 2 жыл бұрын
@@ControllersTech okey I did it .I think problem is about usart1 I use usart2 and it worked.
@fahrukhkhan4597
@fahrukhkhan4597 8 ай бұрын
Esp files not present in the repo.
@ControllersTech
@ControllersTech 8 ай бұрын
Check my other comment.
@dayanandkumar5965
@dayanandkumar5965 Жыл бұрын
From where i can get esp32 library and ring buffer library
@ControllersTech
@ControllersTech Жыл бұрын
Start reading the descriptions of tutorial videos..
@amrijuliadi7257
@amrijuliadi7257 3 жыл бұрын
haaaaiiii,,, I have a problem where thingspeak only receive data 4 cycle only and get stuck,, when I Reset the STM32 than thingspeak receive the data again., can U help me please...
@djordjenovakovic1586
@djordjenovakovic1586 10 ай бұрын
Have you solved this error?
@DSEEUDAYMALAGAR
@DSEEUDAYMALAGAR 2 жыл бұрын
sir can u upload a video of same using hx711 sensor of storing data
@xulinqiu1997
@xulinqiu1997 4 жыл бұрын
I have the same problem as @Amine Faker. Its stuck on the Wait_for() function. And inside of the Wait_for() function, its stuck on IsDataAvailable() function.
@ControllersTech
@ControllersTech 4 жыл бұрын
after which step ? I mean after sending AT, or which command ? Also if you ware debugging, don't do step overs. Instead set breakpoints and check the rx_buffer
@xulinqiu1997
@xulinqiu1997 4 жыл бұрын
@@ControllersTech I have solved it. For some reason it doesn't work with the uart1 (it can't receive date), so I use the uart2. Thank you.
@alperenerdogan4602
@alperenerdogan4602 4 жыл бұрын
@@xulinqiu1997 are u using usart2? I have some problem
@xulinqiu1997
@xulinqiu1997 4 жыл бұрын
@@alperenerdogan4602 yes, what problem?
@alperenerdogan4602
@alperenerdogan4602 4 жыл бұрын
@@xulinqiu1997 same problem same soluotion :) i have solved it. Ty
@ismailerenayhan6089
@ismailerenayhan6089 3 жыл бұрын
Nice video. Stm32 and send the data to the database by using sim800 could you?
@attilahcen8194
@attilahcen8194 3 жыл бұрын
I am intersting for that , Any help ,Thanks
@АльбинаКалабанова
@АльбинаКалабанова 4 жыл бұрын
Thanks for the video. And i have two questions. 1. the service Thingspeak is free one? 2. Can i use WizFi360 instead of ESP8266?
@ControllersTech
@ControllersTech 4 жыл бұрын
1. Most of it yes. 2. No. This is specifically written for AT commands in esp8266
@АльбинаКалабанова
@АльбинаКалабанова 4 жыл бұрын
@@ControllersTech Thank you for the answer. If i rewrite AT commands for WizFi360 it will start working properly? Do i need to change code in UartRingbuffer.c file besides in ESPDataLogger.c? Thank you.
@АльбинаКалабанова
@АльбинаКалабанова 4 жыл бұрын
@Controllers Tech Please answer my previous question about UartRingbuffer.c file. Thank you
@ControllersTech
@ControllersTech 4 жыл бұрын
@@АльбинаКалабанова WizFi360 also supports the same AT commands. I think it should work as it is . Give it a try. If it doesn't work, then debug your code, check where it is getting stuck, and then try to change those commands according to your device
@АльбинаКалабанова
@АльбинаКалабанова 3 жыл бұрын
@@ControllersTech WizFi360 works perfectly also, thank you for helping once more time. Do you have a video instruction how to parse the data read from thingspeak.com in json formatted text or are you going to make it sometime?
@jyotirupamalakar1931
@jyotirupamalakar1931 3 жыл бұрын
Hello Sir. Can real time data uploading be done only with stm32f746g disco board to the thingspeak server. If yes, can you please help out with it. Your videos are really helpful. Thankyou
@ControllersTech
@ControllersTech 3 жыл бұрын
This video explains it.. it's uploading in real time. If you are talking about that 15 second delay, then that's because of the free account. If you don't want that restriction, you need to get the paid one..
@jyotirupamalakar1931
@jyotirupamalakar1931 3 жыл бұрын
@@ControllersTech Thankyou Sir for your valuable response. I have tried the same to upload temp values using esp8266 and Stm32f746g diacovery board. There is no error and I am getting temp values in live expression, but i am not seeing it in the cloud. Can you please help. Thankyou
@unknownworld177
@unknownworld177 2 жыл бұрын
multiple definition of `huart1'; error how to solve?
@ControllersTech
@ControllersTech 2 жыл бұрын
Put extern in front of it
@mmamuzu6959
@mmamuzu6959 4 жыл бұрын
nice tutorial 👍
@ayankhan-pr9iv
@ayankhan-pr9iv 3 жыл бұрын
Hi, thanks for the video, can you please tell me from where you've gotten those library files?
@ControllersTech
@ControllersTech 3 жыл бұрын
I wrote them myself 😮‍💨
@Well.......
@Well....... 3 жыл бұрын
@@ControllersTech where can I get them then? Can you send a link to all your libraries? I'm working with another video of yours too
@ControllersTech
@ControllersTech 3 жыл бұрын
It's all there on the website..
@Well.......
@Well....... 3 жыл бұрын
@@ControllersTech Ohh, thanks a loy
@Well.......
@Well....... 3 жыл бұрын
@@ControllersTech lot*
@onszerai755
@onszerai755 3 жыл бұрын
Are u using MQTT protocol?
@ControllersTech
@ControllersTech 3 жыл бұрын
No
@parthshinde5966
@parthshinde5966 4 жыл бұрын
Excellent!!!
@ilkerulutas7670
@ilkerulutas7670 4 жыл бұрын
I'm using stm32f0 processor so i have a problem with the uartringbuffer library. How can i solve this problem???
@ControllersTech
@ControllersTech 4 жыл бұрын
What's the problem
@ilkerulutas7670
@ilkerulutas7670 4 жыл бұрын
@@ControllersTech cant use that library bcs its calling stm32f4xx_hal.h. Can i rearrenge it for stm32f0
@ControllersTech
@ControllersTech 4 жыл бұрын
Yeah u have to change it According your controller.
@ilkerulutas7670
@ilkerulutas7670 4 жыл бұрын
@@ControllersTech how can i do that?
@ControllersTech
@ControllersTech 4 жыл бұрын
Just change f4xx with whatever header your controller supports
@mohamedelazab8705
@mohamedelazab8705 2 жыл бұрын
would you please make a project compining mqtt + ESP8266 module + STM32
@sevginursahbaz2549
@sevginursahbaz2549 4 жыл бұрын
I want to do this project with ESP32. Can I use the same library?
@ControllersTech
@ControllersTech 4 жыл бұрын
This library is written for AT commands. If you want to use it, ypu need to use AT firmware on ESP32.. which is not a good idea
@sevginursahbaz2549
@sevginursahbaz2549 4 жыл бұрын
@@ControllersTech I saw STM32 projects using ESP32 on Git hub. There was a comment that the libraries used were written for arduino in h files. Since there are too many libraries, I did not understand which one to use. Do you have any information about this topic?
@ControllersTech
@ControllersTech 4 жыл бұрын
Yeah STM32 can be used as Arduino. So you can use the Arduino libraries in Arduino IDE.
@sevginursahbaz2549
@sevginursahbaz2549 4 жыл бұрын
@@ControllersTech thank you for your help
@gunterotte
@gunterotte 4 жыл бұрын
@@ControllersTech Why isn't it a good idea on ESP32?
@adityabhawkar8403
@adityabhawkar8403 4 жыл бұрын
Hi ! Could you also show how to connect ESP8266 to Firebase
@ControllersTech
@ControllersTech 4 жыл бұрын
That's probably never going to happen, unless i have a lot of free time. Firebase library is huge.. and i don't have much understanding of the topic
@deepak_00
@deepak_00 3 жыл бұрын
@@ControllersTech Hi @Controllers Tech, I am also trying to communicate with firebase but not getting any idea how handle authentication. If you give short idea it will be huge help. Thanks
@deepak_00
@deepak_00 3 жыл бұрын
Hi @Aditya Bhawkar did you find any solution?
@muhammadhaziq5542
@muhammadhaziq5542 4 жыл бұрын
Where can I get the library files ?
@muhammadhaziq5542
@muhammadhaziq5542 4 жыл бұрын
the ESPdatalogger.c and the rest
@amfa29
@amfa29 4 жыл бұрын
Does it work with esp 8266-01 ? i tried it didn't work :( no errors in compiling but nothing was sent to the platform (i already verified my wifi/password and my API KEY )
@ControllersTech
@ControllersTech 4 жыл бұрын
Yeah it works with 8266-01. Use debugger to find where it is stuck. This works in blocking mode, so if some expected result doesn't shows up, it will stuck there
@amfa29
@amfa29 4 жыл бұрын
@@ControllersTech and is it necessary to use bypass clock ? mine is 407VGTx,with 168Mhz.
@amfa29
@amfa29 4 жыл бұрын
It's stuck on ESP_Init("***", "****");
@ControllersTech
@ControllersTech 4 жыл бұрын
No it's not necessary. You can select external crystal also. At which point in that function is it stuck ?
@amfa29
@amfa29 4 жыл бұрын
@@ControllersTech Here's my file(its a combination of ur dht tuto and this one ,i put 300 in the esp_send_data just to test ) www.mediafire.com/file/7sfi1bp5vu3e6mk/Dht_Esp.rar/file
@yuvalshahar7079
@yuvalshahar7079 4 жыл бұрын
How can i do it with the ESP32?
@ControllersTech
@ControllersTech 4 жыл бұрын
flash AT firmware first, then the code will work
@jiajiewong1058
@jiajiewong1058 3 жыл бұрын
Hi! do you manage to do it with ESP32?
@jowanijunhui
@jowanijunhui 7 ай бұрын
@@ControllersTech can i ask how to flash AT firmware? and what will you use?
@Youngduck93
@Youngduck93 4 жыл бұрын
BGM of this video really gives me confidence and a peace of mind
@brendanhayes-oberst1398
@brendanhayes-oberst1398 3 жыл бұрын
Nice videos, can you just log data to a text file on desktop?
@ControllersTech
@ControllersTech 3 жыл бұрын
You can use sd card or usb flash drive to log the dat. Later transfer to desktop
@MrMilsic
@MrMilsic 4 жыл бұрын
Parabéns pelo exemplo, montei está funcionando perfeitamente!!
@draxcube8431
@draxcube8431 Жыл бұрын
Can i get the circuit diagram 🙏 please
@ControllersTech
@ControllersTech Жыл бұрын
Link to the post is in the description
@vloggermoinhu
@vloggermoinhu 4 жыл бұрын
I wish u will be toturial about cloudmqtt.com !!!
@saranravikumar4926
@saranravikumar4926 2 жыл бұрын
.elf file missing within Debug....how to solve this issue
STM32 USB MSC Device using RAM/SD CARD
11:28
ControllersTech
Рет қаралды 25 М.
Store data into SD CARD || FreeRTOS || STM32 || ADC || DHT
17:16
ControllersTech
Рет қаралды 33 М.
The Lost World: Living Room Edition
0:46
Daniel LaBelle
Рет қаралды 27 МЛН
Who is More Stupid? #tiktok #sigmagirl #funny
0:27
CRAZY GREAPA
Рет қаралды 10 МЛН
I Sent a Subscriber to Disneyland
0:27
MrBeast
Рет қаралды 104 МЛН
PlatformIO: All you need to know in 10 Minutes!
10:56
J's e-shack
Рет қаралды 345 М.
Hacker's Guide to UART Root Shells
17:40
Flashback Team
Рет қаралды 509 М.
Serial UART with STM32 Microcontroller-Transmit and Receive Data
18:44
ESP8266 WebServer using STM32 HAL|| LED Control || Ring Buffer
8:58
ControllersTech
Рет қаралды 55 М.
WS2812 LED with STM32 || PWM using DMA
29:18
ControllersTech
Рет қаралды 54 М.
Faulty Ubiquiti POE Network Switch | Can I Fix It?
31:22
Buy it Fix it
Рет қаралды 34 М.
How to Select the Best STM32 Microcontroller for Your Project
21:37
Predictable Designs
Рет қаралды 16 М.