Grasshopper

algorithmic modeling for Rhino

Hello! Im trying to read de data from a digital sensor DHT11, (Temperature and humidity)

But I dont know how to do it with firefly!

Could you help me please??

This is the link of the sensor I'm talking about

http://learn.adafruit.com/dht/connecting-to-a-dhtxx-sensor

And I have attached the arduino code too.

 

 

Views: 1524

Attachments:

Replies to This Discussion

Carlos,

I am pretty sure that this sensor sends data to the Arduino via I2C... as opposed to being a simple analog sensor.

Firefly has a Generic Serial Read Component that you would need to use to bring in the I2C data via the Arduino... I didn't open your file, but you will probably just need to make sure that there is a Serial.print()

command at the bottom of your code that specifies the data you want to transfer.

You can then Power your Board and see your data print in the Arduino IDE Serial monitor on your computer. If you can get this working, then you should be able to use the Generic Serial Read Component that Firefly provides to read and store your data.

Sticking to Analog sensors makes things super easy with Firefly, but there are lots of great sensors that communicate only through I2C. Firefly is such an amazing set of tools. We are lucky to have it to work with.

Two years before, was today's my question. 
thanks to you both. 
I got the answer here and it worked.

http://fabacademy.org/archives/2015/eu/students/perona.francesca/ht...

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service