Posts with «arduino hacks» label

Automated Chess Board Plays You

If you’ve ever played chess or even checkers, you’ve probably thought about making a board that lets a computer play you without having to enter your moves and look at the board on a screen. [Greg06] not only thought about it, but he built it.

The board looks great and uses foamboard which makes it easy to reproduce. Each piece has a small magnet within and an electromagnet on an XY motion system can selectively pick up and move pieces. In addition, a reed switch under each square can tell if a square is occupied or not.

This system is pretty simple, but it is effective. After all, you know the position of the pieces at the start. So if a bishop leaves a square and a new square gets a piece, you can assume it is the bishop. There is no need to actually distinguish the pieces.

An LCD and some buttons act as a chess clock, and note if a move is illegal. The Arduino has a pretty basic chess algorithm known as Micro Max that runs on the Arduino, but we wondered if you couldn’t connect to a remote computer to get more sophisticated gameplay or even interface to the Internet to play remote humans, something we’ve seen before. You could even adapt it for other input methods.

Hack a Day 05 Mar 00:00

Split Flap Display Tells Us The Word

LED and LCD displays are a technological marvel. They’ve brought the price of televisions and monitors down to unheard-of levels since the days of CRTs, but this upside arguably comes with an aesthetic cost. When everything is covered in bland computer screens, the world tends to look a lot more monotonous. Not so several decades ago when there were many sharply contrasting ways of displaying information. One example of this different time comes to us by way of this split-flap display that [Erich] has been recreating.

Split-flap displays work by printing letters or numbers on a series of flaps that are attached to a spindle with a stepper motor. Each step of the motor turns the display by one character. They can be noisy and do require a large amount of maintenance compared to modern displays, but have some advantages as well. [Erich]’s version is built out of new acrylic and MDF, and uses an Arduino as the control board. A 3D printer and CNC machine keep the tolerances tight enough for the display to work smoothly and also enable him to expand the display as needed since each character display is fairly modular.

Right now, [Erich]’s display has 20 characters on two different rows and definitely brings us back to the bygone era where displays of this style would have been prominent in airports and train stations. This display uses a lot of the basics from another split flap display that we featured a few years ago but has some improvements. And, if you’d prefer restorations of old displays rather than modern incarnations, we have you covered there as well.

Thanks to [Bob] for the tip!

Pressure Gauge Built In A Vacuum

Necessity might be the mother of all invention, but we often find that inventions around here are just as often driven by expensive off-the-shelf parts and a lack of willingness to spend top dollar for them. More often than not, we find people building their own tools or parts as if these high prices are a challenge instead of simply shrugging and ordering them from a supplier. The latest in those accepting the challenge of building their own parts is [Advanced Tinkering] who needed a specialty pressure gauge for a vacuum chamber.

In this specific case, the sensor itself is not too highly priced but the controller for it was the deal-breaker, so with a trusty Arduino in hand a custom gauge was fashioned once the sensor was acquired. This one uses an external analog-to-digital converter to interface with the sensor with 16-bit resolution, along with some circuitry to bring the ~8 V output of the sensor down to the 5 V required by the microcontroller. [Advanced Tinkering] wanted a custom live readout as well, so a 3D printed enclosure was built that includes both an LCD readout of the pressure and a screen with a graph of the pressure over time.

For anyone else making sensitive pressure measurements in a vacuum chamber, [Advanced Tinkering] made the project code available on a GitHub page. It’s a great solution to an otherwise overpriced part provided you have the time to build something custom. If you’re looking for something a little less delicate, though, take a look at this no-battery pressure sensor meant to ride along on a bicycle wheel.

Hack a Day 23 Feb 16:30

Arduino Activated Automotive Aerodynamic Apparatus is… (Spoiler Alert!)

