31415926 (That’s Roughly Π Times 10 Million Raspberries)

The Raspberry Pi Foundation founder Eben Upton has announced that their ten millionth eponymous single-board computer has been sold since their launch back in February 2012. It’s an impressive achievement, especially so since their original sales expectations were for a modest ten thousand. For those of us who watched the RS and Farnell websites crumble under the strain of so many would-be purchasers on that leap day morning four and a half years ago their rapidly exceeding that forecast came as no surprise, but still, it’s worth a moment’s consideration. They passed the Sinclair ZX Spectrum’s British record of 5m computers sold back in February 2015, leaving behind the Pi’s BBC Micro spiritual ancestor on 1.5m sold long before that.

Critics of the Pi will point out that its various versions have rarely been the most powerful small single board computer on the market, or even at times the cheapest. They will also point to the closed-source nature of the Broadcom binary blob that underpins Pi operating systems, and even the sometimes unpredictable nature of the Pi Foundation with respect to its community, product availability and launches. But given that the Pi Foundation’s focus is not on our side of the community but on using the boards as a tool to introduce young people to computing, it’s fair to say that they’ve done a pretty good job of ensuring that a youngster can now get their hands on a useful and easily programmable computer much more easily than at any time in the past.

Would we be in the same position of being able to buy a capable Linux computer for near-pocket-money prices had the Raspberry Pi not been released? Probably so, in fact certainly so. The hardware required to deliver these products has inevitably fallen into a more affordable price bracket, and we would certainly have plenty of boards at our fingertips. They would probably have Allwinner or maybe Mediatek processors rather than the Pi’s Broadcom part, but they would be very likely to deliver equivalent performance at a similar cost. Where the Raspberry Pi’s continued success has come from then has not necessarily been from its hardware but from its community and software. The reliability and ease of use delivered by the Raspbian Linux distribution that Just Works for the parent putting a Pi in front of their child, and the wealth of expert information on the Raspberry Pi forums to get them through any Pi-related troubles are what has given the Pi these sales figures. The boards themselves are almost incidental, almost any hardware paired with that level of background information would likely have met with similar success. Comparing the Pi software experience with for example one of their most capable competitors, it’s obvious that the software is what makes the difference.

It’s likely that Raspberry Pi sales will continue to climb, and in years to come we’ll no doubt be reporting on fresh milestones on ever more powerful revisions of their product. But it’s also likely that their competition will up their software game and their position in the hearts and minds of single board computer users might be usurped by a better offering. If this increased competition in the single board computer market delivers better boards with more for the hardware developer community, then we’re all for it.

Reverse Engineering And Networking The A/C Remote Control

IoT has become such an polarizing, overused term. But here it is in its essence: [zeroflow] had a thing (his airconditioner) and he needed to put it on the Internet.

For his contribution to this modern vernacular atrocity, he first had to build an IR debugging tool and reverse engineer the signals coming from the air conditioner’s remote. He wrote up a really good summary of the process, and worth reading. He loads up an IR library onto an Arduino and dumps the resulting 32 bits of information to his computer. In a process much like filling in the blanks on a word puzzle, he eventually determines which blocks of the data correspond to the remote’s different buttons.

Next he throws an array of IR LEDS and an ESP8266 onto a bit of protoboard. After writing some code, available on GitHub, he could set the temperature of his room from anywhere on the planet. We take it on faith that [zeroflow] has a compelling reason for doing so.

Bolstered by this success, he didn’t stop there. [Zeroflow] admits to having more than one thing on the Internet. Boom! Internet of things.

Top Ten Reasons Not To Buy A Fake MacBook Charger. Number Eight Will Shock You.

Yesterday, Apple showed the world how courageous they are by abandoning their entire PC market. It’s not time for a eulogy quite yet, but needless to say, Apple hardware was great, and the charger was even better. It had Magsafe, and didn’t start fires. What more could you ask for?

When it comes to fake MacBook chargers, you can ask for a lot more. [Ken Shirriff] has torn apart a number of these chargers, and his investigations allowed for an obvious pun in this post. The fake ones will make sparks thanks to the cost-saving design, and shouldn’t be used by anyone.

A genuine Apple MacBook charger is a phenomenal piece of engineering, but the fake one is not. In fact, it’s almost the simplest possible AC to DC converter. The mains power comes in, it’s chopped up into pulses, and these pulses are turned into a high-current, low-voltage output in a flyback transformer. This output is converted into DC with a few diodes, filtered, and wired into a MagSafe adapter.

The genuine MacBook charger is much more complicated. Like the cheap copy, it’s a switching power supply, but has a few features that make it much better. The genuine charger does power factor correction, uses quality caps, has real isolation on the PCB, and uses a microcontroller that’s almost as powerful (and a direct architectural descendant) as the CPU in the original Macintosh. It’s this microcontroller that kept you safe that one time you decided to lick a Magsafe connector not allowing the full 20 Volts to go through until the connector has connected. Until then, the Magsafe connector only outputs 0.6 Volts. The fake charger doesn’t do this, and when you poke the connector with a paper clip, sparks fly.

This isn’t [Ken]’s first teardown of genuine and not Apple products. He’s done iPad chargers, iPhone chargers, and other small, square, white switching power supplies. The takeaway from these teardowns is that cheap chargers are a false economy, and you probably should pony up the cash for the real version.

Review: The RC2014 Z80 Computer

