RC receiver to arduino converter for BB-8

Ask Hackaday: How Do You Convert Negative Voltages To Positive?

I have a good background working with high voltage, which for me means over 10,000 volts, but I have many gaps when it comes to the lower voltage realm in which RC control boards and H-bridges live. When working on my first real robot, a BB-8 droid, I stumbled when designing a board to convert varying polarities from an RC receiver board into positive voltages only for an Arduino.

Today’s question is, how do you convert a negative voltage into a positive one?

In the end I came up with something that works, but I’m sure there’s a more elegant solution, and perhaps an obvious one to those more skilled in this low voltage realm. What follows is my journey to come up with this board. What I have works, but it still nibbles at my brain and I’d love to see the Hackaday community’s skill and experience applied to this simple yet perplexing design challenge.

The Problem

RC toy truck and circuit with no common
RC toy truck and circuit with no common

I have an RC receiver that I’ve taken from a toy truck. When it was in the truck, it controlled two DC motors: one for driving backwards and forwards, and the other for steering left and right. That means the motors are told to rotate either clockwise or counterclockwise as needed. To make a DC motor rotate in one direction you connect the two wires one way, and to make it rotate in the other direction you reverse the two wires, or you reverse the polarity. None of the output wires are common inside the RC receiver, something I discovered the hard way as you’ll see below.

Continue reading “Ask Hackaday: How Do You Convert Negative Voltages To Positive?”

Supermoon? Or Just Another Perigee Syzygy?

The moon’s orbit is not circular. According to Wikipedia, the moon is closest at around 357,000 kilometers and farthest at 406,000: a difference of something like 13%. That’s a freakishly egg-shaped orbit compared to the earth’s orbit around the sun, for instance. And it moves between these extremes every month.

Tonight, the perigee (the close approach) corresponds with a full moon (a syzygy — when the earth, moon, and sun are all in a line). What does that mean? A brighter-than-average full moon! If you were around for the last “supermoon” in 2011, you’ll have heard that it was the closest/brightest since 1992, or something. Well, this one’s brighter.

But don’t freak out if the clouds are hanging in the sky wherever you live; there’s a perigee full moon every 411.8 days, and there’s going to be one next year too. Unless you’re taking repeated photographs with the same lens, you won’t be able to detect the size difference with your current wetware anyway, due to the aptly named moon illusion. You already perceive the moon varying in size by a factor of 1.5 when it’s on the horizon versus hanging overhead, so an extra few percent is going to be lost in the noise floor. And the difference between a hazy and clear night will easily swamp the difference in brightness.

superm_nAs usual, XKCD sums it up nicely. The “supermoon” is a perigee when the moon happens to be full. It’s a fairly frequent event, by celestial standards, and it’s underwhelming. If you want to see something really freaky, keep your eyes peeled for the total eclipse of the sun in August 2017.

Don’t get us wrong, we think that the moon is super! And there’s nothing wrong with going outside to have a peek at it. Just please, during this year’s perigee syzygy, spare us the hyperbole.

“Supermoon” versus “micromoon” comparison image courtesy [Stephan Sciarpetti].

Path To Craftsmanship: Don’t Buy Awful Safety Gear

A while back I tried to make a case for good safety disciple as a habit that, when proactively pursued, can actually increase the quality of your work as a side effect. In those comments and in other comments since then I’ve noticed that some people really hate safety gear. Now some of them hated them for a philosophical reason, “Ma granpap didn’t need ’em, an’ I don’t neither”, or ,”Safety gear be contributin’ to the wuss’ness of the modern personage an’ the decline o’ society.” However, others really just found them terribly uncomfortable and restricting.

In this regard I can help a little. I’ve spent thousands of terrible long hours in safety gear working in the chemical industry. I was also fortunate to have a company who frequently searched for the best safety equipment as part of their regular program. I got to try out a lot.

Continue reading “Path To Craftsmanship: Don’t Buy Awful Safety Gear”

Electronica 2016: Too Much Electronics

The Electronica trade show in Munich is so big that it only takes place once every two years. Every manufacturer, distributor, and maker of anything electronic is there. To get a feel for the scale of things, Electronica is spread out over twelve large exhibition halls and is served by two separate subway stations, one on either end. You wouldn’t think there would be so many inductor manufacturers in the world, but you’d be wrong.

