algorithmic modeling for Rhino
Hi World!
I’m new at working with ARDUINO and Firefly and I’m trying to work with TouchOSC for regulate some LEDs like the example of this video “Firefly + TouchOSC” http://vimeo.com/26073521
I would like to now, How can I match each fader of the TouchOSC layout, with each one of the lights? what sort of bridge should I use??
There is an example firefly definition, developed in the downloads section of Firefly experiments, but it works with the "accelerometer" messages, decomposing the signal (with pCompose) in X,Y,Z, values.
I’d like to do it with the faders, instead. Is it possible to “pimp” this file and make it work with the faders?
I hope you could help soon!
Thank you very much.
Carlos B.M.
Tags:
HI Carlos,
What you're after is really simple actually. If you go to (http://www.hexler.net/software/touchosc) then you can download their TouchOSC Editor. With this tool, you can create your own layouts (with as many faders as you want). The benefit of making your own layout (besides being in control of how it looks) if you can easily set the range of each fader (say from 0.0 to 255.0 if you're trying to control the PWM of an LED). If you use one of the default layouts, you can easily multiply the fader value from (0.0 to 1.0) by 255.0 to get the same effect... but this would eliminate one extra component. Anyway, once you've setup your interface, all you have to do is use the OSC Listener to get the values into Grasshopper. From there, you can just use a Tree Item to extract the value from each branch of the output tree (the OSC listener creates a dictionary which outputs both the name of the message, as well as the value)...and then feed that value directly into one of the digital pin inputs on the Uno Write component. This will send the data out to your arduino board and will control whatever you have setup (LED's).
HTH,
Andy
Thank for your very much Andy!!! you have answer me really fast!! I'm so grateful for the speed of your reply! I'm going to try what you have told me! I hope it works!
Thanks!!
Carlos B.M.
yeah! it works perfectly!!! thank you again!
Great. Glad I could help.
I have a couple more questions I hope you could help me, to solve:
1st (It's for a manual System). I`m trying to activate a fading sequence of lights integrated on a cellar, after stepping on a slab with a switch. It is for a corridor, and the effects looks like if the lights where following you. When you step on the slab, the led light above you, turns on with a gentle fade in and when you move it fades out. I'm trying to emulate it in an small scale model controlled with Arduino. I have connected several "fader 2way" to my Arduino board, and I have the toggles to switch them on, but I don't know how can I connect the fadder2way with a toggle, in fyrefly.
2nd (It's for an automatic system). Each one of the fathers I told you before must be automatically connect at a specific time. Is it possible to connect a clock/timer to say to the toggles: ey! at 11:00am activate the sequence and at 11:15am, stops it!
Thanks for all.
Carlos B.M.
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson.
Powered by