Category

Around The Web

Category

The Arduino Library provides functions like shiftOut() and digitalWrite().  These functions are simple and effective, but they are slow. Of course, they’re doing a lot more than just toggling bits. Faster isn’t always necessary and can sometimes lead to more difficult debugging.  And as Donald Knuth said,

…premature optimization is the root of all evil.

So what happens, when you do need to optimize? For example, if shiftOut() is too slow for your project, what do you do?  In Ralph’s post, Fastest AVR software SPI in the West, he breaks down different SPI code implementations into their assembly code.

To make the best optimization, you need to change compiler flags. So this is, in my opinion, an interesting case study in what kind of performance benefit you can get when you do some serious optimization.

Of course, you really shouldn’t, unless you need it…

Check out his post: Fastest AVR software SPI in the West

Knuth quote from his paper “StructuredProgrammingWithGoToStatements.”

element14 is running a Design Challenge called Enchanted Objects. The idea is to add magic, or modern technology, into older objects, enchanting them. How could you turn an ordinary household object into something extraordinary?

You can see the content intro video here.

With my recent interest in retro-electronics, an entry by Jan Cumps caught my eye. He’s repaired a vintage record player (turntable) using an Arduino and Pulse Width Modulation (PWM) control. For more information on his work, the project page is here. Jan’s YouTube channel is at pitface123.

sleep_raspberrypi_infographic

The Fitbit API allows you to get data from a Fitbit and use it in your own applications.

Paul wrote a Python script which runs on his Raspberry Pi which extracts the data. Then we processes the data using Excel. Once doing so, he created the above sleep infographic–his first effort.

The interesting aspect here, to me, is the idea of these wearable devices and their data. It is great we have large-scale data creation, but it is even better have access to the data for processing.

Great example of charting out critical health data using easily accessible tools.  Check out Paul’s full writeup with description and code.

Arduino Compiler for LabVIEW Screenshot

Aledyne-TSXperts, a National Instruments Alliance Partner, has released an Arduino compiler for NI’s LabVIEW. Now it is possible to build a VI and download it into your Arduino.

The price tags from $99 to $499 might seem a bit high to the average hobbyist. However, at least it comes with a 7-day evaluation period. It is also compatible with the Home Edition of LabVIEW.

So if you’re a LabVIEW programmer with an Arduino on your desk, you might want to checkout the Arduino Compiler for LabVIEW.

Not to long ago the only question about embedded boards was: Arduino or Raspberry Pi. Which really breaks the question down to “microcontroller” or “microprocessor.” Once you decide on a microprocessor platform, there are a bunch of Raspberry Pi Alternatives to consider.

Of course, no single board will always be the obvious “best.” Heck I’ve even got a pile of them on my bench that I haven’t messed with yet.

The 5 Raspberry Pi Alternatives

Even though I haven’t gotten to them all yet, Christian Cawley at makeuseof put together a nice list of Raspberry Pi Alternatives. So before you dive head first into your project, check out these other boards and see if one better meets your needs.

  1. Beaglebone Black
  2. ODroid-C1
  3. Hummingboard-i1
  4. Minnowboard Max
  5. Banana Pi

Even if you aren’t in the market for a new microprocessor board, you might want to check out the first section of the article. It’s a nice description of what to look for when selecting a board.