Virtually Free Rapsberry Pis

One of the nice things about the Raspberry Pi is that it runs Linux and you can do a lot of development right on the board. The converse of that is you can do a lot of development on a Linux desktop and then move things over to the Pi once you get the biggest bugs out. However, sometimes you really need to run code on the actual platform.

There is, however, an in-between solution that has the added benefit of upping your skills: emulate a Pi on your desktop. If you use Linux or Windows on your desktop, you can use QEMU to execute Raspberry Pi software virtually. This might be useful if you don’t have a Pi (or, at least, don’t have it with you). Or you just want to leverage your large computer to simplify development. Of course we would be delighted to see you build the Pi equivalent of the Tamagotchi Singularity but that’s a bit beyond the scope of this article.

Since I use Linux, I’m going to focus on that. If you insist on using Windows, you can find a ready-to-go project on Sourceforge. For the most part, you should find the process similar. The method I’ll talk about works on Kubuntu, but should also work on most other Debian-based systems, including Ubuntu.

Continue reading “Virtually Free Rapsberry Pis”

Hackaday’s Fun With International Mains Plugs And Sockets

When we recently covered the topic of high voltage safety with respect to mains powered equipment, we attracted a huge number of your comments but left out a key piece of the puzzle. We take our mains plugs and sockets for granted as part of the everyday background of our lives, but have we ever considered them in detail? Their various features, and their astonishing and sometimes baffling diversity across the world.

When you announce that you are going to talk in detail about global mains connectors, it is difficult not to have an air of Sheldon Cooper’s Fun With Flags about you. But jokes and the lack of a co-starring Mayim Bialik aside, there is a tale to be told about their history and diversity, and there are also lessons to be taken on board about their safety. Continue reading “Hackaday’s Fun With International Mains Plugs And Sockets”

It’s Time For Direct Metal 3D-Printing

It’s tough times for 3D-printing. Stratasys got burned on Makerbot, trustful backers got burned on the Peachy Printer meltdown, I burned my finger on a brand new hotend just yesterday, and that’s only the more recent events. In recent years more than a few startups embarked on the challenge of developing a piece of 3D printing technology that would make a difference. More colors, more materials, more reliable, bigger, faster, cheaper, easier to use. There was even a metal 3D printing startup, MatterFab, which pulled off a functional prototype of a low-cost metal-powder-laser-melting 3D printer, securing $13M in funding, and disappearing silently, poof.

This is just the children’s corner of the mall, and the grown-ups have really just begun pulling out their titanium credit cards. General Electric is on track to introduce 3D printed, FAA-approved fuel nozzles into its aircraft jet engines, Airbus is heading for 3D-printed, lightweight components and interior, and SpaceX has already sent rockets with 3D printed Main Oxidizer Valves (MOV) into orbit, aiming to make the SuperDraco the first fully 3D printed rocket engine. Direct metal 3D printing is transitioning from the experimental research phase to production, and it’s interesting to see how and why large industries, well, disrupt themselves.

Continue reading “It’s Time For Direct Metal 3D-Printing”

Flying With Proportional – Integral – Derivative Control

Your quad-copter is hovering nicely 100 feet north of you, its camera pointed exactly on target. The hover is doing so well all the RC transmitter controls are in the neutral position. The wind picks up a bit and now the ‘copter is 110 feet north. You adjust its position with your control stick but as you do the wind dies and you overshoot the correction. Another gust pushed it away from target in more than one direction as frustration passes your lips: ARGGGHH!! You promise yourself to get a new flight computer with position hold capability.

How do multicopters with smart controllers hold their position? They use a technique called Proportional – Integral – Derivative (PID) control. It’s a concept found in control systems of just about everything imaginable. To use PID your copter needs sensors that measure the current position and movement.

The typical sensors used for position control are a GPS receiver and an Inertial Management  Measurement Unit (IMU) made up of an accelerometer, a gyroscope, and possibly a magnetometer (compass). Altitude control would require a barometer or some other means of measuring height above ground. Using sensor fusion techniques to combine the raw data, a computer can determine the position, movement, and altitude of the multicopter. But calculating corrections that will be just right, without over or undershooting the goal, is where PID comes into play. Continue reading “Flying With Proportional – Integral – Derivative Control”

The Art And Science Of Bending Sheet Metal

A motor mount. A sturdy enclosure. A 43.7° bracket. The average hack requires at least one angled metal part, and the best tool to make one is still the good ol’ press brake. Bending parts requires a few extra thoughts in the design and layout of the flat patterns, so if you want to know about bend allowances, bend deduction and how to bend accurate parts even without a press, read on.

Continue reading “The Art And Science Of Bending Sheet Metal”

Minimal MQTT: Networked Nodes

Last time on Minimal MQTT, we used a Raspberry Pi to set up an MQTT broker — the central hub of a home data network. Now it’s time to add some sensor and display nodes and get this thing running. So pull out your ESP-8266 module of choice, and let’s get going.

DSCF8443For hardware, we’re using a WeMos D1 Mini because they’re really cute, and absolutely dirt cheap, but basically any ESP module will do. For instance, you can do the same on the simplest ESP-01 module if you’ve got your own USB-serial adapter and are willing to jumper some pins to get it into bootloader mode. If you insist on a deluxe development board that bears the Jolly Wrencher, we know some people.

NodeMCU: Getting the Firmware

We’re using the NodeMCU firmware because it’s quick and easy to get running. But you’re not stuck with NodeMCU if you want to go it alone: MQTT has broad support. [TuanPM] ported over an MQTT library to the native ESP8266 SDK and of course there’s espduino, a port for an Arduino-plus-ESP combo. He also ported the MQTT module to NodeMCU that we’ll be using today. Thanks, [TuanPM]!

Continue reading “Minimal MQTT: Networked Nodes”

Beyond WD-40: Lubes For The Home Shop

If your shop is anything like mine, you’ve got a large selection of colorful cans claiming to contain the best and absolutely only lubricant you’ll ever need. I’ve been sucked in by the marketing more times than I care to admit, hoping that the next product will really set itself apart from the others and magically unstick all the stuck stuff in my mechanical life. It never happens, though, and in the end I generally find myself reaching for the familiar blue and yellow can of WD-40 for just about every job.

Continue reading “Beyond WD-40: Lubes For The Home Shop”