cancel
Showing results for 
Search instead for 
Did you mean: 

implement a one wire with UART to extarct data from DHT11 sensor

karoui2
Associate
Posted on December 22, 2013 at 18:04

Hi,

as the title shows I have to implement one wire using UART to extract data from DHT11 sensor. Can any body gives me an example of using the DHT11 sensor with stm32f4 baord. thanks in advance

#1-wire #lmgtfy
2 REPLIES 2
Posted on December 23, 2013 at 11:49

http://www.lmgtfy.com?q=DHT11

Posted on December 24, 2013 at 08:55

As noted here

https://my.st.com/public/STe2ecommunities/mcu/Lists/STM32Discovery/DispForm.aspx?ID=8725&RootFolder=/public/STe2ecommunities/mcu/Lists/STM32Discovery/STM32F0%20-%20USART%20receiving%20only%20first%20package%20of%20data&Source=https://my.st.com/public/STe2ecommunities/mcu/Lists/STM32Discovery/Flat.as...

Might it not be easier to bit-bang the protocol using GPIO than try to kludge the UART...?

A quick look at the

datasheet suggests that this ''1-wire'' interface may not be a million miles from the well-established Maxim/Dallas 1-Wire TMprotocol - to it might be worth looking to their examples, etc, for support...?