Show Posts
Pages: [1]
1  Using Arduino / Sensors / Re: Rotary encoders and interrupts on: August 24, 2014, 03:07:16 pm
Thank you Nick and others for this discussion. I'm using this rotary encoder from Sparkfun (https://www.sparkfun.com/products/9117)  and I loved the elegant, simple approach. Thanks so much for sharing and it's great that this is so useful even three years after the original discussion.
2  Using Arduino / LEDs and Multiplexing / Re: advice needed on: May 09, 2013, 01:12:00 pm
There's a great website called fritzing that has lots of examples, and includes code along with diagrams of how the electronic components should be arranged. Here's one doing something similar to what you're looking for:
http://fritzing.org/projects/simple-led-animation/
3  Using Arduino / Displays / Re: Displaying custom graphics on Adafruit 32x32 LED Matrix on: May 06, 2013, 11:45:03 am
SO helpful!
Converted to bytes, and doubled the capacity as you had described, but that didn't get me far.

Went into PROGMEM and that opened a whole new world: http://www.arduino.cc/en/Reference/PROGMEM

Also have been getting up to speed on bit packing:
http://playground.arduino.cc/Code/BitMath#bit_pack

And I also found this great blog post, which describes all three approaches, so I'm trying a modification of this code, which seems to be working:
http://timewitharduino.blogspot.com/2011/06/how-to-define-fonts-and-bitmaps.html

Thank you, Riva!
4  Using Arduino / Displays / Re: Displaying custom graphics on Adafruit 32x32 LED Matrix on: May 06, 2013, 09:58:35 am
I'm told by Adafruit that the libraries take up almost all the RAM, so this is likely the issue. I knew there was a way to compact the data, but wasn't sure what to search, so thank you for putting it so succinctly! I'll give all this a try and report back.
5  Using Arduino / Displays / Re: Displaying custom graphics on Adafruit 32x32 LED Matrix on: May 03, 2013, 04:06:43 pm
Actually, the code is

if(icon1==1)

I don't know how I managed to copy it differently.
6  Using Arduino / Displays / Displaying custom graphics on Adafruit 32x32 LED Matrix on: May 03, 2013, 02:31:33 pm
I'm using an Arduino Uno with this amazing 32x32 LED Matrix board & driver from Adafruit (product #607):
http://www.adafruit.com/products/607

I need to show a fast animation with icons that fill the screen and are displayed in a random order, but the method I'm using isn't working.

I was planing to use the matrix.drawPixel method that's part of the Adafruit library and create a series of arrays that represent the pixels for each icon. In other words, for 10 icons, I would have 10 arrays with 1024 elements each. I would then parse the array into 32 rows and columns.

Here's what an example array would look like:
const int icon1[]={
  0,0,1,0,1,1,0,0,1,1,0,1,0,1,0,0,0,0,1,0,1,1,0,0,1,1,0,0,0,0,0,0,
  0,1,1,1,1,1,1,1,0,0,1,1,1,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,1,1,1,0,
  0,0,1,0,1,1,0,0,1,1,0,1,0,1,0,0,0,0,1,0,1,1,0,0,1,1,0,0,0,0,0,0,
  0,1,1,1,1,1,1,1,0,0,1,1,1,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,1,1,1,0,
  0,0,1,0,1,1,0,0,1,1,0,1,0,1,0,0,0,0,1,0,1,1,0,0,1,1,0,0,0,0,0,0,
  0,1,1,1,1,1,1,1,0,0,1,1,1,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,1,1,1,0,
  0,0,1,0,1,1,0,0,1,1,0,1,0,1,0,0,0,0,1,0,1,1,0,0,1,1,0,0,0,0,0,0,
  0,1,1,1,1,1,1,1,0,0,1,1,1,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,1,1,1,0,
  0,0,1,0,1,1,0,0,1,1,0,1,0,1,0,0,0,0,1,0,1,1,0,0,1,1,0,0,0,0,0,0,
  0,1,1,1,1,1,1,1,0,0,1,1,1,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,1,1,1,0,
  0,0,1,0,1,1,0,0,1,1,0,1,0,1,0,0,0,0,1,0,1,1,0,0,1,1,0,0,0,0,0,0,
  0,1,1,1,1,1,1,1,0,0,1,1,1,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,1,1,1,0,
  0,0,1,0,1,1,0,0,1,1,0,1,0,1,0,0,0,0,1,0,1,1,0,0,1,1,0,0,0,0,0,0,
  0,1,1,1,1,1,1,1,0,0,1,1,1,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,1,1,1,0,
  0,1,1,1,1,1,1,1,0,0,1,1,1,0,0,0,1,1,1,1,1,1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,0,0,1,1,0,1,0,1,0,0,0,0,1,0,1,1,0,0,1,1,0,0,0,0,0,0,
  0,1,1,1,1,1,1,1,0,0,1,1,1,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,1,1,1,0
};


And here's how I am parsing and displaying it:
void loop() {
 
   for(int i=0;i<1024;i++){
      int horiz = i%32;//find the H position
      int vert = round(i/32);//find the V position
       if(icon1 == 1) {
         matrix.drawPixel(horiz, vert, matrix.Color333(7, 0, 0));//if this is a "1" light up a pixel, otherwise do nothing
       }   
    }
 
  delay(500);
   matrix.fillScreen(matrix.Color333(0, 0, 0));//clear the screen
  delay(500);
}


What's happening is that this code is working for up to 64 elements in one array, and if I try to read any more than that the program doesn't load at all and I get a blank screen.

Any thoughts on what might be going on? (I'm thinking perhaps it's a memory issue?)
Any suggestions for a different way to do this?

Thanks in advance!
7  Forum 2005-2010 (read only) / Exhibition / Fragile RFID-based installation on: April 07, 2010, 03:01:04 pm
This is the precursor to the Nest installation, and took place in a rough, cave-like gallery space in Lacoste, France, in March 2007. It features 100 glowing lights, but this time they were all made of hollowed out white eggs, hidden in the cracks and crevices of the cave like glowing jewels. Each has an embedded RFID tag, and when it's placed in the central "nest" sculpture (made of wax), it changes the mix of the ambient sound in the room.

All electronics were hidden from view, behind the rocks. People were forced to contend with their fear of breaking the eggs, and were rewarded with the pleasure of changing the sound in the room.

http://www.carladiana.com/fragile
8  Forum 2005-2010 (read only) / Exhibition / Nest RFID-based installation on: April 07, 2010, 02:57:27 pm
This project is from a museum installation in early 2008 at the Telfair Museum of Art in Savannah, GA. It features 100 glowing orbs dispersed around the room. Each has an embedded RFID tag, and when it's placed in the central "nest" sculpture, it changes the mix of the ambient sound in the room.

http://www.carladiana.com/nest
9  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: Coffee Level Sensor on: April 07, 2010, 02:56:52 pm
I wonder if you could do something simple with a light sensor (photocell), if it is a clear carafe coffee pot.
Pages: [1]