Go Down

Topic: using dht11 interfacing with Firmata (Read 824 times) previous topic - next topic

Kostantinos

Hello,
I am relatively new to the Arduino programming, so apologies if my question sounds trivial.
I am using Firmata (the standard firmata sketch from the examples).
My project comprises the DHT11 and a basic photoresistor sensor. The DHT11 can give temperature and humid rates. While I am getting the light sensor data in fine, I am getting nothing from the DHT11. Given that DHT11 gives two rates simultaneously I am not sure how this translates via Firmata.

Best
Konstantinos

robtillaart

you should first get the sensor readings right before using firmata

Check my DHT lib to read the DHT11 - http://playground.arduino.cc/Main/DHTLib - there are examples included.


Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Kostantinos

Hi,
thank you, I have read this article and followed the Notes section, I have created the folder to include .h and .cpp files as suggested. I run also the program to get the rates and seems to work just fine.
My question is:  since I want to use Firmata, do I need to embed something to the Firmata sketch (i.e standard firmata) to get the rates?

K.

robtillaart

you need to merge the firmata lib  and the DHT lib, glued with your own code into one sketch.
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Go Up