Тёмный
No video :(

STM32F4 Discovery board - Keil 5 IDE with CubeMX: Tutorial 25 - DHT22 Temperature & Humidity Sensor 

Mutex Embedded
Подписаться 22 тыс.
Просмотров 19 тыс.
50% 1

This video tutorial shows how to use the DHT22 - AM2302 Temperature and Humidity Sensor. The following is the library and source code file:
github.com/MYa...

Опубликовано:

 

24 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 61   
@nithins1212
@nithins1212 2 года назад
Frankly, you're my Guru of embedded system!
@mutexembedded2206
@mutexembedded2206 2 года назад
That's kind :)
@oleksandrhusiev6544
@oleksandrhusiev6544 5 лет назад
You are great! Please continue! It will be very useful to see tutorials how to connect some modules, like ethernet, TEA5767 radio, some displays and cameras, create keyboard for pc
@przemysawkacperski8115
@przemysawkacperski8115 4 года назад
Hey, briefly to all those who had an issue only seeing "0.0" temp.&humidity values in Realterm as RobotnikzSanoka described in the comment above: Long story short, variables TempC and Humidity should be *integers and not floats.* The issue is, in the MY_DHT22.c file in DHT22_GetTemp_Humidity() function you perform a division of the temperature and humidity values, messing up with the variables' types. You need to change the division in the lines below to **TempC = Temp16/10; *Humidity = Humid16/10; in that function. Also remember to change the arguments' types to int** in the function declaration (in MY_DHT22.h), definition (in MY_DHT22.c) and calls (in main.c). In main.c, remember to define TempC and Humidity as integers. This solved my problem, hope it helps more of you. And by the way, thanks a lot @MYaqoobEmbedded for a very nice tutorial!
@chengL10
@chengL10 4 года назад
thanks for your amazing channel! really love all your content! Please continue making more! You are the best dude, really appreciate!
@mutexembedded2206
@mutexembedded2206 4 года назад
Hey, thanks!
@maisoncayson4542
@maisoncayson4542 3 года назад
i know im asking randomly but does any of you know of a trick to get back into an Instagram account? I was stupid forgot the account password. I appreciate any assistance you can offer me.
@pedrojulius5012
@pedrojulius5012 3 года назад
@Maison Cayson Instablaster :)
@maisoncayson4542
@maisoncayson4542 3 года назад
@Pedro Julius thanks so much for your reply. I found the site thru google and I'm trying it out atm. I see it takes a while so I will reply here later when my account password hopefully is recovered.
@maisoncayson4542
@maisoncayson4542 3 года назад
@Pedro Julius it worked and I now got access to my account again. I'm so happy! Thanks so much, you saved my ass :D
@jonasmink2426
@jonasmink2426 4 года назад
great tutorial, thank you very much. saved me a lot of time
@amandioreal2293
@amandioreal2293 5 лет назад
Hello, This library can work with DHT11?
@pusatberk4193
@pusatberk4193 5 лет назад
did you try?
@VishalVerma-xw9wb
@VishalVerma-xw9wb 4 года назад
hi sir, i am using your library but it only collects data once and after that it sticks at the statement " while(hal_readPin)" for an infinite time.
@wangere7697
@wangere7697 2 года назад
Hi Vishal, I have a similar problem. Did you get this resolved?
@SalarAzad
@SalarAzad 4 года назад
would it work with DHT11 the same exact way? i'm trying it, it compiles but i'm not getting data from the sensor.
@emreozturk8842
@emreozturk8842 4 года назад
Hi, How did you calculate microsecond time in microsecond function? I wonder a lot.
@samiratalebi7803
@samiratalebi7803 5 лет назад
exellent, please give us a Video how to use Bodenfeuchtigkeit mit stm32 F446. thx
@wangere7697
@wangere7697 2 года назад
Thank you for sharing this. I have a challenge. My UART only displays the readings if I reset my MCU (STM32F103C8T6). The readings are only displayed once. What could be the issue? Secondly, what is the purpose of the static uint16_t oneWirePin_Idx as defined in the MY_DHT22.C? Thank you once again.
@user-np3mr8xl7m
@user-np3mr8xl7m 4 года назад
Hi, I have a question.. I want to read the sensor by 9600 Hz but if I change the code, it doesn't work.. the program goes well with 115200 Hz, but I cannot know how to do it with 9600 Hz..
@MrZitrex
@MrZitrex 5 лет назад
Plans for more complicated stuff like SPIRIT1 from STM?
@mutexembedded2206
@mutexembedded2206 5 лет назад
I haven't used it yet
@D1e9o-SIIA
@D1e9o-SIIA 5 лет назад
will this library have any inconvenience of being used in a stm32f103c8? Could it work well the same? Thanks for what you contribute
@alihafiz4695
@alihafiz4695 5 лет назад
thank you
@bondanraharjo8223
@bondanraharjo8223 5 лет назад
great video tutorial ,, did you have libary for grapic lcd 128*64 ??
@mutexembedded2206
@mutexembedded2206 5 лет назад
Currently programming an OLED one.
@bondanraharjo8223
@bondanraharjo8223 5 лет назад
@@mutexembedded2206 i never programming oled
@bondanraharjo8223
@bondanraharjo8223 5 лет назад
@@mutexembedded2206 did you have reverence?
@mutexembedded2206
@mutexembedded2206 5 лет назад
I guess you meant reference, I use the OLED display datasheet as well as some existing libraries.
@ariefrahmadani354
@ariefrahmadani354 2 года назад
i cant show my data on LCD, can you solve it?
@yasindemir2248
@yasindemir2248 2 года назад
would it work with DHT11 the same exact way?
@yoswaldogzc4875
@yoswaldogzc4875 5 лет назад
works similar to DS18B20?
@mutexembedded2206
@mutexembedded2206 4 года назад
Not quite I guess.
@megatariwahyun.h4476
@megatariwahyun.h4476 5 лет назад
i have problem for showing that serial monitor, i dont know why, please can u help me sir? im following your video step by step and its ok until i run the source code, but the serial monitor not display anything.. baud rate and port is the same as i used.
@ZakariaRabiai
@ZakariaRabiai 4 года назад
Make sure the USART you are using is the one connected to the VCP of the ST LINK (Which version should be higher than 2.1 if i remember correctly), and also after choosing the right USART make sure the pins used are the ones connected to VCP_Rx and VCP_Tx of the ST LINK
@punit_patel
@punit_patel 5 лет назад
any plans for IWDG?
@mutexembedded2206
@mutexembedded2206 5 лет назад
Possibly
@mrigankabandyopadhyay153
@mrigankabandyopadhyay153 3 года назад
Will you provide for dht11
@nitachaudhari7732
@nitachaudhari7732 3 года назад
Hell sir nice. Sir I am trying to interface gsm and gps please can you please help me..
@oanduong7244
@oanduong7244 4 года назад
The main.c isn't work
@mehmetkoc8133
@mehmetkoc8133 3 года назад
sprintf(...) ; It gives an error. Can you help me?
@rochdimaria
@rochdimaria 3 года назад
include
@mehmetkoc8133
@mehmetkoc8133 3 года назад
@@rochdimaria thank you 👍👏
@shivamchoudhary6280
@shivamchoudhary6280 3 года назад
how can we do it using stm32cubeide?
@amintayebi
@amintayebi 3 года назад
In cube-IDE I have created a practical workshop of making a LORAWAN end device using wl55jc and B-L072Z stm32 boards, it might be helpful. Moreover I will upload the above video tutorial in cube-IDE too in few days.good luck. ru-vid.com/show-UCZpfJjgR5zA-XrB26IhOzkA
@shahrukhhussain2593
@shahrukhhussain2593 5 лет назад
sir your library link is not working . its shows a rar file can u send the right library link... thank u sir...
@mutexembedded2206
@mutexembedded2206 5 лет назад
Hi, Just checked the link.. works fine
@RobotnikzSanoka
@RobotnikzSanoka 4 года назад
Hi man. it is still a problem with reading temp and humidity values.I am using CUBE MX IDE and after debuging when I want to see live expressions i see just "0". On Realterm it is the same problem i was watchin many tutorials for DHT22 on Stm32 (i've got STM32f446RE), and still i have same problem. Can You help me. I can put a symbolic donate :D
@przemysawkacperski8115
@przemysawkacperski8115 4 года назад
Udalo sie rozwiazac problem? Mam dokladnie to samo / Did you manage to solve the problem? Looks exactly the same for me
@RobotnikzSanoka
@RobotnikzSanoka 4 года назад
@@przemysawkacperski8115 odpowiem po ang dla wszystkich. You need to go on wavashare.com and find there dht22. Waveshare company wrote quite long article about this sensor. The most important thing is place fine delays in particulary linea. IF your arę lazy pierogi you fan downoload ZIP file with source code from there
@przemysawkacperski8115
@przemysawkacperski8115 4 года назад
​@@RobotnikzSanoka Thanks for the reply, but could you describe in more detail what did you do for the system to work? I have read the article on waveshare.com you mentioned and changed all the delays to the values as in their code, but I still only get "Temp (C) = 0.0 Humidity (%) = 0.0%" messages in the terminal.
@RobotnikzSanoka
@RobotnikzSanoka 4 года назад
@@przemysawkacperski8115 you could delate check sum linę on code. Delays arę very important. Maybe go make implentation of waveshare`s code which is write on stm107 to STM of yours
@MyPodie
@MyPodie 4 года назад
RobotnikzSanoka hi sir, I am encountering the same problem right now and have spent tons of hours looking into it and tried other tutorial. However, it always gets stuck in the “while(ONE_WIRE_Pin_Reas())” while loop infinitely in the DHT22_ReadRaw method in MY_DHT22.c. Could you please kindly point out what might have gone wrong here? I’d great appreciate it!!
@yasindemir2248
@yasindemir2248 2 года назад
would it work with DHT11 the same exact way? i'm trying it, it compiles but i'm not getting data from the sensor.
@mutexembedded2206
@mutexembedded2206 2 года назад
Probably not, I am not sure if I tried it. You can try reading the 2 sensors datasheet and change code accordingly
@yasindemir2248
@yasindemir2248 2 года назад
would it work with DHT11 the same exact way? i'm trying it, it compiles but i'm not getting data from the sensor.
Далее
Cristiano ronaldo VS Tibo Inshape ! 😱😱
00:20
Просмотров 3,7 млн
STM32 I2C Setup Temperature and Humidity Sensor
8:50
Damascus Steel From Stick Welding Electrodes
14:15
Просмотров 647 тыс.
Tmux has forever changed the way I write code.
13:30
Просмотров 967 тыс.
6 Horribly Common PCB Design Mistakes
10:40
Просмотров 190 тыс.
Cristiano ronaldo VS Tibo Inshape ! 😱😱
00:20
Просмотров 3,7 млн