Running Intel TBB On a Raspberry Pi

The usefulness of Raspberry Pis seems almost limitless, with new applications being introduced daily and with no end in sight. But, as versatile as they are, it’s no secret that Raspberry Pis are still lacking in pure processing power. So, some serious optimization is needed to squeeze as much power out of the Raspberry Pi as possible when you’re working on processor-intensive projects.

This simplest way to accomplish this optimization, of course, is to simply reduce what’s running down to the essentials. For example, there’s no sense in running a GUI if your project doesn’t even use a display. Another strategy, however, is to ensure that you’re actually using all of the available processing power that the Raspberry Pi offers. In [sagiz’s] case, that meant using Intel’s open source Threading Building Blocks to achieve better parallelism in his OpenCV project.

Continue reading “Running Intel TBB On a Raspberry Pi”

The Micro:Bit Gets A Foundation

It has been announced that the BBC are to pass their micro:bit educational microcontroller board on to a non-profit-making foundation which will aim to take the project to a global audience. The little ARM-based board with its range of simple on-board peripherals and easy-to-use IDEs was given to every British 13-year-old earlier this year with the aim of introducing them to coding at an early age and recapturing some of the boost that 8-bit BASIC-programmable computers gave the youngsters of the 1980s.

Among the plans for the platform are its localization into European languages, as well as a hardware upgrade and an expansion into the USA and China. Most excitingly from our perspective, the platform will henceforth be open-source, offering the chance of micro:bits finding their way into other projects. To that end thay have placed a reference design in a GitHub repository.

We’ve covered the micro:bit story from the start here at Hackaday, from its launch to the point at which it shipped several months late after a few deadlines had slipped. We reviewed it back in June, and found it a capable enough platform for the job it was designed to do.

This is an interesting step for the little ARM board, and one that should take it from being a slightly odd niche product in one small country to the global mainstream. We can’t help however thinking that price is it’s Achilies’ heel. When it costs somewhere close to £13 in the UK, it starts to look expensive when compared to the far more capable Raspberry Pi Zero at £5 or a Chinese Arduino clone at about £2.50. Here’s hoping that economies of scale will bring it to a lower price point.

The People, Talks, and Swag of Open Hardware Summit

Friday was the 2016 Open Hardware Summit, a yearly gathering of people who believe in the power of open design. The use of the term “summit” rather than “conference” is telling. This gathering brings together a critical mass of people running hardware companies that adhere to the ideal of “open”, but this isn’t at the exclusion of anyone — all are welcome to attend. Hackaday has built the world’s largest repository of Open Hardware projects. We didn’t just want to be there — We sponsored, sent a team of people, and thoroughly enjoyed ourselves in the process.

Join me after the break for a look at the talks, a walk through the swag bags, and a feel for what this wonderful day held.

Continue reading “The People, Talks, and Swag of Open Hardware Summit”

Hackaday Links: October 9, 2016

Atari is back! That’s what some dude says. There are no real details in that post, other than ‘Atari is Back!’

The ESP32 is coming, and it’s going to be awesome. Espressif has just released an Arduino core for the ESP32 WiFi chip. The digitalRead, digitalWrite, SPI, Serial, Wire, and WiFi “should” work. If you’re looking for ESP32 hardware, they’re infrequently available and frequently out of stock. Thankfully, stock levels won’t be the Raspberry Pi Zero all over again until someone figures out how to run an NES emulator on the ESP32.

Tiny, cheap ARM boards would make for great home servers if they had SATA or multiple network interfaces. Here’s a Kickstarter for a board with both. It’s based on an ARM A53 with multiple Ethernets, mini PCIe, enough RAM, and SATA. It’s a board for niche use cases, but those uses could be really cool.

You’re not cool or ‘with it’ until you have a PCB ruler. That’s what all the hip kids are doing. For wizards and dark mages out there, a simple PCB ruler isn’t enough. These rare beasts demand RF rulers. There’s some weird stuff on these rulers, like Archemedian spiral antennas and spark gaps. Black magic stuff, here.

