Another great tutorial by mutex embedded that works perfectly, I used HC-SR04 rather than HC-SR05 , also I am using STM32F4 discovery board, all your methods worked perfectly
Where do you set the function HAL_TIM_IC_CaptureCallback as the callback of timer? I see you simply create this function but i do not understand how you linked to the timer.
Thanks so much for making this. I have done everything you did, it compiles fine there is no error, but when I go to view the output in realterm there is no output. The only difference I can think of is that I am using HCSR04 instead of 5 so I dont have that extra out pin but it seems like you didnt use it. Is there anything you can think of, I have been stuck on this for days. Thanks so much!
Hi! I'll also use HCSR04 instead of 5, I'm wondering if you solve the problem or if you have the link for the code, I'd be very thankful if you help me.
Hi nice tutorial! I have a question: can i use and interrupt for the echo pin in rising and falling edge, where in rising edge i start a timer and in falling edge i get the timer value? I have 4 HC-SR05 sensors which i need to check in separate tasks in non blocking mode. Are there alternatives to the Input Caputre timer method suitable for my case?
Yes, you can use the 4 timer channels for this and use a single base timer in Input Capture Mode. You get captured value on both rising and falling, calculate the difference between them. Non-blocking.
@@mutexembedded2206 Do you mean that if i use 4 channels of the same timer in Input Capture Mode they will work simultaneously? Or i have to use 4 timer each one with 1 channel dedicated to Direct Input Capture? I am asking this for my rc car project in which i am using freertos + edf scheduler implemented using EsFree library. What i want is to fire every 60 ms the task for sensor measurement(the other task for the other sensors will fire at 61 ms and so on...). The problem of using blocking measurements is that some tasks miss their deadlines.
hello Sir nice video, i would like to ask you if you could make a tutorial of USB device audio class, as an examples generate sine wave and send it over the USB to a PC so we can hear it or record it using a software and many thanks again for your effort.
Awesome, I was going to do this as well. I am inspired by your videos, I want to do my own that will compliment your videos. I have already done a driver for an epaper LCD display and also a state machine using a function pointer, and a 5x5 keypad and 3x4 keypad using your keypad as a guide. I am wondering what are you using to develop your tutorials because I want to use a similar tool. I also got a camera that I want to use as well. If you check out my RUclips page I have already done a tutorial on timers and the usage of timers in software where you can create your own timers for applications. I'm going to add this ultrasonic to my state machine project and my next tutorial will be about different state machines from standard, and hierarchical state machines.
Another great tutorial by mutex embedded that works perfectly, I used HC-SR04 rather than HC-SR05 , also I am using STM32F4 discovery board, all your methods worked perfectly
Thank you very much!
Was looking for this example for a while and it worked perfectly on my STM32L476
This is an awesome tutorial! The detail and pace are perfect!
:)
A very good tutorial with a very very good explanation. Thanks! It helps me a lot.
Outstanding presentation!
Hi, great video! Can I ask you if it would be possible to use the same trigger pin for 2 transducers?
Please UDP and TCP example
All your videos are very useful
You can do video tutorial about Modbus rtu
I think it's a very good topic.
Use Modbus RTU to connect to HMI
Thank you for this great video, and I wonder if you have a tutorial to show how to view the measurements in an lcd display ?
Can this be applied to stm32G0B1CE microcontroller?
i cant able to understand how to set ARR ,reset the flag reinitialise the timer (inside the function of usdelay)
Where do you set the function HAL_TIM_IC_CaptureCallback as the callback of timer?
I see you simply create this function but i do not understand how you linked to the timer.
Thanks so much for making this. I have done everything you did, it compiles fine there is no error, but when I go to view the output in realterm there is no output. The only difference I can think of is that I am using HCSR04 instead of 5 so I dont have that extra out pin but it seems like you didnt use it. Is there anything you can think of, I have been stuck on this for days. Thanks so much!
Hi! I'll also use HCSR04 instead of 5, I'm wondering if you solve the problem or if you have the link for the code, I'd be very thankful if you help me.
35min video, nearly 400 lines of code, just to use an ultrasonic sensor, thats why arduino is so popular.
unfortunetaly, my senior design class wants me to use stm instead, so i'm super thankful for this video
Love You, Sir, Please keep uploading videos like this.
Sir Can you RFID RC522
Sensor and Servo Motor next
hey man, in realterm my computer can't recognize which port being used, how can i solve it ??
you are the best at all. pleASE SHOW US HOW TO DID MY OWN MP3 PLAYER. type by step
I still cannot measure even though htim3.Init.Period is set to 1000000 - 1
hello man i have the same issue for some reason is not workin did you solved it?
great video
Hi nice tutorial! I have a question: can i use and interrupt for the echo pin in rising and falling edge, where in rising edge i start a timer and in falling edge i get the timer value? I have 4 HC-SR05 sensors which i need to check in separate tasks in non blocking mode. Are there alternatives to the Input Caputre timer method suitable for my case?
Yes, you can use the 4 timer channels for this and use a single base timer in Input Capture Mode.
You get captured value on both rising and falling, calculate the difference between them. Non-blocking.
@@mutexembedded2206 Do you mean that if i use 4 channels of the same timer in Input Capture Mode they will work simultaneously? Or i have to use 4 timer each one with 1 channel dedicated to Direct Input Capture? I am asking this for my rc car project in which i am using freertos + edf scheduler implemented using EsFree library. What i want is to fire every 60 ms the task for sensor measurement(the other task for the other sensors will fire at 61 ms and so on...). The problem of using blocking measurements is that some tasks miss their deadlines.
Can you do a tachometer project video calculating rpm with the stm32?
Question: Aren't we supposed to oscillate the piezoelectric device when transmitting the sound wave? or is the 10uS being a single wave?
I have a problem. The distance float is not showing up in my serial capture. There is no value. It is just blank (CRLF and then next line).
Hi, Need to enable float printf in project settings, using STM32CubeIDE?
@@mutexembedded2206 That was it, thank you very much :)
hello Sir nice video, i would like to ask you if you could make a tutorial of USB device audio class, as an examples generate sine wave and send it over the USB to a PC so we can hear it or record it using a software and many thanks again for your effort.
Thanks !!!!!
Thank you :)
Modbus RTU or Modbus TCP/IP Please...
Awesome, I was going to do this as well. I am inspired by your videos, I want to do my own that will compliment your videos. I have already done a driver for an epaper LCD display and also a state machine using a function pointer, and a 5x5 keypad and 3x4 keypad using your keypad as a guide. I am wondering what are you using to develop your tutorials because I want to use a similar tool. I also got a camera that I want to use as well. If you check out my RUclips page I have already done a tutorial on timers and the usage of timers in software where you can create your own timers for applications.
I'm going to add this ultrasonic to my state machine project and my next tutorial will be about different state machines from standard, and hierarchical state machines.
Pls do some videos on interfacing of esp8266 with rtos
Классный видос. У мен получилось тоже самое на stm32f0discavery (stm32f051r8t6) сделать
Grt work