advancedLEDbelt sketch works for 59 pixels but not 60+

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

Moderators: adafruit_support_bill, adafruit

advancedLEDbelt sketch works for 59 pixels but not 60+

Postby howsTricks » Thu Apr 26, 2012 11:15 pm

Playing with my LED strip continues! First off I have to say I really enjoy this thing, can't wait to get it fully setup but I'm having another issue. I'm working with the digital LED strip with 64 LEDs and it seems like the advancedLED belt sketch included in the library does not work with 60+ pixels. With 59 it works perfectly, cycling through all sort of neat patterns and presets but once I key in 60 or higher nothing lights at all. The other sketches (strandtest, longstrandtest and LEDbelt kit) work just fine with all 64 LEDs so I don't think it's a problem with my strip. I'm working with an old Arduino Duemilanove, maybe it's running into memory issues? I've tried running the original version of the code just in case there was some bug in the newer version but it results in the same issue. The coding in the advanced sketch is just a little beyond my ability to debug so I'm sure there's something I'm missing.
howsTricks
 
Posts: 4
Joined: Sun Apr 22, 2012 9:23 pm

Re: advancedLEDbelt sketch works for 59 pixels but not 60+

Postby pburgess » Fri Apr 27, 2012 12:49 am

Hey there,

Yes, the advancedLEDbelt sketch is a total memory hog. Oink oink! If you're using an ATmega168-based Duemilanove, they I could definitely see this failing even on a 64 LED strip.

You might be able to free up juuuust enough memory by reducing the size of the 'fxVars' array -- it's declared a bit larger than is used by the sketch right now. Try changing line 60 to:
Code: Select all
int  fxVars[3][10],
User avatar
pburgess
 
Posts: 1405
Joined: Sun Oct 26, 2008 1:29 am

Re: advancedLEDbelt sketch works for 59 pixels but not 60+

Postby howsTricks » Fri Apr 27, 2012 8:27 pm

That did it! Thanks a bunch
howsTricks
 
Posts: 4
Joined: Sun Apr 22, 2012 9:23 pm


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

Who is online

Users browsing this forum: mibignistinly and 7 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]
 
Android[6]
 
BeagleBone[23]
 
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]