Connect DHT22 to serial connection

rs232sensorsignal processingxbee

I'm trying to find a way to connect a temperature and humidity sensor DHT22 to an XBee's RX/TX pins without an additional microcontroller(Arduino or anything that needs software) or reprogramming the XBee

Disclaimer: I do software by day, noob in electronics.

I started out this wireless sensor project thinking it would be easy to skip the microcontroller but I'm now thinking it would be hard to do that without creating an unreasonably big board.

Yes, I already know that I can do it with Arduino/PIC etc. I already know I can do that with some crazy set of timers, shift registers etc.

What I'm looking for is a hack that uses the minimum number of elements.

To direct your thinking this I what I tried: I tied the Data of DHT22 to RX of the XBee to the through a diode and to TX straight up, the idea being the RX wouldn't be bothered when the DHT is transmitting. Then I set the serial settings to 115Kbit/s, hoping that I could use use this as a 1-bit oscilloscope: instead of the 40 bits that DHT transmits I'd get 4800 bits on the other end, roughly scanning the level of the DHT Data:

0000001110000001111111111000000…..

… and I would trigger the DHT by sending 11111100 or some other sequence that has 6 '1's.

I couldn't get this setup to work so I'm curious if there's a way to make it work. Any other approach I can use? Again: I'm looking only for a reliable, simple and easy to execute solutions.

Best Answer

I think you are out of luck. From the Xbee datasheet I understand the device requires a start and stop bit on de serial port. I expect no data would be recognised/transmitted without these. Although you can configure baud rate and parity (including none), there isn't an option to disable start and stop bits.