Posts with «arduino» label

Make an Arduino-controlled boost gauge for your racing sim dash

If you’re really serious about car racing games, at some point you may want to upgrade your instruments from being on-screen to physically residing in your living room.

While this would appear to be an arduous task, displaying your in-game boost level on a physical gauge is actually as easy as connecting a few wires to an Arduino Nano, then using SimHub to tie everything together.

As seen in the video below around 2:45, it looks like a lot of fun! While a boost gauge by itself might not be as immersive costly sit-inside racing sims, one could see where this type of hack could lead to ever more impressive DIY accessories.

Arduino Blog 18 Oct 18:35

Click Your Heels Thrice, Hail a Cab Home

If Dorothy from The Wizard of Oz were to wake up in 2017, with her magic Ruby Slippers on her feet, she’d probably believe she had woken up in a magical world. But modern folks will need a little more magic to impress them. Like Clicking your heels thrice to get home with these Uber ruby slippers. [Hannah Joshua] was tasked by her employer to build a quirky maker project. She got an idea when a friend complained about having trouble hailing a cab at the end of a hard day at work.

[Hannah] started with ruby colored slippers with a platform toe and high heels to allow space to stuff in all the magic dust, err, electronic bits. The initial plan was to use an Arduino with a GSM/GPS shield but that would have needed a separate SIM card and data plan for the shoes. Instead, she opted for the 1Sheeld which connects to a smart phone over Bluetooth. The 1Sheeld gets access to all of the smart phone’s sensors including the GPS as well as the data connection. The Arduino and 1Sheeld are put in a cavity carved out in the toe section. The 9 V battery goes inside another cavity in the heel, where an activation switch is also installed. Three LED’s indicate when the shoe is active, the cab request is accepted, and when the cab is on its way.

The code is basic since this one of her first Arduino projects, but it gets the job done. It sends an http request to Uber’s API to request a cab. The destination is hard-coded, so the slippers only allow you to get from your current location to whatever destination is programmed. The GitHub repository provides code, as well as some additional information on construction. [Hannah] has also added notes explaining some of the design choices and things to take care about if you plan to build one of these magic slippers.

We covered the 1Sheeld when it was introduced several years back, and if you get your hands on one, try building this Hand Waving Door Unlocker.

 


Filed under: Arduino Hacks

Antique organ speaks clues at an escape room

When tasked with converting an antique pump organ—sort of a miniature version of a full-sized pipe organ—into part of an escape room puzzle, hacker Alec Smecher decided to turn it into a vocal MIDI device.

To accomplish this, he embedded switches in each of the keys, then wired them into an Arduino Leonardo embedded in the 100-year-old organ to act as input to a desktop computer. Information is translated into browser commands using the Web MIDI API, which controls the Pink Trombone application in order to imitate a human vocal tract.

A common stop on an organ is called “Vox Humana”, or “Human Voice” in Latin. This is supposed to somehow sound like a choir or soloist, generally by adding a tremolo effect. It’s not effective — all pump organ stops sound like pump organ stops. I wanted to modify this stop so that engaging it would sound like a human voice — and not at all like a musical instrument.

The results–shown in the first video below–sound almost but not quite human, certainly adding to the tension and mystery of the escape room. Be sure to read more about Smecher’s project here.

Arduino Blog 17 Oct 20:25

TeensyStep – Fast Stepper Library for Teensy

The Teensy platform is very popular with hackers — and rightly so. Teensys are available in 8-bit and 32-bit versions, the hardware has a bread-board friendly footprint, there are a ton of Teensy libraries available, and they can also run standard Arduino libraries. Want to blink a lot of LED’s? At very fast update rates? How about MIDI? Or USB-HID devices? The Teensy can handle just about anything you throw at it. Driving motors is easy using the standard Arduino libraries such as Stepper, AccelStepper or Arduino Stepper Library.

But if you want to move multiple motors at high micro-stepping speeds, either independently or synchronously and without step loss, these standard libraries become bottlenecks. [Lutz Niggl]’s new TeensyStep fast stepper control library offers a great improvement in performance when driving steppers at high speed. It works with all of the Teensy 3.x boards, and is able to handle accelerated synchronous and independent moves of multiple motors at the high pulse rates required for micro-stepping drivers.

The library can be used to turn motors at up to 300,000 steps/sec which works out to an incredible 5625 rpm at 1/16 th micro-stepping. In the demo video below, you can see him push two motors at 160,000 steps/sec — that’s 3000 rpm — without the two arms colliding. Motors can be moved either independently or synchronously. Synchronous movement uses Bresenham’s line algorithm to plan motor movements based on start and end positions. While doing a synchronous move, it can also run other motors independently. The TeensyStep library uses two class objects. The Stepper class does not require any system resources other than 56 bytes of memory. The StepControl class requires one IntervallTimer and two channels of a FTM  (FlexTimer Module) timer. Since all supported Teensys implement four PIT timers and a FTM0 module with eight timer channels, the usage is limited to four StepControl objects existing at the same time. Check out [Lutz]’s project page for some performance figures.

As a comparison, check out Better Stepping with 8-bit Micros — this approach uses DMA channels as high-speed counters, with each count sending a pulse to the motor.

Thanks to [Paul Stoffregen] for tipping us off about this new library.


Filed under: Microcontrollers

A Playmobil Wedding Band

Two of Boris Werner’s friends, both musicians, were getting married, so for a unique gift he decided on a miniature stage setup with a Playmobil bride and groom as the guitarists. After some research and ordering quite a few parts, he was able to construct an impressive festival-like stage, complete with guitars, lights, and some tunes.

In order to bring this diorama to life, he used an Arduino Uno board to play WAV files from a micro SD card, along with NeoPixel rings in the background, and MOSFET-driven LEDs for lighting.

The stage even features a tiny disco ball that spins via a stepper motor, propelling the tiny bride, groom, and their young son as the drummer into the limelight.

You can check it out in the video below, and see Werner’s series of posts on the construction here.

Arduino Blog 16 Oct 19:17

Nematoduino: A Roundworm Neural Model on an Arduino

When it comes to building a neural network to simulate complex behavior, Arduino isn’t exactly the first platform that springs to mind. But when your goal is to model the behavior of an organism with only a handful of neurons, the constraints presented by an Arduino start to make sense.

It may be the most important non-segmented worm you’ve never heard of, but Caenorhabditis elegans, mercifully abbreviated C. elegans, is an important model organism for neurobiology, having had its entire nervous system mapped in 2012. [Nathan Griffith] used this “connectome” to simulate a subset of the diminutive nematode’s behaviors, specifically movements toward attractants and away from obstacles. Riding atop a small robot chassis, the Arduino sends signals to the motors when the model determines it’s time to fire the virtual worm’s muscles. An ultrasonic sensor stands in for the “nose touch” neurons of the real worm, and when the model is not busy avoiding a touch, it’s actively seeking something to eat using the “chemotaxis” behavior. The model is up on GitHub and [Nathan] hopes it provides an approachable platform for would-be neuroroboticists.

This isn’t the first time someone has modeled the nematode’s connectome in silico, but kudos to [Nathan] for accomplishing it within the constraints an Arduino presents.


Filed under: Arduino Hacks, misc hacks

Build Your Own Wave Tank

Wave tanks are cool, but it’s likely you don’t have one sitting on your coffee table at home. They’re more likely something you’ve seen in a documentary about oil tankers or icebergs. That need no longer be the case – you can build yourself a wave generator at home!

This build comes to use from [TVMiller] who started by creating a small tank out of acrylic sheet. Servo-actuated paddles are then placed in the tank to generate the periodic motion in the water. Two servos are controlled by an Arduino, allowing a variety of simple and more complex waves to be created in the tank. [TVMiller] has graciously provided the code for the project on Hackaday.io. We’d love to see more detail behind the tank build itself, too – like how the edges were sealed, and how the paddles are hinged.

A wave machine might not be the first thing that comes to mind when doing science at home, but with today’s hardware, it’s remarkable how simple it is to create one. Bonus points if you scale this up to the pool in your backyard – make sure to hit the tip line when you do.


Filed under: classic hacks
Hack a Day 11 Oct 00:00

An Arduino Mouse Wiggler!

If, for whatever reason, you need your computer to stay awake without changing its settings, that’s easy—just remember to shake your mouse back and forth intermittently! If remembering to do that over and over seems like too much work, then here’s a simple solution: a device setup to optically wiggle your mouse using an Arduino Nano and a micro RC servo.

The 3D-printed unit sits underneath a mouse and rotates a printed grid left and right in order to trick it into thinking that you’re moving the mouse, and thus keeping the computer awake.

Place your mouse on top of the Mouse Wiggler and make sure the optical sensor on top of the wheel. Power the device up use a USB power adapter and you’re good to go.

There’s no software to install, which makes it easy to enable and disable as needed! You can find more details on the build on its Instructables page.

Cutting electronic parts with Arduino-powered scissors

When faced with the need to cut thousands of parts from reels in order to make them into kits, “Der Zerhacker” decided to automate the process.

For his robotic machine, an Arduino Pro Mini pulls strips of tape into position with a stepper motor, coloring them along the way with a marker. An infrared sensor is used to align the correct number of parts with a pair of scissors, which are then cut via a second motor and tumble into a basket.

If you’d like to build your own, 3D print files and Arduino code can be found on Thingiverse. As the author doesn’t have a ton of spare time, wiring and other project details will need to be figured out, but you can get a few clues from the video below…

Meet Moo-Bot, a robotic cow scarecrow

With Halloween around the corner, hackers are gearing up for festivals and trick-or-treaters, hoping to spook visitors or simply impress others with their automation prowess. DIY bloggers Ash and Eileen are no different, and decided to enter a local scarecrow contest in the “Out of this World” category. Their entry? Moo-Bot, an Arduino-powered sheet metal cow that looks like it came straight off the set of a 1950s sci-fi flick.

Not that that is a bad thing; somehow this retro-futuristic bovine looks quite interesting. Making it even better is that the robotic cow’s eyes are made out of two OLED displays, and that it can interact with observers through an internal speaker.

When someone presses a button on its nose, the onboard Uno powers up and tells a pre-recorded series of cow jokes via an MP3 player module. Power is supplied by eight D batteries, which is enough to keep the Moo-Bot going for a few months.

You can read more about the project here, and see it in action below!