0

firewalker shoes/ changing colors
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

firewalker shoes/ changing colors

by memberseven on Wed May 21, 2014 9:09 pm

I tried looking through the forums everything is way too technical, i only know how to build the circuit following the step by step and copying the code for the firewalker effect, but how do i change the color of the led strip from red to like aqua blue (same as the aqua of the EL wire)

please helP!

thanks
anthony
memberseven
 
Posts: 16
Joined: Fri Mar 11, 2011 11:07 pm

Re: firewalker shoes/ changing colors

by franklin97355 on Thu May 22, 2014 1:45 am

Have you looked at the examples in the neopixel library? That should give you some ideas.

franklin97355
 
Posts: 20139
Joined: Mon Apr 21, 2008 2:33 pm
Location: Lacomb, OR.

Re: firewalker shoes/ changing colors

by memberseven on Thu May 22, 2014 1:52 am

I have no clue what that is sadly :( i would appreciate it if someone could just change that tutorial firewalker code to make it just aqua blue, i would be very greatful
memberseven
 
Posts: 16
Joined: Fri Mar 11, 2011 11:07 pm

Re: firewalker shoes/ changing colors

by franklin97355 on Thu May 22, 2014 3:32 am

I have no clue what that is sadly :(
Somewhere in your code is a statement like setPixelColor(...........) You need to change the color settings to give you the color you want. Try changing the values until you get one you like.

franklin97355
 
Posts: 20139
Joined: Mon Apr 21, 2008 2:33 pm
Location: Lacomb, OR.

Re: firewalker shoes/ changing colors

by memberseven on Thu May 22, 2014 11:56 am

i found the lines

// Set R/G/B color along outside of shoe
strip.setPixelColor(i+SHOE_LED_BACK, r, g, b);
// Pixels along inside are funny...
j = dup[i];
if(j < 255) strip.setPixelColor(j, r, g, b);

but i have no idea what to do??

thanks
memberseven
 
Posts: 16
Joined: Fri Mar 11, 2011 11:07 pm

Re: firewalker shoes/ changing colors

by adafruit_support_bill on Thu May 22, 2014 12:23 pm

The firewalker code is a little tricky. It calculates all the color values before calling setPixelColor.

I think this code should be close to what you are looking for.
What I did was simply exchange the "r" and "b" values so the color spectrum starts at blue instead of red.
Just replace the similar looking 'for' loop in your code with:

Code: Select all | TOGGLE FULL SIZE
  for(i=0; i<SHOE_LEN_LEDS; i++) { // For each LED on one side...
    level = mag[i];                // Pixel magnitude (brightness)
    if(level < 255) {              // 0-254 = black to blue-1
      b = pgm_read_byte(&gamma[level]);
      g = r = 0;
    } else if(level < 510) {       // 255-509 = blue to cyan-1
      b = 255;
      g = pgm_read_byte(&gamma[level - 255]);
      r = 0;
    } else if(level < 765) {       // 510-764 = cyan to white-1
      b = g = 255;
      r = pgm_read_byte(&gamma[level - 510]);
    } else {                       // 765+ = white
      r = g = b = 255;
    }
    // Set R/G/B color along outside of shoe
    strip.setPixelColor(i+SHOE_LED_BACK, r, g, b);
    // Pixels along inside are funny...
    j = dup[i];
    if(j < 255) strip.setPixelColor(j, r, g, b);
  }

adafruit_support_bill
 
Posts: 71819
Joined: Sat Feb 07, 2009 10:11 am

Re: firewalker shoes/ changing colors

by memberseven on Thu May 22, 2014 2:02 pm

thanks alot i place this code into the firewalker one?? or this code alone works? what im looking for is just that firewalker effect with the tutorial that uses pressure sensitivity but the just a blue looping instead of a multi colored one
memberseven
 
Posts: 16
Joined: Fri Mar 11, 2011 11:07 pm

Re: firewalker shoes/ changing colors

by adafruit_support_bill on Thu May 22, 2014 2:34 pm

That replaces the 'for' loop in the firewalker code. It will look identical, except 'r' and 'b' are reversed.

adafruit_support_bill
 
Posts: 71819
Joined: Sat Feb 07, 2009 10:11 am

Re: firewalker shoes/ changing colors

by memberseven on Thu May 22, 2014 3:04 pm

ok i shall try that. thanks
memberseven
 
Posts: 16
Joined: Fri Mar 11, 2011 11:07 pm

Re: firewalker shoes/ changing colors

by memberseven on Thu May 22, 2014 4:30 pm

okay various other problems the leds only work when i plug it into the usb. but when i unplug it doesnt get powered by the battery pack. and the velostat isnt really responding when its in the usb, it lights up randomly. ive followed the instructions to the letter. sorry i don't know what to do, not technical at all.
memberseven
 
Posts: 16
Joined: Fri Mar 11, 2011 11:07 pm

Re: firewalker shoes/ changing colors

by adafruit_support_bill on Thu May 22, 2014 4:50 pm

Make sure you have fresh batteries.
Did you test the sensor as described in the tutorial?
If you post photos showing your sensor and connections we'll take a look.

adafruit_support_bill
 
Posts: 71819
Joined: Sat Feb 07, 2009 10:11 am

Re: firewalker shoes/ changing colors

by memberseven on Thu May 22, 2014 5:11 pm

ok so here are the photos
as instructed
NeoPixel strip DIN -> FLORA D6
NeoPixel strip +5V -> FLORA VBATT
NeoPixel strip GND -> FLORA GND (any)
when plugged into usb the test code works
but when i upload the firewalker code its wonky the velostat doesnt really work
the batteries are fresh
and when i unplug the usb and switch to the 3 AAAs even the test code doesnt work

heres the link to the photos
https://www.dropbox.com/sh/ghred8m6sccv ... bcIG3JkW3a
memberseven
 
Posts: 16
Joined: Fri Mar 11, 2011 11:07 pm

Re: firewalker shoes/ changing colors

by memberseven on Thu May 22, 2014 5:29 pm

i have also uploaded a video to that same folder, where if i yank the conductive thread on the board the effect kinda works but not really, but not when i apply pressure on the velo stat
memberseven
 
Posts: 16
Joined: Fri Mar 11, 2011 11:07 pm

Re: firewalker shoes/ changing colors

by adafruit_support_bill on Thu May 22, 2014 8:34 pm

It appears that none of your connections are soldered. You need to solder your connections for reliable operation.

adafruit_support_bill
 
Posts: 71819
Joined: Sat Feb 07, 2009 10:11 am

Re: firewalker shoes/ changing colors

by memberseven on Thu May 22, 2014 8:40 pm

i have soldered them before its the same results. either the velostat or the conductive thread isn't working quite well, i did soldering on one of the shoes this is the other one, just not soldering it till i can get it to work. thanks
memberseven
 
Posts: 16
Joined: Fri Mar 11, 2011 11:07 pm

Please be positive and constructive with your questions and comments.