Some dude with a camera in the woods did something. Primitive Technology, the best example of experimental archaeology you’ve ever seen, built a spear thrower. You can throw a ball faster with a lacrosse stick than you can with just your hands, and this is the idea behind this device, commonly referred to as an atlatl. You can hunt with an atlatl in some states, but I have yet to see a video of anyone taking down a deer with one of these.

Think we’re done spamming the Hackaday Superconference yet? YOU’RE WRONG. The Hackaday Superconference is the greatest hardware conference of all time until we do this whole thing again next year. Get your tickets, look at the incredible list of speakers, book your flights, and be in Pasadena November 5-6.

Hackaday Prize Entry: Explore M3 ARM Cortex M3 Development Board

Even a cursory glance through a site such as this one will show you how many microcontroller boards there are on the market these days. It seems that every possible market segment has been covered, and then some, so why on earth would anyone want to bring another product into this crowded environment?

This is a question you might wish to ask of the team behind Explore M3, a new ARM Cortex M3 development board. It’s based around an LPC1768 ARM Cortex M3 with 64k of RAM and 512k of Flash running at 100MHz, and with the usual huge array of GPIOs and built-in peripherals.

The board’s designers originally aimed for it to be able to be used either as a bare-metal ARM or with the Arduino and Mbed tools. In the event the response to their enquiries with Mbed led them to abandon that support. They point to their comprehensive set of tutorials as what sets their board apart from its competition, and in turn they deny trying to produce merely another Arduino or Mbed. Their chosen physical format is a compact dual-in-line board for easy breadboarding, not unlike the Arduino Micro or the Teensy.

If you read the logs for the project, you’ll find a couple of videos explaining the project and taking you through a tutorial. They are however a little long to embed in a Hackaday piece, so we’ll leave you to head on over if you are interested.

We’ve covered a lot of microcontroller dev boards here in our time. If you want to see how far we’ve come over the years, take a look at our round up, and its second part, from back in 2011.

Hackaday Prize Entry: A Cheap STM32 Dev Board

Dev boards sporting a powerful ARM microcontroller are the future, despite what a gaggle of Arduino clones from China will tell you. Being the future doesn’t mean there’s not plenty of these boards around, though. The LeafLabs Maple has been around since 2009, and is a fine board if you want all that Processing/Wiring/Arduino goodies in a in an ARM dev board. The Maple has been EOL’d, and that means it’s time for a few new boards that build on what LeafLabs left behind.

This Hackaday Prize entry is for an almost-clone of the Leaflabs Maple Mini. It sports a newer microcontroller, but still has the same bootloader and pinout. The best part? It costs less than four dollars.

The microcontroller inside this Maple Mini clone is the STM32F103, a 32-bit ARM Cortex-M3 running at 72 MHz with 128K of Flash and 20K of SRAM. That’s enough for just about everything you would want to throw at it. It also follows the pinout of the original Maple Mini, and the team also has a version that’s a slight improvement of the original Maple.

The big deal is, of course, the price of the board. It’s four bucks, or about the same price as an Arduino clone from the usual online retailers. Now, finally, there’s a reason for you to wash your hands of the Arduino too.

When You Need a Scope, You Need a Scope

Sometimes there’s just no substitute for the right diagnostic tool. [Ankit] was trying to port some I2C code from an Arduino platform to an ARM chip. When the latter code wasn’t working, he got clever and wrote a small sketch for the Arduino which would echo each byte that came across I2C out to the serial line. The bytes all looked right, yet the OLED still wasn’t working.

Time to bring out the right tool for the job: a logic analyzer or oscilloscope. Once he did that, the problem was obvious (see banner image — Arduino on top, ARM on bottom): he misunderstood what the ARM code was doing and was accidentally sending an I2C stop/start signal between two bytes. With that figured, he was on the right track in no time.

We just ran an epic post on troubleshooting I2C, and we’ll absolutely attest to the utility of having a scope or logic analyzer on hand when debugging communications. If you suspect that the bits aren’t going where they’re supposed to, there’s one way to find out. It’s conceivable that [Ankit] could have dug his way through the AVR’s hardware I2C peripheral documentation and managed to find the status codes that would have also given him the same insight, but it’s often the case that putting a scope on it is the quick and easy way out.