Grasshopper

algorithmic modeling for Rhino

Hi,
First I would like to thank all the GH community and developpers to make interesting things possible, and to share some scripts that I found very helpful when I begun.

Then, there is my problem:
I am attenting to link different hardwares to GH (Arduino, MIDI devices, etc.) and I am currently blocked.

I managed to use the Arduino to Processing to GH definitions using UDP, but the datas I am sending are not recognized by GH (if I understand well, it is linked to the fact it is not strings (but...it is), and it  says that I cannot send multiple datas through the same port or something like that, but I'm just looping it and there is only one string on the udp port).

I saw someone here managed to link the Arduino flow of a light sensor to his Def, so I'm not desesperate to manage to do it too...

The second problem I have is this one:
I plugged a midi Novation Launchpad and made a little script in GlovePie to convert MIDI to keyboard & variables. But I didn't find how to add shortcuts or macros in GH (is it possible?). So I'm here ..

If you have an Idea on how to fix these issues, or just questions about this project, I would be happy to read them.

Sorry for my approximative English,

T.





Views: 1107

Replies to This Discussion

Hello Thibal,
We are currently reworking the UDP code. It will be released soon as a new set of Interop components. Many issues with previous interop should be resolved thanks to some great code by Giulio.

My question for you now is, what kind of string data are you receiving..if any?
Luis

p.s. I've been looking at this http://www.codeproject.com/KB/audio-video/MIDIToolkit.aspx for some clues on how to bring MIDI directly into GH...
Hi Luis, thanks for your reply,

This is great news for the UDP module!
Concerning de data, it is the data coming from the analog0 pin of an arduino. Arduino works with a standard firmata sketch, and I'm using a modified processing sketch inspired of the Mouse2D_sender from Lan/Live (using String.valueOf(sensorvalue) instead of MousX or MouseY).

In numerical terms, this is a number between 100 and 1000 refreshed every 50ms.

I will look at the miditoolkit, thanks for the reference.
T.
Look into Firefly by Liftarchitecture.

http://www.liftarchitects.com/journal/2010/3/11/firefly-beta-releas...

streams Arduino data to Grasshopper.
Hi Thibal,
Yes, I was going to suggest looking into Firefly. It allows you to stream real-time sensor data directly into GH (without going through Processing or using UDP). All you have to do is print your sensor variable to the serial port via the command Serial.println("your variable goes here"); Then, just install the Firefly toolset and open up the Serial Read component and you should be good to go. There is a read me text file that comes with the download which should explain how to use the components. Let me know if you have any troubles.
-Andy
Well, I had also the same idea so I downloaded it, but I don't have my board (currently not in my country), so I will test it in a few weeks.
Hi Thibal,

Did you make your tests with Arduino in grasshopper? Did you have some good results?
Hi,

I have been very busy until the last message and I did not found the time to play with the board. But it seems that in a few month I will.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service