Close

Stream Summary and Coding Updates

A project log for ATLTVHEAD

Atltvhead is a mashup of interactive art and wearable technology with a message of positivity and encouragement to let your oddities shine!

atltvheadatltvhead 10/21/2018 at 18:090 Comments

Hey Everyone!


I wanted to ensure everyone following that I intend to keep this project going well after Hackaday's contest is over! I will be posting stream summary's and tech updates to Atltvhead, so do not worry! :)


High five mode creates a 60 second window in which commands do different animations. The rainbow heart command in high five mode now creates these shifting lines of dark and light.  Some may notice it from an example sketch of FastLED. I just changed the colors involved to something I found to be a little more sleek.

void SetupBlackAndWhiteStripedPalette()
{
    // 'black out' all 16 palette entries...
    fill_solid( currentPalette, 16, CRGB::Black);
    // and set every fourth one to white.
    currentPalette[0] = CRGB::White;
    currentPalette[4] = CRGB::White;
    currentPalette[8] = CRGB::White;
    currentPalette[12] = CRGB::White;
    
}

void FillLEDsFromPaletteColors( uint8_t colorIndex)
{
    uint8_t brightness = 255;
    
    for( int i = 0; i < NUM_LEDS; i++) {
        leds[i] = ColorFromPalette( currentPalette, colorIndex, bright, currentBlending);
        colorIndex += 3;
    }
}

 The addition of the boolean HFM is how I lock out certain animations or turn them on. Channel 5 is High five mode specific. More  about HFM can be found in the code atltvhead 2.2 copy

else if(ircMessage.text =="High Five Mode Initiated" || ircMessage.text=="Fist Bump Mode Initiated"){
       color = cHue;
       for(int ppgLooper =0; ppgLooper <= 3; ppgLooper++){
        for(int indPPG =0; indPPG<=5;indPPG++){
          changeHeartHue();
          changeBackHue();
          color = cHue;
          ppg(indPPG);
        }
       }
       color = 211;
       chanel = 4;
       HFM = true;
       channelSwitch = true;
       STime = millis();
    }
    else if(ircMessage.text =="!rainbowHeart" && HFM==true ){
      chanel=5; // new channel for high five mode
    }

 Next on my implementation list is a high five counter. It may unlock certain features the higher it get, or something. I am open to suggestions, haha. It is a good metric for communication of sorts.

Last but not least, I re-amped the Hackaday Prize video featured below:

Discussions