As hackers and makers we are surrounded by accessible computing in an astonishing diversity. From tiny microcontrollers to multi-processor powerhouses, they have become the universal tool of our art. If you consider their architecture though you come to a surprising realisation. It is rare these days to interface directly to a microprocessor bus. Microcontrollers and systems-on-chip have all the functions that were once separate peripherals integrated into their packages, and though larger machines such as your laptop or server have their processor bus exposed you will never touch them as they head into your motherboard’s chipset.

A few decades ago this was definitely not the case. A typical 8-bit microprocessor of the 1970s had an 8-bit data bus, a 16-bit address bus, and a couple of request lines to indicate whether it wanted to talk to memory or an I/O port. Every peripheral you connected to it had to have some logic to decode its address and select it when you wanted to use it, and all shared the processor’s bus. This was how those of us whose first computers were the 8-bit machines of the late 1970s and early 1980s learned the craft of computer hardware, and in a world of Arduino and Raspberry Pi this now seems a lost art.

The subject of today’s review then provides a rare opportunity for the curious hardware hacker to get to grips with a traditional microprocessor bus. The RC2014 is a modular 8-bit computer in which daughter cards containing RAM, ROM, serial interface, clock, and Z80 processor are ranged on a backplane board, allowing complete understanding of and access to the workings of each part of the system. It comes with a ROM BASIC, and interfaces to a host computer through a serial port. There is also an ever-expanding range of further peripheral cards, including ones for digital I/O, LED matrixes, blinkenlights, a Raspberry Pi Zero for use as a VDU, and a small keyboard.

Continue reading “Review: The RC2014 Z80 Computer”

Nexmon Turns Nexus 5 (and RPi3!) Into WiFi Toolkit

Back in the day, when wardriving was still useful (read: before WPA2 was widespread), we used to wander around with a Zaurus in our pocket running Kismet. Today, every cellphone has WiFi and a significantly more powerful processor inside. But alas, the firmware is locked down.

mrmcd16-7748-deu-nexmon_-_make_wi-fi_hacking_on_smartphones_great_again_sdmp4-shot0005_thumbnailEnter the NexMon project. If you’ve got a Nexus 5 phone with the Broadcom BCM4339 WiFi chipset, you’ve now got a monitor-mode, packet-injecting workhorse in your pocket, and it looks a lot less creepy than that old Zaurus. But more to the point, NexMon is open. If you’d like to get inside what it took to reverse-engineer a hole into the phone’s WiFi, or make your own patches, here’s a great starting place.

But wait, there’s more! The recently released Raspberry Pi 3 has a similar Broadcom WiFi chipset, and has been given the same treatment, turning your RPi 3 into a wireless-sniffing powerhouse. How many Raspberry Pi “hacks” actually hack the Raspberry Pi? Well, here’s one.

We first learned of this project from a talk given at the MetaRhein-Main Chaos Days conference which took place last weekend. The NexMon talk (in German, but with slides in English) is just one of the many talks, all of which are available online.

The NexMon project is a standout, however. Not only do they reverse the WiFi firmware in the Nexus 5, but they show you how, and then apply the same methods to the RPi3. Kudos times three to [Matthias Schulz], [Daniel Wegemer], and [Matthias Hollick]!

Megasquirting My 1983 Datsun Z

When Dinosaurs Drove to Work

Back in the mid 1980’s I worked at a company called Commodore Business Machines, a company that made home computers where our annual Superbowl was the Consumer Electronics Show in Las Vegas the first week in January.

Some time in November a Datsun Z would get parked in the front lot and then not move until whatever snow mounds that got plowed over it melted sometime in early spring. Ultimately I would have it towed leaving behind a sad little pile of rust and nuts and bolts. With a bonus check in hand for finishing the newest computer on time I would go buy another used Z and repeat the cycle.

Climate Change and Rust

These days the old Datsun Z’s; 240Z, 260Z, 280Z, 280ZX, are somewhat rare, probably because they were real rust buckets even when new. After having sacrificed a few myself in search of the next home computer I set out to rescue one for old times’ sake. I really did love the car so I made it my project to restore one. Now I have a total of three Z carcasses, an engine, and a transmission all sitting out back and an almost finished Z in the garage.

Since I had torn the engine down to its bare components I took the opportunity to make some changes: increased the size of the turbocharger, increased bore and stroke of the cylinder/piston, improved the fuel distribution, and improved the flow of air with things like porting the heads and an inter-cooler.

Continue reading “Megasquirting My 1983 Datsun Z”

Safely Remove Drill Chuck; Receive Motor, Gearbox, And Clutch

There’s a treasure trove of usefulness inside of an electric drill. [Steven Dufresne], Hackaday writer and the mad scientist behind Rimstar.org, kindly documented how to safely and reliably remove the chuck from a drill motor. You may think this is easy, but once in a while you’ll come across a drill determined to hold onto all its bits. We certainly were entertained by the lengths [Steven] went to in the video below to get a Black and Decker to give up its chuck.

An understanding of how the chuck and gearbox are connected, combined with the right tools and a bit of force, gets you a motor, gears and gearbox, and a clutch. There’s not much left in the drill after that, and you can put some or all of those components to new use — like using them for the drive system of a BB-8 Droid.

Many projects (like this walking scooter) make use of cordless drills as motor sources. Being able to skip the chuck in order to interface directly to the shaft is useful for those projects where the drill is at least a semi-permanent part of the build. Ask your friends, neighbors, and at work. Cheap cordless drills and screw guns have been around for a long time. It’s usually the batteries that go and many people have the drills lying around and will be happy to part with them knowing you’re going to do something awesome with them.

Continue reading “Safely Remove Drill Chuck; Receive Motor, Gearbox, And Clutch”