[How?] Chaothic moving sparkles that push each other on strip

EL Wire/Tape/Panels, LEDs, pixels and strips, LCDs and TFTs, etc products from Adafruit

Moderators: adafruit_support_bill, adafruit

[How?] Chaothic moving sparkles that push each other on strip

Postby Reikoku » Mon Jan 16, 2012 8:33 am

The question is how to make effect like on this video: http://www.youtube.com/watch?v=INkkM8y4 ... age#t=122s (like chaothic moving sparkles that push each other and birth new sparkles)?
Thanx!
Reikoku
 
Posts: 9
Joined: Mon Jan 02, 2012 8:45 am

Re: [How?] Chaothic moving sparkles that push each other on strip

Postby pounce » Mon Jan 16, 2012 8:55 am

The sequence is pre-scripted and the performer is simply working with the script.

You can program your led's to light in whatever sequence you want if you are using some sort of controller.
pounce
 
Posts: 82
Joined: Wed Nov 23, 2011 5:36 pm

Re: [How?] Chaothic moving sparkles that push each other on strip

Postby Reikoku » Tue Jan 17, 2012 7:36 pm

I know that this sequence is prescripted. I want someone to help with programming this sequence, cause it's very interested, and i'm not good in programming (only starting with arduino week ago). :)
Reikoku
 
Posts: 9
Joined: Mon Jan 02, 2012 8:45 am

Re: [How?] Chaothic moving sparkles that push each other on strip

Postby pounce » Wed Jan 18, 2012 9:30 am

On the internet it's hard to know what you don't know when you post general questions and aren't specific about what you need.

Have you gone through the tutorial on the strip?

Do you have enough programming knowledge to understand how to send data to the strip to light a specific pixel/LED?

I think you should experiment with lighting single lights to the color you want using code. Doing this will give you the understanding on how to make the light move.
pounce
 
Posts: 82
Joined: Wed Nov 23, 2011 5:36 pm

Re: [How?] Chaothic moving sparkles that push each other on strip

Postby akmcafee » Sun Feb 05, 2012 4:24 pm

pounce wrote:Do you have enough programming knowledge to understand how to send data to the strip to light a specific pixel/LED?

I think you should experiment with lighting single lights to the color you want using code. Doing this will give you the understanding on how to make the light move.


Could you link to a related tutorial or project that you recommend? I am also new to arduino and electronics in general so I have been digging through a variety of forums but have not seen anything yet that specifically mentions how to light specific LEDs in the strip without any kind of chase function. Or perhaps there is a general use tutorial on send info to data and clock inputs on the LPD8806 that I also have not yet come across.
akmcafee
 
Posts: 5
Joined: Sun Feb 05, 2012 3:48 pm

Re: [How?] Chaothic moving sparkles that push each other on strip

Postby pounce » Mon Feb 06, 2012 9:26 am

You should start your own thread rather than hijacking this one.

There are many tutorials around for Arduino. Lots n Lots of good books also.

The Library for the strip that Adafruit sells contains a setPixelColor

Code: Select all
// Set pixel color from separate 7-bit R, G, B components:
void LPD8806::setPixelColor(uint16_t n, uint8_t r, uint8_t g, uint8_t b) {
  if(n < numLEDs) { // Arrays are 0-indexed, thus NOT '<='
    uint8_t *p = &pixels[n * 3];
    *p++ = g | 0x80; // LPD8806 color order is GRB,
    *p++ = r | 0x80; // not the more common RGB,
    *p++ = b | 0x80; // so the order here is intentional; don't "fix"
  }
}

// Set pixel color from 'packed' 32-bit RGB value:
void LPD8806::setPixelColor(uint16_t n, uint32_t c) {
  if(n < numLEDs) { // Arrays are 0-indexed, thus NOT '<='
    uint8_t *p = &pixels[n * 3];
    *p++ = (c >> 16) | 0x80;
    *p++ = (c >> 8) | 0x80;
    *p++ = c | 0x80;
  }
}


You can write your own also. If you don't have programming experience that can be hard to read or understand.

If you understand that you write 3 bytes per pixel and you need to write to all pixels in the strip in order...turning on the pixel you want just requires you to figure out the position of your pixel in strip, write all the ones before it with black, write the one you want with the color you want and then write the remaining ones with black. After that you latch or tell the strip that you are done writing and to show the new state of the strip.
pounce
 
Posts: 82
Joined: Wed Nov 23, 2011 5:36 pm


Return to Glowy things (LCD, LED, TFT, EL) purchased at Adafruit

Who is online

Users browsing this forum: No registered users and 6 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [114]

Raspberry Pi[82]
 
FLORA[24]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[12]
Arduino[60]
 
NETduino[14]
 
BeagleBone[23]
 
Android[6]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[39]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[9]


 
Breakout Boards[35]
LCDs & Displays[49]
Components & Parts[70]
Batteries & Power[54]
EL Wire/Tape/Panel[52]
LEDs[112]
 
Wireless[16]
Cables[66]
 
Lasers[6]
Sensors/Parts[147]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[70]
 
iDevices[13]
Tools[71]
 
Wearables[41]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[25]


 
Stickers[41]
 
Skill badges[55]
 
Books[26]
 
Circuit Playground[7]
 
Gift Certificates[4]