Sometimes a great hack is great for no other reason than that it’s fun, and [Michael Rechtin]’s DIY Active Aero Spoiler and Air Brake certainly qualifies as a fun hack. This is a mod designed to live in a world where looks are everything, stickers add horsepower, and a good sound system is more important than good wheel alignment. Why is that? Because like the switch that exists only to activate the mechanism that turns it off, the DIY Active Aero Spoiler and Air Brake seen below is almost completely useless. So to understand its allure, we must understand its inspiration.

For a few decades now, luxury sports car manufacturers have been adding active aerodynamic components to their vehicles. For example, several Porsche models feature adaptive spoilers that adjust to driving conditions. Super cars such as the Bugatti Veyron have spoilers that flip up at high angles during braking to increase drag and reduce braking distance. All of these features are sadly missing from the average two or four door family-car-turned-wannabe-track-fiend. Until now!

[Michael] has created a new active spoiler for every mall-bound muffler-challenged hand me down. The build starts with a CNC cut foam wing which is covered with fiberglass, Bondo (an automotive necessity) and some faux carbon fiber for that go-fast feel. An Arduino, IMU, two servos, and a battery pack detect deceleration and automatically increase the spoiler angle just like the big boys, but without needing any integration into the vehicles systems. Or bolts, for that matter.

It’s unlikely that the braking force is enough to slow down the vehicle though, given that it’s not enough to pop the suction cups holding it to the trunk lid. But does it have the “wow” factor that it was designed to induce? Spoiler Alert: It does!

As it turns out, this isn’t the first adjustable spoiler featured here at Hackaday, and this adjustable spoiler on a car that’s made for actual racing is quite interesting.

Thanks to [Zane] for the tip on this project!

Meowing Box Will Befuddle Your Friends

If you don’t own a cat, hearing the sound of one meowing from somewhere in the house probably comes as quite a shock. The Cat Prank box built by [Reuben] promises to deliver such hilarity with aplomb. 

The idea is simple: hide the Cat Prank box in a cupboard or other space in a friend’s house, and it will meow from its secret location. When found, either the light sensor or motion sensor will trigger the yowling of an angry feline, with hopefully startling effects.

An Arduino Mini is the brains of the operation, paired with an XY-V17B sound module which plays the required animal wailings. There’s also a 433 MHz radio module that lets the prankster trigger meowing via remote control.

Code is available for those wishing to build their own. We’d love to see a mod with a time delay built in, so the device could be hidden and left to start meowing at some later date when the prankster is far away.

Similar work has graced these pages before, like the devilishly fiendish OpenKobold design. Just make sure your friends are receptive to such jokes before you go ahead and invest time and hardware in the prank!

Hack a Day 30 Jan 06:00

Arduino Meets Quantum Computer

Quantum computers aren’t quite ready for the home lab, but since there are ways to connect to some over the Internet, you can experiment with them more easily than you might think. [Norbert] decided to interface a giant quantum computer to an ordinary Arduino. Why? Well, that isn’t necessarily clear, but then again, why not? He explains basic quantum computing and shows his setup in the video below.

Using the IBM quantum computer and the open source Qiskit makes it relatively easy, with the Python code he’s using on the PC acting as a link between the Arduino and the IBM computer. Of course, you can also use simulation instead of using the real hardware, and for such a simple project it probably doesn’t matter.

Granted, the demo is pretty trivial, lighting an LED with the state of qubit. But the technique might be useful if you wanted to, say, gather information from the real world into a quantum computer. You have to start somewhere.

We’ve looked at quantum computers before. They tell us it is the next big thing, so we want to be prepared. Qiskit is one of several options available today to make it easier.

Servo Plotter Needs Nothing Exotic

Although the widespread use of 3D printers has made things like linear bearings and leadscrews more common, you still can’t run down to your local big-box hardware store and get them. However, you can get drawer slides and any hobby shop can sell you some RC servos. That and an Arduino can make a simple and easy plotter. Just ask [JimRD]. You can also watch it do its thing in the video below.

Of course, servos aren’t usually what you use in a plotter. But the slides convert the rotation of the servo into linear motion. One servo for X and one for Y is all you need. Another microservo lifts the pen up and down using a hinge you could also get from a hardware store.

