Pages: [1]   Go Down
Author Topic: using dht11 interfacing with Firmata  (Read 656 times)
0 Members and 1 Guest are viewing this topic.
Birmingham, UK
Offline Offline
Newbie
*
Karma: 0
Posts: 17
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 211
Posts: 13477
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.


Logged

Rob Tillaart

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

Birmingham, UK
Offline Offline
Newbie
*
Karma: 0
Posts: 17
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 211
Posts: 13477
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Rob Tillaart

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

Pages: [1]   Go Up
Jump to: