Posts | Comments

Planet Arduino

Archive for the ‘Hardware’ Category

If you’re the kind of person who has friends, and/or leaves the confines of the basement from time to time, we hear that these “Escape Rooms” are all the rage. Basically you get locked into a room with a couple other people and have to solve various problems and puzzles until you’ve finally made enough progress that they let you out. Which actually sounds a lot like the working conditions here at Hackaday HQ, except they occasionally slip some pizza rolls under the door for us which is nice.

Whichever side you find yourself on in one of these lighthearted hostage situations, knowledge of this multi-tag RFID lock created by [Annaane] may come in handy. By connecting multiple MFRC522 RFID readers to an Arduino Uno, she’s come up with a method of triggering a device (like an electronic door lock) only when the appropriate combination of RFID tags have been arranged. With a little imagination, this allows for some very complex puzzle scenarios which are sure to keep your prisoners enthralled until you can lower the lotion down to them.

Her code allows you to configure the type and number of RFID cards required to trigger one of the Arduino’s digital pins, which usually would be connected to a relay to fire off whatever device you want. The Arduino sketch is also setup to give “hints” to the player by way of a status LED: fast blinking let’s you know the tag scanned is wrong, and slow blinking means you don’t have enough scanned in yet.

The video after the break shows some highlights of the build, as well as a quick demonstration of how both the RFID “combination” and manual override can be used to trigger the attached relay.

Hackers do love RFID. Using them for physical access control is a fairly common project around these parts, and we’ve even seen similar setups for the digital realm.

Since its launch in 2013, the Yùn–a small Linux machine and a microcontroller in a small Arduino form factor–found its way into hundreds of thousands of projects and professional applications. Last year, we decided that it was time for a refresh and began working hard to develop a true open-source design, with more compelling features and better overall software support.

The new board, which is expected to hit the market in the second half of April, will include enhanced functionality and compatibility with its predecessor.

Why a New Yùn

The Yùn enjoyed tremendous success; however, it ended up being affected by the internal issues we dealt with over the past couple of years and support has been quite intermittent.

For example, the board was never really an open-source product and the software had some challenges that we wanted to fix, especially from a security point of view.

What’s New in Rev.2


  • Much better, more robust power supply
  • New Ethernet connector with a clever mounting solution that enables the use of all possible shields with no risk for accidental short circuits
  • Horizontal USB connector to save vertical space
  • Improved USB hub


  • Software stack updated to OpenWRT latest version, including all patches
  • SSL support on the bridge Arduino / Linux bridge

Yùn Rev.2 is scheduled to begin shipping in April. Until then, you can stay up-to-date by clicking “NOTIFY ME” on our store

[Andrew MacPherson] found out that compliments, even insincere ones, make the recipients feel better. So, he put together a thermal printer and a hilariously large button with an Arduino and created a machine that prints compliments. And where best to put a machine that prints out compliments? The local bar, where else?

An Arduino Nano clone runs the show connected to a thermal printer. The Nano clone didn’t like the 9 volt power supply, so a buck converter was used to reduce the voltage down to 5 volts for the Nano, while the printer gets the full power. During initial trials, the printer was very slow to print and it took [Andrew] a while to adjust the parameters – after tweaking the speed as well as the heating time, he was able to get the printer working without burning the paper or taking forever to print.

Once the machine was working, it was time to add a button. A large, light-up button was connected and glued to the side of the printer. More glue was used (after some “modifications” to the printer chassis) to secure a barrel connector for the power adapter.

[Andrew] decided that since he’s down at his favorite bar quite a lot, he’d set it up there. The customers could push the button and receive a compliment while drowning their sorrows. He got a friend of his who’s a copywriter to come up with some nicely written compliments to print out. The printer was such a hit that the bartender sent [Andrew] a message on Facebook saying so. If you have a thermal printer lying around, you can use this tutorial to connect it to the internet, or, if you don’t have one, you can build your own.

A lot of the DIY laser engravers and cutters we cover here on Hackaday are made with laser diodes salvaged from Blu-ray drives and projectors, which are visible lasers in the 400 – 450nm range (appearing as violet or blue). Unfortunately there is an upper limit in terms of power on visible diode lasers, most builds max out at 5W or so. If you need more power than that, you’ll likely find yourself looking at gas laser cutters like the K40. While the K40 is a great starting point if you’re looking to get into “real” lasers, it’s a very different beast from the homebrew builds using visible lasers.

With a gas laser the beam itself is invisible, making it much more difficult to align or do test runs. One solution is to add a visible laser to the K40 which can be used to verify alignment, but making sure it’s traveling down the same path as the primary laser usually requires an expensive beam combiner. Looking to avoid this cost, [gafu] wanted to see if it was possible to simply move the visible laser into the path of the primary beam mechanically.

An adjustable microswitch detects when the lid has been opened.

