0

June 17, 2011 AT 1:30 pm

“Breathing” Sleep LED – Arduino cufflinks :)

Jersagfast writes

I always have loved Apple and their non-jerky, fluid like GUI in all of their OS’s. Then I noticed it even with their hardware when I got my MacBook Pro over 3 years ago. My older PC’s always had a flashing sleep LED. That was fine until I saw the “breathing” LED pattern that Apple did on the Mac products. Much nicer. I saw these awesome cufflinks with the same “breathing” pattern, and got inspired to write a little Arduino sketch to replicate it. So I did.


Check out all the Circuit Playground Episodes! Our new kid’s show and subscribe!

Have an amazing project to share? Join the SHOW-AND-TELL every Wednesday night at 7:30pm ET on Google+ Hangouts.

Join us every Wednesday night at 8pm ET for Ask an Engineer!

Learn resistor values with Mho’s Resistance or get the best electronics calculator for engineers “Circuit Playground”Adafruit’s Apps!


Maker Business — Amazon’s Domination is Blocked by a Delivery Truck

Wearables — Special servo movement

Electronics — Alternate Triggering

Biohacking — Exist.io – Track Everything Together

Get the only spam-free daily newsletter about wearables, running a "maker business", electronic tips and more! Subscribe at AdafruitDaily.com !



5 Comments

  1. http://www.youtube.com/watch?v=gGyCEox4Szo

    i did something similar for my car

  2. Now we just need the zoot suit to come back so we have room to hide all these hunks of hardware.

  3. that is really cool and kinda sweet seeing those two snoozing together! How did you get it to match up with your mac?

  4. My take on this breather

    /* This fader basically declares output values based on the values in the array
    The output pin is pin 11, the values are straight from Adafruits cufflink code, tweak to taste*/

    int fadelvl[]={255, 255, 255, 255, 255, 255, 255, 255, 252, 247, 235, 235, 230, 225, 218, 213, 208, 206, 199, 189, 187, 182, 182, 177, 175, 168, 165, 163, 158, 148, 146, 144, 144, 141, 139, 136, 134, 127, 122, 120, 117, 115, 112, 112, 110, 110, 108, 103, 96, 96, 93, 91, 88, 88, 88, 88, 84, 79, 76, 74, 74, 72, 72, 72, 72, 69, 69, 62, 60, 60, 57, 57, 57, 55, 55, 55, 55, 48, 48, 45, 45, 43, 43, 40, 40, 40, 40, 36, 36, 36, 33, 33, 31, 31, 31, 28, 28, 26, 26, 26, 26, 24, 24, 21, 21, 21, 21, 20, 19, 19, 16, 16, 16, 16, 14, 14, 14, 16, 12, 12, 12, 12, 12, 9, 9, 9, 9, 9, 9, 7, 7, 7, 7, 7, 7, 4, 4, 4, 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 4, 4, 4, 4, 4, 7, 7, 7, 7, 7, 7, 9, 9, 9, 12, 12, 12, 14, 14, 16, 16, 16, 16, 21, 21, 21, 21, 24, 24, 26, 28, 28, 28, 31, 36, 33, 36, 36, 40, 40, 43, 43, 45, 48, 52, 55, 55, 55, 57, 62, 62, 64, 67, 72, 74, 79, 81, 86, 86, 86, 88, 93, 96, 98, 100, 112, 115, 117, 124, 127, 129, 129, 136, 141, 144, 148, 160, 165, 170, 175, 184, 189, 194, 199, 208, 213, 220, 237, 244, 252, 255, 255, 255, 255, 255, 255, 255};

    void setup() {
    pinMode(11, OUTPUT);//11 is output pin
    Serial.begin(9600);
    }

    void loop() {

    int i;
    for (i = 0; i < 299; i = i + 1) {
    analogWrite(11, fadelvl[i]);
    Serial.println(fadelvl[i]);
    delay (20);
    }
    }

  5. Nice Volvo lights sp00nix.

    Maria, I would love to tell you some great technical way I got them in sync, but it was basically mashing on the reset button until I got the timing right. I spent about an hour paying with different delays and fade rates before getting the pattern.It’s not exact, but it’s prettying close. 🙂

    I posted my code for Arduino on my blog at http://thecustomgeek.com if you want it.

    Thanks ecosmurf.

    -jersagfast

Sorry, the comment form is closed at this time.