Posts

Showing posts from February, 2023

Week 3

Image
I found about a dozen links when I was researching the use of a mic input. One link  I found was something that wasn't useful for this particular project, but could be useful in the future. It is a tutorial that describes how to take a song that turn it into a digital artwork by mapping the audio information (most likely the amplitude) as shapes spaced out by song duration. In regards to the actual progress so far, I've somehow managed to map the mic to the LEDs, but something I found was that they were pretty jerky. I'm somewhere between wanting to fix this immediately and seeing whether this can be used to our advantage. The updated code is seen below: #include #ifdef __AVR__ #include #endif // what pin are the neopixels on? #define PIN 9 // how many pixels? #define NUMPIXELS 10 //declare a neopixel (software) object Adafruit_NeoPixel pixels = Adafruit_NeoPixel(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800); //int to store the "current" neo pixel //i...

Week 2

The first set of code is my progress with the LEDs, specifically the color and gradients. At the bottom, I recorded notes about things that I thought I may have needed to include to make the project a success. #include #ifdef __AVR__ #include #endif // what pin are the neopixels on? #define PIN 9 // how many pixels? #define NUMPIXELS 10 //declare a neopixel (software) object Adafruit_NeoPixel pixels = Adafruit_NeoPixel(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800); //int to store the "current" neo pixel //int currentPixel; //(current pixel) void setup() { pixels.begin(); // This initializes the NeoPixel library. pixels.show(); // start with all pixels off } void loop() { for (int i = 0; i   Two lines commented out were describing the lights we were planning to use for the peace bridge. [ //make LED strip a light red  //pixels.setPixelColor(i, pixels.Color(255, 25, 25)); ] This is basically assigning a color to this set of lights, and it's not yet too ...