neopixel_fadeUpDown_sketch_jul24b-140724aIn progress for NeoPixels
Here’s my code for the arduino sketch and pure data so far. Works ok in really quiet environments if you play the song a two or three times. Would like to filter the data better to make it more accurate and perform better in environments with regular low-level noises going on. Also does anyone knows of a small lock that can be used with arduino?
I made a mock-up in Max for LED control. Here’s a screenshot.
I’m porting it to PD but in the meantime I am starting to work with Neopixel strips from AdaFruit and they have built in libraries for Arduino, so I will probably put this PD port on hold until I figure out which route to go.
The simplest interaction between the arduino and pure data is by using the comport object in pure data and sending data to it using the Arduino’s Serial object. Below is an illustration of two way communication between pure data and the arduino. On the right the comport object receives values as bytes and puts them on the first vslider. The values from the second slider are sent to the comport. On the left you can see the code for the arduino. The arduino reads the potentiometer and if the value has changed writes the value (scaled to fit in a byte) to the serial port. Then it checks to see if a value has been sent to it and if its different from the last value it sets the led pins pwm value accordingly.
My idea is still tentative, but I really want to take advantage of the leap motion sensors input capabilities.
For now, I was thinking of hooking up each sensor to a separate servo motor with something interesting attached to each.
If I can’t think of anything meaningful to append to the servos, I will make the outputs trigger some kind of sample via MIDI.
If I go the MIDI route, I will try to use the gesture library to save patterns and do something interesting with that.
Here is a leap motion promo video for anybody interested: https://www.youtube.com/watch?v=_d6KuiuteIA
Does anyone have any extra fiber optic filaments I could play with?
Found this link helpful: http://elinux.org/R-Pi_Troubleshooting#Normal_LED_status
I was curious what LEDs were indicating and this answered it, plus links to many more topics.
Here are a few Resources.
This is not nearly complete but its a good place to put some of this stuff. I will keep adding to it.
The Raspberian Distribution that we are using.
We are using a modified version of raspberrian that has pure data running on it. We added the arduino software and a few other pieces of software to it. Once we figure out how to neatly package it we will post a link to the final product. In the mean time the source for the distro and some rudimentary instructions for using it are at http://pd-la.info/pdpi/
Connecting to your Pi.
I need to write up the specific directions for our environment and both platforms but the links below are what I referenced