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

  Рет қаралды 19,762

Mutex Embedded

Mutex Embedded

Күн бұрын

Пікірлер: 61
@nithins1212
@nithins1212 3 жыл бұрын
Frankly, you're my Guru of embedded system!
@mutexembedded2206
@mutexembedded2206 3 жыл бұрын
That's kind :)
@oleksandrhusiev6544
@oleksandrhusiev6544 6 жыл бұрын
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 5 жыл бұрын
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?
@SalarAzad
@SalarAzad 5 жыл бұрын
would it work with DHT11 the same exact way? i'm trying it, it compiles but i'm not getting data from the sensor.
@VishalVerma-xw9wb
@VishalVerma-xw9wb 5 жыл бұрын
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?
@emreozturk8842
@emreozturk8842 4 жыл бұрын
Hi, How did you calculate microsecond time in microsecond function? I wonder a lot.
@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.
@yasindemir2248
@yasindemir2248 3 жыл бұрын
would it work with DHT11 the same exact way?
@강태국-m9k
@강태국-m9k 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..
@ariefrahmadani354
@ariefrahmadani354 2 жыл бұрын
i cant show my data on LCD, can you solve it?
@MrZitrex
@MrZitrex 6 жыл бұрын
Plans for more complicated stuff like SPIRIT1 from STM?
@mutexembedded2206
@mutexembedded2206 6 жыл бұрын
I haven't used it yet
@D1e9o-SIIA
@D1e9o-SIIA 6 жыл бұрын
will this library have any inconvenience of being used in a stm32f103c8? Could it work well the same? Thanks for what you contribute
@bondanraharjo8223
@bondanraharjo8223 6 жыл бұрын
great video tutorial ,, did you have libary for grapic lcd 128*64 ??
@mutexembedded2206
@mutexembedded2206 6 жыл бұрын
Currently programming an OLED one.
@bondanraharjo8223
@bondanraharjo8223 6 жыл бұрын
@@mutexembedded2206 i never programming oled
@bondanraharjo8223
@bondanraharjo8223 6 жыл бұрын
@@mutexembedded2206 did you have reverence?
@mutexembedded2206
@mutexembedded2206 6 жыл бұрын
I guess you meant reference, I use the OLED display datasheet as well as some existing libraries.
@mrigankabandyopadhyay153
@mrigankabandyopadhyay153 3 жыл бұрын
Will you provide for dht11
@yoswaldogzc4875
@yoswaldogzc4875 5 жыл бұрын
works similar to DS18B20?
@mutexembedded2206
@mutexembedded2206 5 жыл бұрын
Not quite I guess.
@punit_patel
@punit_patel 6 жыл бұрын
any plans for IWDG?
@mutexembedded2206
@mutexembedded2206 6 жыл бұрын
Possibly
@mehmetkoc8133
@mehmetkoc8133 3 жыл бұрын
sprintf(...) ; It gives an error. Can you help me?
@rochdimaria
@rochdimaria 3 жыл бұрын
include
@mehmetkoc8133
@mehmetkoc8133 3 жыл бұрын
@@rochdimaria thank you 👍👏
@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 5 жыл бұрын
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
@samiratalebi7803
@samiratalebi7803 5 жыл бұрын
exellent, please give us a Video how to use Bodenfeuchtigkeit mit stm32 F446. thx
@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. kzbin.info/door/ZpfJjgR5zA-XrB26IhOzkA
@oanduong7244
@oanduong7244 4 жыл бұрын
The main.c isn't work
@shahrukhhussain2593
@shahrukhhussain2593 6 жыл бұрын
sir your library link is not working . its shows a rar file can u send the right library link... thank u sir...
@mutexembedded2206
@mutexembedded2206 6 жыл бұрын
Hi, Just checked the link.. works fine
@RobotnikzSanoka
@RobotnikzSanoka 5 жыл бұрын
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 5 жыл бұрын
Udalo sie rozwiazac problem? Mam dokladnie to samo / Did you manage to solve the problem? Looks exactly the same for me
@RobotnikzSanoka
@RobotnikzSanoka 5 жыл бұрын
@@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 5 жыл бұрын
​@@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 5 жыл бұрын
@@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!!
@nitachaudhari7732
@nitachaudhari7732 3 жыл бұрын
Hell sir nice. Sir I am trying to interface gsm and gps please can you please help me..
@alihafiz4695
@alihafiz4695 6 жыл бұрын
thank you
@yasindemir2248
@yasindemir2248 3 жыл бұрын
would it work with DHT11 the same exact way? i'm trying it, it compiles but i'm not getting data from the sensor.
@yasindemir2248
@yasindemir2248 3 жыл бұрын
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 3 жыл бұрын
Probably not, I am not sure if I tried it. You can try reading the 2 sensors datasheet and change code accordingly
УДИВИЛ ВСЕХ СВОИМ УХОДОМ!😳 #shorts
00:49
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 3,9 МЛН
DHT11 vs DHT22 temperature and humidity sensor.
10:26
Learning Microcontrollers
Рет қаралды 734
DAC in STM32 || Sine wave || HAL || CubeIDE
16:07
ControllersTech
Рет қаралды 68 М.
Building an Electric Bike Without Electronics
13:50
Tom Stanton
Рет қаралды 588 М.
I never understood why you can't go faster than light - until now!
16:40
FloatHeadPhysics
Рет қаралды 4,6 МЛН
DHT22 Humidity and Temperature Sensor Code for STM32F1
10:40
Tech and Code Lab
Рет қаралды 1 М.