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...
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
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!
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.
@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.
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.
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..
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.
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
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
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 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
@@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.
@@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
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!!