STM32F4 Nucleo - Keil 5 IDE with CubeMX: Tutorial 37 - HC-SR05 Ultrasonic Sensor

  Рет қаралды 35,238

Mutex Embedded

Mutex Embedded

Күн бұрын

Пікірлер: 40
@GodsOnlyMonster
@GodsOnlyMonster Жыл бұрын
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
@Osimiss
@Osimiss 4 жыл бұрын
This is an awesome tutorial! The detail and pace are perfect!
@mutexembedded2206
@mutexembedded2206 4 жыл бұрын
:)
@juansebastiana.8573
@juansebastiana.8573 5 жыл бұрын
Thank you very much! Was looking for this example for a while and it worked perfectly on my STM32L476
@gunerdiren2623
@gunerdiren2623 4 жыл бұрын
A very good tutorial with a very very good explanation. Thanks! It helps me a lot.
@brianbradley1855
@brianbradley1855 5 жыл бұрын
Outstanding presentation!
@hominhhoi813
@hominhhoi813 5 жыл бұрын
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
@ashishsoni4210
@ashishsoni4210 5 жыл бұрын
Love You, Sir, Please keep uploading videos like this. Sir Can you RFID RC522 Sensor and Servo Motor next
@Fabio-211
@Fabio-211 Жыл бұрын
great video
@museemengsteab4760
@museemengsteab4760 Жыл бұрын
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 ?
@akrambija7194
@akrambija7194 Ай бұрын
very nice
@igort5418
@igort5418 4 жыл бұрын
35min video, nearly 400 lines of code, just to use an ultrasonic sensor, thats why arduino is so popular.
@glenntipton6226
@glenntipton6226 4 жыл бұрын
unfortunetaly, my senior design class wants me to use stm instead, so i'm super thankful for this video
@ivansimeonov8814
@ivansimeonov8814 11 ай бұрын
Hi, great video! Can I ask you if it would be possible to use the same trigger pin for 2 transducers?
@pusatberk4193
@pusatberk4193 5 жыл бұрын
Please UDP and TCP example
@pusatberk4193
@pusatberk4193 5 жыл бұрын
Thanks !!!!!
@haticeseremet6378
@haticeseremet6378 2 жыл бұрын
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!
@yazanbdaiwi3500
@yazanbdaiwi3500 9 ай бұрын
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.
@chanonkuansri586
@chanonkuansri586 3 жыл бұрын
Thank you :)
@antoniovasile835
@antoniovasile835 2 жыл бұрын
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.
@divyakg1158
@divyakg1158 3 жыл бұрын
i cant able to understand how to set ARR ,reset the flag reinitialise the timer (inside the function of usdelay)
@MikhailGoncharov-tl4cr
@MikhailGoncharov-tl4cr 9 ай бұрын
you are the best at all. pleASE SHOW US HOW TO DID MY OWN MP3 PLAYER. type by step
@TheOldProgramming
@TheOldProgramming 4 жыл бұрын
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?
@mutexembedded2206
@mutexembedded2206 4 жыл бұрын
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.
@TheOldProgramming
@TheOldProgramming 4 жыл бұрын
​@@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.
@vynguyenhoangquoc2702
@vynguyenhoangquoc2702 3 жыл бұрын
hey man, in realterm my computer can't recognize which port being used, how can i solve it ??
@kaihash4011
@kaihash4011 Жыл бұрын
Can this be applied to stm32G0B1CE microcontroller?
@MrLegitFlip
@MrLegitFlip 5 жыл бұрын
Can you do a tachometer project video calculating rpm with the stm32?
@romiolover6852
@romiolover6852 5 жыл бұрын
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.
@momq1434
@momq1434 5 жыл бұрын
I still cannot measure even though htim3.Init.Period is set to 1000000 - 1
@fernandoborda6422
@fernandoborda6422 4 жыл бұрын
hello man i have the same issue for some reason is not workin did you solved it?
@Engineer_Valat
@Engineer_Valat 5 жыл бұрын
Modbus RTU or Modbus TCP/IP Please...
@Desert_Man
@Desert_Man 5 жыл бұрын
Question: Aren't we supposed to oscillate the piezoelectric device when transmitting the sound wave? or is the 10uS being a single wave?
@rwbazillion
@rwbazillion 5 жыл бұрын
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 KZbin 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.
@jb8160b
@jb8160b 4 жыл бұрын
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).
@mutexembedded2206
@mutexembedded2206 4 жыл бұрын
Hi, Need to enable float printf in project settings, using STM32CubeIDE?
@jb8160b
@jb8160b 4 жыл бұрын
@@mutexembedded2206 That was it, thank you very much :)
@nktsdv
@nktsdv 2 жыл бұрын
Классный видос. У мен получилось тоже самое на stm32f0discavery (stm32f051r8t6) сделать
@JAGANNATHSAHOOtheraw
@JAGANNATHSAHOOtheraw 5 жыл бұрын
Pls do some videos on interfacing of esp8266 with rtos
@JAGANNATHSAHOOtheraw
@JAGANNATHSAHOOtheraw 5 жыл бұрын
Grt work
42. STM32CubeIDE Ultrasonic Distance Sensor. HC-SR04 with STM32F103C8T6
6:56
MicroPeta by Nizar Mohideen
Рет қаралды 25 М.
Air Sigma Girl #sigma
0:32
Jin and Hattie
Рет қаралды 45 МЛН
She wanted to set me up #shorts by Tsuriki Show
0:56
Tsuriki Show
Рет қаралды 8 МЛН
ВЛОГ ДИАНА В ТУРЦИИ
1:31:22
Lady Diana VLOG
Рет қаралды 1,2 МЛН
STM32F4-Discovery and 2 HC-SR04 ultrasonic sensors
13:39
TalTech IoT Center
Рет қаралды 20 М.
43. STM32CubeIDE Ultrasonic Distance Sensor. HC-SR04 / OLED with STM32F103C8T6
8:22
MicroPeta by Nizar Mohideen
Рет қаралды 11 М.
I just tried o3-mini
6:31
ThePrimeTime
Рет қаралды 238 М.
How to use inexpensive transducers for ultrasonic measurement
16:01
Texas Instruments
Рет қаралды 70 М.
Using input capture in STM32 || HAL || CubeMx || Frequency measure
13:42
Air Sigma Girl #sigma
0:32
Jin and Hattie
Рет қаралды 45 МЛН