loading
2Comments

Tell us about yourself!

Complete Your Profile
  • GuyH13 commented on JimRD's instructable 4 Digit Two Wire Display with Arduino10 months ago
    4 Digit Two Wire Display with Arduino

    Thanks, nice simple library to use the TM1637. Very straightforward.

    View Instructable »
  • Realistic Flickering Flame Effect with Arduino and LED's

    Thanks, I borrowed your approach for a project I'm doing with my son's Minecraft torch from Thinkgeek... enhanced it as a part of my main loop so that it also incorporated a random timer controlling the flicker. Not the most elegant code but it ended up looking very cool!Just posting an excerpt of the code, but as you might guess the elapsedTimeSinceOn is millis() now - millis() when the torch was turned on (button press):if ((torchLEDState == TORCH_FLICKER) && (elapsedTimeSinceOn % lastFlickerDelay == 0)) { // let's make the torch flicker if (DEBUG) { Serial.println("8 - running flicker routine"); } int brightness = random(10); int duration = random(10); switch (brightness) { case 0: case 1: case 2: case 3: case 4: case 5:...see more »Thanks, I borrowed your approach for a project I'm doing with my son's Minecraft torch from Thinkgeek... enhanced it as a part of my main loop so that it also incorporated a random timer controlling the flicker. Not the most elegant code but it ended up looking very cool!Just posting an excerpt of the code, but as you might guess the elapsedTimeSinceOn is millis() now - millis() when the torch was turned on (button press):if ((torchLEDState == TORCH_FLICKER) && (elapsedTimeSinceOn % lastFlickerDelay == 0)) { // let's make the torch flicker if (DEBUG) { Serial.println("8 - running flicker routine"); } int brightness = random(10); int duration = random(10); switch (brightness) { case 0: case 1: case 2: case 3: case 4: case 5: analogWrite(torchLED_pin, random(120) + 50); break; case 6: case 7: analogWrite(torchLED_pin, random(120) + 85); break; case 8: case 9: analogWrite(torchLED_pin, random(120) + 135); break; } switch (duration) { case 0: case 1: case 2: case 3: case 4: lastFlickerDelay = 100; break; case 5: case 6: lastFlickerDelay = 200; break; case 7: case 8: lastFlickerDelay = 500; break; case 9: lastFlickerDelay = 50; break; } }

    View Instructable »