Grasshopper

algorithmic modeling for Rhino

Hi All,

I'm having difficulty extracting values from an analog luminosity sensor using an Arduino Read component through Firefly.

I am able to get proper values through the Arduino Serial Monitor when running the luminosity sensor example sketch (attached), and I am able to see values for the two analog pin inputs within the grasshopper environment via Firefly's Uno Read component, but the values are static.  I have a feeling I need to control the frequency time at which data is sampled from my luminosity sensor, but not quite sure how to amend the Firefly Firmata Sketch to achieve this (relatively new to Arduino).  

After reading another post, I suppose this has something to do with IC2?

Any thoughts?

Views: 697

Attachments:

Replies to This Discussion

You need to connect a timer to the Arduino Read component. Set the interval to 20 ms or faster to get near real time data.

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2026   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service