dscf9020It’s a hardware geek’s paradise, even if it is aimed more at facilitating industry contacts than at serving the humble hacker. But it’s great to see what is out there, quiz reps of all our favorite chip manufacturers about what they’ve got going on, and just generally wander around. You might not get to play with the multi-gigahertz scopes on a day-to-day basis, but you can get hands-on with them at Electronica. And as cool as it is to talk directly to the representatives of our mega-manufacturers, it’s maybe more fun to check up on the creative fringe of companies that you’ve never heard of before, but who nonetheless have great ideas.
Continue reading “Electronica 2016: Too Much Electronics”

Fun With Fire: Oxy-Acetylene Basics

If generations of Hollywood heist films have taught us anything, it’s that knocking off a bank vault is pretty easy. It usually starts with a guy and a stethoscope, but that never works, so the bad guys break out the cutting torch and burn their way in. But knowing how to harness that raw power means you’ve got to learn the basics of oxy-acetylene, and [This Old Tony]’s new video will get your life of crime off on the right foot.

In another well-produced video, [Tony] goes into quite a bit of detail on the mysteries of oxygen and acetylene and how to handle them without blowing yourself up. He starts with a tour of the equipment, including an interesting look at the internals of an acetylene tank — turns out the gas is stored dissolved in acetone in a porous matrix inside the tank. Working up the hoses, he covers the all-important flashback arrestors, the different styles of torches, and even the stoichiometry of hydrocarbon combustion and how adjusting the oxygen flow results in different flame types for different jobs. He shows how oxy-acetylene welding can be the poor man’s TIG, and finally satisfies that destructive urge by slicing through a piece of 3/8″ steel in under six seconds.

We’ve always wanted a decent oxy-acetylene rig, and [Tony] has convinced us that this is yet another must-have for the shop. There’s just so much you can do with them, not least of which is unsticking corroded fasteners. But if a blue wrench is out of your price range and you still want to stick metal together, you’ll want to learn how to braze aluminum with a propane torch.

Continue reading “Fun With Fire: Oxy-Acetylene Basics”

A Portable, Accurate, Low-Cost, Open Source Air Particle Counter

If you live in a city with poor air quality you may be aware that particulates are one of the chief contributors to the problem. Tiny particles of soot from combustion, less than 10μm across, hence commonly referred to as PM10. These are hazardous because they can accumulate deep in the lungs, wherein all kinds of nasties can be caused.

There are commercial sensors available to detect and quantify these particles, but they are neither inexpensive nor open source. [Rundong] tells us about a project that aims to change that situation, the MyPart, which is described as a portable, accurate, low-cost, open source air particle counter. There is a GitHub repository for the project as well as a series of Instructables covering the build in detail. It comes from a team of members of the Hybrid Ecologies Lab at UC Berkeley, USA.

Along the way, they provide a fascinating description of how a particulate sensor works. A laser shines at right angles across a photodiode, and is brought to a focal point above it. Any particulates in the air will scatter light in the direction of the photodiode, which can thus detect them. The design of a successful such sensor requires a completely light-proof chamber carefully built to ensure a laminar flow of air past laser and diode. To that end, their chamber has several layers and is machined rather than 3D-printed for internal smoothness.

We’ve covered quite a few environmental sensors over the years here at Hackaday. An open source volatile organic compound (VOC) detector featured last year for example, or this Raspberry Pi-based  system using a commercial gas sensor.

Super-Sizing Leaf Collection; Hackers Doing Yardwork

For many parts of the world, the great raking has begun as deciduous trees in temperate zones drop their leaves. Of course not everyone can abide the simple yet laborious process of manual raking and so they look to technology. You can buy a handheld leaf vacuum, a pull-behind leaf sweeper, or a mower attachment that lifts leaves into hoppers. [Lou] has the latter, but it’s way too small for his taste so he super-sized his leaf collecting hardware.

The hard part of leaf collection has already been solved for [Lou]. The riding lawnmower lifts the leaves and propels them through an angled pipe into three hopper bags which we think total 9 bushels (roughly 80 gallons or 300 liters). That sounds like a lot, but anyone who has recently cleared leaves will attest that they will fill up in no time.

[Lou] builds a light-weigh 4-foot cube covered in deer netting to super-size his hopper to a whopping 51 bushels (475 gallons or 1800 liters)! His first attempt uses a pipe that falls too short to fill leaves to the top, but his final product adds longer ductwork and hits the mark perfectly.

Gardeners everywhere should be salivating right now. Leaf mulch is one of the best things you can put on your garden in the spring. Although [Lou] designed his hopper to be emptied by leaf-blower, adapting this to set the full hopper in an out-of-the-way space would help them breakdown over the winter — turning them into planter’s gold by springtime.

Continue reading “Super-Sizing Leaf Collection; Hackers Doing Yardwork”