Faster code Fridays: Understand division and speed of operations

Hello there and welcome back! Faster code Fridays is our weekly series that doesn’t ever fall on a Friday, unless our laziness becomes so strong that it interferes with our disregard for naming conventions. We figure we’ll forgetfully publish one of these things on a Friday at some point. Even a broken clock is right twice a day, eh?

If you’re a first-time visitor, Faster code Fridays highlights code optimization techniques that are useful for embedded systems. Embedded applications often deal with time critical applications that require maximum performance and minimum execution time. In fact, good coding practice is often more apparent when working with microcontrollers, because you don’t have four 4GHz cores and 8Gb of RAM to get you out of trouble. We’ll use Arduino-compatible code for most of our examples, though these techniques are applicable to AVR, PIC, or any number of platforms.

Evil PCB Christmas tree ornament talks smack, sabotages other ornaments

DIY Christmas tree ornament PCB

Dave has created a Christmas monster and one of the most complex and creative DIY ornaments we’ve seen. He started with a Christmas tree drawing, converted it to a PCB, and designed in 15 RGB LEDs to provide twinkling multicolored cheer during the holiday season.

“So what”, you say.  “Let me search Instructables for you and hand you a list of 1,000 other DIY electronic decorations. Stupid EngBlaze”.

Not so fast, folks.