In the setup that [gafu] has come up with, a cheap laser module (the type from a handheld laser pointer) is moved into the path of the primary laser on an arm that’s actuated by a simple hobby servo. To prevent the primary and visible lasers from firing at the same time, an Arduino is used to control the servo given the current state of the K40’s lid. If the lid of the K40 is open, the primary laser is shutoff and the visible laser is rotated into position so the operator can see where the primary laser’s beam would be hitting. Once the lid is closed, the visible laser rotates out of the way and the primary is powered back up.

Running the cutting or engraving job with the lid of the K40 machine open now let’s [gafu] watch a “dry run” of the entire operation with the visible laser before finally committing to blasting the target with the full power beam.

We’ve covered many hacks and modifications for everyone’s favorite entry-level CO2 laser cutter. From replacing the controller to making it bigger, K40 owners certainly seem like a creative bunch.

Filed under: Arduino Hacks, hardware, Laser Hacks

It can be hard enough to take a good photograph of a running kid or pet, and if we’re being honest, sometimes even stationary objects manage to allude our focus. Now imagine trying to take a picture of something moving really fast, like a bullet. Trying to capture the moment a fast moving projectile hits an object is simply not possible with a human behind the shutter button.

Enter the ballistic chronometer: a device that uses a set of sensor gates and a highly accurate timer to determine how fast an object is flying through it. Chronometers that operate up to a couple hundred meters per second are relatively common, but [td0g] had something a little faster in mind. He’s come up with an optical setup that he claims can capture objects moving as fast as Mach 2. With this chronometer tied into a high-speed flash rig, [td0g] is able to capture incredible shots such as the precise instant a bullet shatters a glass of water.

Because he couldn’t find any phototransistors with the sub-microsecond response time necessary to detect a small object moving at 1,000 m/s, [td0g] ended up using LEDs in a photoconductive configuration, where 27 VDC is applied backwards against the diode. Careful monitoring of voltage fluctuations across the diode allows for detection of changes in the received light level. To cut down on interference, [td0g] used IR LEDs as his light sources, reasoning there would be less ambient IR than if he used something in the visual range.

What really impresses with this build is the attention to detail and amount of polish [td0g] put into the design. From the slick angled bracket that holds the Arduino and LCD to the 3D printed covers over the optical gates, the final device looks like a professional piece of equipment with a price tag to rival that of a used car.

For the future, [td0g] plans on upgrading to faster comparators than he LM339’s he has installed currently, and springing for professionally done PCBs instead of protoboard. In it’s current state this is already a very impressive piece of kit, so we’d love to see what it looks like when it’s “finished”.

If you don’t need something quite this high end but still would like to see how fast something is going, we have covered chronometer builds to fit every budget.

Filed under: Arduino Hacks, digital cameras hacks, hardware

Quick Charge, Qualcomm’s power delivery over USB technology, was introduced in 2013 and has evolved over several versions offering increasing levels of power transfer. The current version — QCv3.0 — offers 18 W power at voltage levels between 3.6 V to 20 V.  Moreover, connected devices can negotiate and request any voltage between these two limits in 200 mV steps. After some tinkering, [Vincent Deconinck] succeeded in turning a Quick Charge 3.0 charger into a variable voltage power supply.

His blog post is a great introduction and walk through of the Quick Charge ecosystem. [Vincent] was motivated after reading about [Septillion] and [Hugatry]’s work on coaxing a QCv2.0 charger into a variable voltage source which could output either 5 V, 9 V or 12 V. He built upon their work and added QCv3.0 features to create a new QC3Control library.

To come to grips with what happens under the hood, he first obtained several QC2 and QC3 chargers, hooked them up to an Arduino, and ran the QC2Control library to see how they respond. There were some unexpected results; every time a 5 V handshake request was exchanged during QC mode, the chargers reset, their outputs dropped to 0 V and then settled back to a fixed 5 V output. After that, a fresh handshake was needed to revert to QC mode. Digging deeper, he learned that the Quick Charge system relies on specific control voltages being detected on the D+ and D- terminals of the USB port to determine mode and output voltage. These control voltages are generated using resistor networks connected to the microcontroller GPIO pins. After building a fresh resistor network designed to more closely produce the recommended control voltages, and then optimizing it further to use just two micro-controller pins, he was able to get it to work as expected. Armed with all of this information, he then proceeded to design the QC3Control library, available for download on GitHub.

Thanks to his new library and a dual output QC3 charger, he was able to generate the Jolly Wrencher on his Rigol, by getting the Arduino to quickly make voltage change requests.

Filed under: Arduino Hacks, hardware

As an avid fan of the show Dr Who, [Adam Sifounakis] saw a model for a laser-cut TARDIS that piqued his curiosity that eventually grew into a multi-week project involving multiple setbacks, missteps, revamps and — finally — gratification. Behold, his sound activated TARDIS.

