I've failed utterly, but it still looks great.

Trying to program the light control system for the National Mall using the BrickPixel Shield on an Arduino.  Would place the video here, but don't have a YouTube, Vimeo or Wistia account, so all I can do is provide a link to the video on Flickr.

https://flic.kr/p/2myzTTH

Once I get it working properly, I'll post details and code.

-wrtyler-

5replies Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
  • Thanks as always for sharing your progress, WRTyler !  And that effect is pretty awesome, even if it's not quite what you were going for.

    In case it helps, here's a really good tutorial on multitasking with Arduino:

    https://learn.adafruit.com/multi-tasking-the-arduino-part-1

    And in case you're feeling REALLY bold and don't mind losing a few weeks of your life (and maybe a little of your hair), there's always this: https://www.arduino.cc/reference/en/libraries/freertos/.  I'm warning you, though, this is a little like taking the "red pill" in The Matrix.... 😂

    I've never had a need for a true RTOS in the code we've written, so I stick with the approaches from the Adafruit article.

    Keep up the good work, and keep us posted!

    Like
  • You didn't fail, you just discovered how to do something else.  :-)

    Like 1
  • WRTyler I like the effect you ended up with! very cool chaser pattern!

    Rob Klingberg Another wild thing to do for multitasking is Arduino protothreading. It basically tricks the arduino into running 2+ things in parallel. Below is a link to a video I made demonstrating this. The red and blue strobe LEDs are on one "thread", the pulsing white light on another, and the rear orange lights on the third.

    https://www.instagram.com/p/CUfb3z8jiYF/?utm_source=ig_web_copy_link

    Like
  • Josh Very cool!  Yes we use a variant of that approach on all of our controllers.

    Like 1
  • Josh  Yet another concept I haven't run across.  I'll go see how protothreading works.  And a BIG thanks for the pointer! 

    Like 1
Like3 Follow
  • 3 Likes
  • 1 yr agoLast active
  • 5Replies
  • 25Views
  • 4 Following