Grasshopper

algorithmic modeling for Rhino

Information

Firefly

Firefly offers a set of comprehensive software tools dedicated to bridging the gap between Grasshopper, (a free plug-in for Rhino) the Arduino microcontroller and other input/output devices. It allows near real-time data flow between the digital and physical worlds – enabling the possibility to explore virtual and physical prototypes with unprecedented fluidity.

Website: http://www.fireflyexperiments.com/
Location: Cambridge, MA
Members: 409
Latest Activity: 2 hours ago

Firefly Experiments

Firefly offers a set of comprehensive software tools dedicated to bridging the gap between Grasshopper (a free plug-in for Rhino) and the Arduino micro-controller. It allows near real-time data flow between the digital and physical worlds – enabling the possibility to explore virtual and physical prototypes with unprecedented fluidity.

As a generative modeling tool, Grasshopper offers a fluid visual interface for creating sophisticated parametric models, but by default, it lacks the ability to communicate with hardware devices such as programmable microcontrollers or haptic interfaces. Firefly fills this void. It is an extension to the Grasshopper’s parametric interface; combining a specialized set of components with a novel communication protocol (called the Firefly Firmata or Firmware) which together enable real-time communication between hardware devices and the parametric plug-in for Rhino.

A notable distinction for Firefly is that it is the first visual microcontroller programming environment designed specifically for a 3-D parametric CAD package (such as Rhino). This feature means that real-world data, acquired from various types of sensors or other input devices (video cameras, internet feeds, or mobile phone devices, etc.) can be used to explicitly define parametric relationships within a Grasshopper model. Firefly completes the communication feedback loop by allowing users the ability to send information from Grasshopper back to the microcontroller in order to incite specific actuations (ie. lights, motors, valves, etc). Ultimately, this workflow creates a new way to create interactive prototypes.

Discussion Forum

How to run Multiple Stepper Motors from Firefly

Hi There,We are making a drawing machine with a cnc router. We started with three motors 2 for X axis, 1 for Y. We can run one stepper motor with the firefly example given but not quite sure how to run two different ones with different values.Shall…Continue

Started by Levent Ozruh yesterday.

How can Arduino 5V 4-Phase Stepper Motor with ULN2003 Control Board be controled inside Firefly? 4 Replies

Hi guysCould anyone think of any way to control Arduino 5V 4-Phase Stepper Motor with ULN2003 Control Board inside Firefly?I have already tried Firefly_QuadStepper sketch and couldn't find any way around it, for the Sketch only controls 4 wire…Continue

Started by Seyed Ehsan Ayatollah. Last reply by ALI-HAUNG Nov 6.

how to connect multiple arduions by firefly?

I connect two arduinos by two usb (the first image I attached),but the arduino sketch only showed one com port. Even if the firefly show two com ports,It only choiced one arduino to connect. Not working for the second one. Did I miss something…Continue

Started by ALI-HAUNG Nov 6.

Gyro x,y,z data organization

Hi So I am new to using FireFly and have not used grasshopper in a few years. I wanted to know if anyone would be able to give me some advice on how I can organize the data coming in through the serial port in to x, y, z coordinates. I was only able…Continue

Tags: y, z, coordinates, x, Communication

Started by Aaron Lehr Nov 5.

News

Loading… Loading feed

Comment Wall

Comment

You need to be a member of Firefly to add comments!

Comment by Andy Payne on November 12, 2014 at 5:56pm

Amartuvshin, please see this thread about controlling multiple servos http://www.grasshopper3d.com/group/fireflyplugin/forum/topics/servo...

Comment by Amartuvshin on November 12, 2014 at 9:16am

Thank you Mr.Andy. It really helps a lot!
I switched the cables, and now servo works fine. However still some problem with the LEDs. The reason is my resisters are not 220 in my opinion. I've checked resister calulator and i installed on my bread. 
I have one more question. what if i want to control more servo motors individually. Do i need more arduinos or some other device to connect with my arduino uno?
This picture is showing what I am testing right now.Thank you. Have a great day!

Comment by Andy Payne on November 11, 2014 at 9:43am

Hi Amartuvshin.  Thanks for posting the images... they're really helpful.  I think what's going on is a hardware issue.  Looking at your circuit, I think you have the 5V and GND lines coming from your servo connected to the wrong wires.  If you look at the servo and the three wires coming from it, you'll notice a brown, red, and yellow.  The brown wire needs to be connected to GND, but it looks like you've connected it to the 5V line.  The red wire on the servo need to be conencted to the 5V line, but it's connected to GND.  I think because these are reversed, it's causing the connection to your serial port to drop which is why you aren't seeing it show up under the Serial Ports in the IDE.  

My suggestion would be to first close Grasshopper/Rhino.  You don't necessarily need to do this, but it will ensure that you don't have the COM port open.  Then, switch the hardware wires and see if the COM port shows back up in the IDE.  If it does, then try to re-upload the Firefly Firmata to make sure it's properly loaded.  If it gets uploaded properly, then go ahead and re-open Grasshopper/Rhino and see if the example file works properly.

Comment by Amartuvshin on November 11, 2014 at 9:34am

Hello?  I am trying rotating objects using firefly. The thing is It's my first time using arduino and firefly plugin.
I am starting with the sample files that come with the firefly installation. which is Firefly_01_Actuation.
But I am facing problem relating to the serial port. 
It works fine connected and suddenly after uploading the Firmata to the board, shows error on the grasshopper. 
The Uno Write says no connection to the device. And i checked the Arduino program, surprisingly Serial port is not active. 
More interestingly Arduino Uno shows the Uno is on COM10 port. 
I installed WinAVR and followed all the instruction from Firefly-Primer_1006. 
Please help me. 
Thank you

Comment by Emanuele Calabrò on September 26, 2014 at 12:53pm

it's an old screenshot, sorry

Comment by Andy Payne on September 26, 2014 at 12:53pm

Lastly, could you start a discussion topic about this issue instead of just posting to the wall.  That will help us track any issues and keep the comment wall more clean.  Thanks.

Comment by Andy Payne on September 26, 2014 at 12:52pm

PS, the 1023 value you're getting is not actually correct.  Either you have a hardware circuit error, which is causing your voltage to saturate around 5V (and thus the pin is returning it's maximum value of 1023) or you never actually got the firmata installed and it's returning some other number.

Comment by Andy Payne on September 26, 2014 at 12:50pm

Emanuele, it appears you're getting an error in the Arduino IDE... which may mean the firmata never actually got uploaded to your board.  Can you close Grasshopper, and try uploading the Firmata, and then restart Grasshopper?

Comment by Emanuele Calabrò on September 26, 2014 at 12:50pm

YES, i'm using "Uno Read" component and getting numbers out?

I'm using a DHT11, a DHT22 and a DS18B20

From 20 to 30 should give me values ​​and instead gives me about 1000

Comment by Emanuele Calabrò on September 26, 2014 at 12:45pm

 

Members (409)

 
 
 

Translate

Search Grasshopper

Photos

  • Add Photos
  • View All

© 2014   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service