First and foremost, assembling and painting the model was a fun puzzle — despite a few trips to the store — with a little backtracking on the painting due to impatience. Next, the creation of a pulsing soft white LED circuit timed with an audio clip to really sell the image of a mini-TARDIS proved to be a tedious ordeal, paying off in the end with a satisfying glow through the vellum-diffused windows on the model.

How to trigger the lights? [Sifounakis] initially wanted a capacitive sensor to trigger the sound effects, but that way lay dragons — and madness — so he went with snap-activated effect to activate the TARDIS like the Doctor himself. After struggling with building his own microphone setup, he switched to an electret mic with adjustable gain which worked like a charm. Setting up this TARDIS’ Adafruit Pro Trinket brain involved a snag or two, and after that it was smooth sailing!

Until he hit another hitch with the power circuit too, that is. Luckily enough, adding a capacitor to give the circuit a bit more juice on boot solved the issue. All that was left to do was dismantle and rebuild his circuit after all this troubleshooting and substitutions, and — finally — install it in his model.

With much satisfaction and a final rework of the LED pulsing effect, it was done. Check it out!

Be it in the shape of an infrasonic subwoofer, a motion-sensing alarm, or topping Christmas trees, the TARDIS never fails to amaze.

Filed under: Arduino Hacks, hardware

Prosthetic and assistive technologies have come have come a long way in recent years. When there are not only major medical research organizations, but individuals getting on board designing tools to improve the lives of others? That’s something special. Enter a homebrew essay into this field: ExoArm.

Attached to the body via what was available — in this case, the support harness for a gas-powered weed-eater — which distributes the load across the upper body and an Arduino for a brain, ExoArm designer [Kristjan Berce] has since faced roadblocks with muscle sensors meant to enable more instinctive control. So — for now — functionality is limited to a simple up and down motion controlled by two switches. It is worth noting that the down switch is currently mounted in such a way that when the user moves their arm down, the ExoArm follows suit, so there is some natural feel to using the arm in its present iteration.

Developed with the elderly — and others who need a boost to physical strength to live a normal life — in mind, this prototype is able to curl up to 10kg in excess of its own weight. Presently, the only motor is on the elbow joint — granting a basic range of motion — with one adapted to the shoulder joint forthcoming! And, costing only $100, it’s a heck of a start.

We’ve featured some impressive individual forays into hackers helping others, humans and animals alike!

Filed under: Arduino Hacks, hardware

An ISP dongle is a very common piece of equipment on a maker’s bench. However, its potential as a hackable device is generally overlooked. The USBASP has an ATmeg8L at its heart and [Robson] decided that this humble USB device could be used as an interface between his PC and a SNES Joypad.

A SNES controller required three pins to communicate with a host: clock, data and latch. In his hack, [Robson]  connects the controller to the ISP interface using a small DIY adaptor and programs the AVR using the V-USB library. V-USB is a software USB library for small microcontrollers and comes in pretty handy in this instance.

[Robson] does a pretty good job of documenting the entire process of creating the interface which includes the USB HID code as well as the SNES joypad serial protocol. His hack works on both Windows and Linux alike and the code is available on GitHub for download.

Simple implementation like this project are a great starting point for anyone looking to dip their toes in the DIY USB device pool. Veterans may find a complete DIY joystick more up their alley and will be inspired by some plastic techniques as well.

Filed under: Arduino Hacks, hardware

USB chargers are everywhere and it is the responsibility of every hacker to use this commonly available device to its peak potential. [Septillion] and [Hugatry] have come up with a hack to manipulate a USB charger into becoming a variable voltage source. Their project QC2Control works with chargers that employ Quick Charge 2.0 technology which includes wall warts as well as power banks.

Qualcomm’s Quick Charge is designed to deliver up to 24 watts over a micro USB connector so as to reduce the charging time of compatible devices. It requires both the charger as well as the end device to have compatible power management chips so that they may negotiate voltage limiting cycles.

In their project, [Septillion] and [Hugatry] use a 3.3 V Arduino Pro Mini to talk to the charger in question through a small circuit consisting of a few resistors and diodes. The QC2.0 device outputs voltages of 5 V, 9 V and 12 V when it sees predefined voltage levels transmitted over the D+ and D- lines, set by Arduino and voltage dividers. The code provides function calls to simplify the control of the power supply. The video below shows the hack in action.

Quick Charge has been around for a while and you can dig into the details of the inner workings as well as the design of a compatible power supply from reference designs for the TPS61088 (PDF). The patent (PDF) for the Quick Charge technology has a lot more detail for the curious.

Similar techniques have been used in the past and will prove useful for someone looking for a configurable power supply on the move. This is one for the MacGyver fans.

Filed under: Arduino Hacks, hardware

  • Newsletter

    Sign up for the PlanetArduino Newsletter, which delivers the most popular articles via e-mail to your inbox every week. Just fill in the information below and submit.

  • Like Us on Facebook