Is it pretty? No. Does it do amazing artwork? No, again. But it is the kind of thing you could probably throw together from things you happen to have hanging around, especially if you are about to trash an old desk or cabinet with slides in it.

This would make a great rainy day project. We are suckers for simple plotter projects even though you could just mate a pen to your 3D printer or CNC machine. Those won’t fit your whiteboard, though.

Cool the Shop with a Thermal Battery-Based System

Having any kind of shop is pretty great, no matter how large it may be or where it’s located. If the shop is in an outbuilding, you get to make more noise. On the other hand, it will probably get pretty darn hot in the summer without some kind of cooling system, especially if you don’t have a window for a breeze (or a window A/C unit).

[Curtis in Seattle] built an awesome thermal battery-based cooling system for his shop. The battery part consists of five 55-gallon drums full of tap water that are connected in series and buried a foot underground, about two feet out from the wall. There are two radiators filled with water and strapped to 20″ box fans  — one inside the shop, which sends heat from the shop into the water, and another outside that transfers heat out of the water and into the cool night air. Most summer days, the 800-square-foot shop stays at a cool 71°F (21.7°C).

We love that the controls are housed in an old film projector. Inside there’s an Arduino Uno running the show and taking input from four DS18B20 one-wire temperature sensors for measuring indoor, outdoor, battery, and ground temperatures. There are four modes accessible through the LCD menu — idle, cool the shop, recharge mode, and a freeze mode in case the outside temperature plummets. Why didn’t [Curtis in Seattle] use anti-freeze? It’s too expensive, plus it doesn’t usually get that cold. (Although we hear that Seattle got several inches of snow for Christmas.) Check it out after the break.

If you can’t just go burying a bunch of 55-gallon drums in the ground where you live, consider building a swamp cooler out of LEGO.

Thanks for the tip, [Zane Atkins]!

Snap-Together Macropad Does It Without Solder

Maybe we’re biased, but we think everyone has a use for a macropad. It’s just a matter of time before a highly personalized set of speed controls starts to sound like a great time-saving device to have around.

Trouble is, macropads are usually kind of expensive to buy outright, and not everyone feels comfortable building keyboards. Okay, so what if you didn’t even have to solder anything? That’s the idea behind [Jan Lunge]’s hand-wired macropad.

You will still want to open a window for ventilation if you build this one, because this macropad requires a lot of 3D printing. What it doesn’t require is glue or screws, because everything snaps together.

Of course, the star of this build is [Jan]’s hot swap socket design. We especially love the little clip that holds the column wires in place while also providing a spacer between those and the row wires. Everything is connected up to a Pro Micro with non-insulated wire and held in place with bends at the ends and the magic of tension. Be sure to check out the build video after the break.

Thirsty for more than a six pack of switches? This design is easy to scale up until you run out of microcontroller inputs. At that point, you might want to add screens to keep track of all your macros.

Thanks for the tip, [BaldPower]!

Arduino Drives Faux Spirograph

The holidays always remind us of our favorite toys from when we were kids. Johnny Astro, an Erector set, and — of course — a Spirograph. [CraftDiaries] has an Arduino machine that isn’t quite a Spirograph, but it sure reminds us of one. The Arduino drives two stepper motors that connect to a pen that can create some interesting patterns.

The build uses a few parts that were laser cut, but they don’t look like they’d be hard to fabricate using conventional means or even 3D printing. The author even mentions you could make them out of cardboard or foamboard if you wanted to.

The electronics are straightforward with two stepper drivers. We couldn’t help but think that some of the old 3D printer motherboards we have laying around here could handle this very easily. However, in this project, the CPU is an ordinary UNO with a CNC shield to drive the motors.

Of course, the real trick is the software. Apparently, the different patterns come from the relationship between the delay between steps of the right motor and that of the left motor. There’s got to be some math behind that, but the patterns are certainly pretty.

If you prefer something that looks more like an actual Spirograph, grab a bag of Lego. Or try the Art-O-Matic.