Posts with «arduino» label

Turning A Car Into A Computer Mouse

[William Osman] and [Simone Giertz] have graced our pages before, both with weird, wacky and wonderful hacks so it’s no surprise that when they got together they did so to turn Simone’s car into a computer mouse. It’s trickier than you might think.

They started by replacing the lens of an optical mouse with a lens normally used for a security camera. Surprisingly, when mounted to the car’s front bumper it worked! But it wasn’t ideal. The problem lies in that to move a mouse cursor sideways you have to move the mouse sideways. However, cars don’t move sideways, they turn by going in an arc. Move your mouse in an arc right now without giving it any sideways motion and see what happens. The mouse cursor on the screen moves vertically up or down the screen, but not left or right. So how to tell if the car is turning? For that, they added a magnetometer. The mouse then gives the distance the car moved and the magnetometer gives the heading, or angle. With some simple trigonometry, they calculate the car’s coordinates.

The mouse click is done using the car’s horn, but details are vague there.

And yes, using the carmouse is as fun as it sounds, though we still don’t recommend texting while driving using this technique. Watch them in the videos below as they write an email and drive a self-portrait of the car.

A perhaps safer but equally fun approach is to turn your car into a game controller by tapping into the car’s CAN bus and converting the steering wheel, peddle and other messages into joystick commands.

Hack a Day 19 Feb 03:00

Underwater Logging for Science

Logging data with an Arduino is old-hat for most Hackaday readers. However, [Patricia Beddows] and [Edward Mallon] had some pretty daunting requirements. Their sensors were going underground and underwater as part of an effort to study conditions underwater and in caves. They needed to be accessible, yet rugged. They didn’t want to use batteries that would be difficult to take on airplanes, but also wanted more than a year of run time. You can buy all that, of course, if you are willing to pay the price.

Instead, they used off-the-shelf Arduino boards connected together inside PVC housings. Three alkaline AA batteries are compact and give them more than a year of run time. They wrote a journal paper to help other scientists use the same techniques for the Sensors journal published by the Multidisciplinary Digital Publishing Institute.

If you regularly read Hackaday, you probably won’t find the electronic part of the build remarkable. However, that’s kind of the point, as this is all off-the-shelf and inexpensive. They do however modify the boards in some cases to allow the controller to power them down, for example.

In fact, they put a lot of thought into reducing power requirements. Since your eye is more sensitive to green, for example, they use green LEDs with very low currents as indicators. They also speed up the serial bus going to sensors because they found that the increased power required was more than offset by finishing the transaction faster (and, thus, going back to sleep sooner).

The PVC enclosures are also interesting. The paper shows some practical deployments in some very harsh conditions. If you want more practical details, the Cave Pearl project has been blogging about their development of these loggers for a while. They have a good “how to” page, as well.

If an Arduino seems too last-year for you, we’ve seen long-duration logging done with ESP8266s and ESP32s. However, they did use lithium-ion cells. Spoiler alert: The ESP8266 lasts longer than the ESP32. If you want to minimize power when sending things out over a network connection, consider MQTT.

Arduino Keyboard is Gorgeous Inside and Out

While the vast majority of us are content to plod along with the squishy chiclet keyboards on our laptops, or the cheapest USB membrane keyboard we could find on Amazon, there’s a special breed out there who demand something more. To them, nothing beats a good old-fashioned mechanical keyboard, where each key-press sounds like a footfall of Zeus himself. They are truly the “Chad” of the input device world.

But what if even the most high end of mechanical keyboards doesn’t quench your thirst for spring-loaded perfection? In that case, the only thing left to do is design and build your own. [Matthew Cordier] recently unveiled the custom mechanical keyboard he’s been working on, and to say it’s an elegant piece of engineering is something of an understatement. It may even better inside than it does on the outside.

The keyboard, which he is calling z.48, is based around the Arduino Pro Micro running a firmware generated on kbfirmware.com, and features some absolutely fantastic hand-wiring. No PCBs here, just a rainbow assortment of wire and the patience of a Buddhist monk. The particularly attentive reader may notice that [Matthew] used his soldering iron to melt away the insulation on his wires where they meet up with the keys, giving the final wiring job a very clean look.

Speaking of the keys, they are Gateron switches with DSA Hana caps. If none of those words mean anything to you, don’t worry. We’re through the Looking Glass and into the world of the keyboard aficionado now.

Finally, the case itself is printed on a CR-10 with a 0.3 mm nozzle and 0.2 mm layers giving it a very fine finish. At 70% infill, we imagine it’s got a good deal of heft as well. [Matthew] mentions that a production case and a PCB are in the cards for the future as he hopes to do a small commercial run of these boards. In the meantime we can all bask in the glory of what passes for a prototype in his world.

We’ve seen some exceptionally impressive mechanical keyboards over the years, including the occasional oddity like the fully 3D printed one and even one that inexplicably moves around. But this build by [Matthew] has to be one of the most elegant we’ve ever come across.

[Thanks to DarkSim905 for the tip]

Water speakers enhanced with an Arduino Mega

Maker “cool austin” is a fan of water speakers, which pulse jets of water inside plastic enclosures to the beat of your music, but thought they could be improved.

What he came up with is a multi-tower setup that not only dances with light and water to the beat of the music playing, but splits up the pulses into frequencies a la a VU meter.

The project uses an Arduino Mega—chosen because it has sufficient PWM outputs to control the water and lights in five of these enclosures via MOSFETs—to output signals to the water units for an excellent audio-visual display.

Water speakers from the store are great to watch, but I felt they could do more. So many years ago I had modified a set to show the frequency of music playing. At the time I used the Color Organ Triple Deluxe II, combined with a set of photocells potentiometers and transistors I was able to get a set of 3 speakers to function.

I then a few years ago had heard about the IC MSGEQ7 which has the ability to separate audio into 7 data values for an Arduino to read. I utilize an Arduino mega 2560 in this project because it has the required number of PWM pins to drive five water towers.

You can find more details on the water speaker equalizer here, and see it in action below!

Video game head tracking with Wii Remote camera

While the Nintendo Wii has been on the market for well over 10 years, its controllers continue to provide a variety of tools for hacking. One component you may want to consider for your next hack is the camera from the Wii Remote, which senses the position of nearby infrared light spots and outputs them as X/Y coordinates via I²C.

While that may instantly set off multiple use ideas, if you need inspiration, be sure to check out this setup by Jack Carter. He mounted one of these cameras to the top of a computer screen, and uses it to track an IR LED mounted to the top of his headset.

From there, an Arduino Uno translates this information as joystick inputs to the computer, which is then configured to control an in-game camera as seen in the video here.

YouTuber creates an organ out of 44 Furbies

If you think Furbies have become extinct, think again, as musical hacker “Look Mum No Computer” has decided to revive a number of them to create his own Furby Organ.

To make this horrifying yet awesome instrument, he placed 44—yes, 44—of these strange creatures on top of an organ frame with a keyboard and several dials, along with a switch labeled ominously as “collective awakening.”

Each individual Furby is controlled by two Arduino Nano boards, and as you might imagine, the whole project took a massive amount of work to wire things together. You can see the incredible results in the first video below, while the second gives a bit more background on the device’s origin.

Arduino Blog 12 Feb 21:01

The Furby Organ

Sometimes you have an idea that is so brilliant and so crazy that you just have to make it a reality. In 2011, [Look Mum No Computer] drew up plans in his notebook for a Furby organ, an organ comprised of a keyboard and a choir of Furbies. For those who don’t know know what a Furby is, it’s a small, cute, furry robotic toy which speaks Furbish and a large selection of human languages. 40 million were sold during its original production run between 1998 and 2000 and many more since. Life intervened though, and, [LMNK] abandoned the Furby organ only to recently take it up again.

He couldn’t get a stable note out of the unmodified Furbies so he instead came up with what he’s calling the Furby Forman Fusion Synthesis. Each Furby is controlled by a pair of Ardunios. One Arduino sequences parts inside the Furby and the other produces a formant note, making the Furby sing vowels.

We love the label he’s given for what would otherwise be the power switch, namely the Collective Awakening switch. Flicking it causes all 44 (we count 45 but he says 44) Furbies to speak up while moving their ears, eyes, and beaks. Pressing the Loop switch makes them hold whatever sound they happen to be making. The Vowel dial changes the vowel. But you’ll just have to see and hear it for yourself in the videos below. The second video also has construction details.

Want to make a Furby do whatever you want? Check out how [Jeija] has reverse engineered one to take control of it.

Thanks for the tip, [Måns Almered].

Hack a Day 12 Feb 16:30

Recreate Optimus Prime’s blaster with Arduino

YouTuber Bob Clagett has dreamed of creating his own life-sized Optimus Prime ion blaster for years, and now after hours of 3D printing and finishing, he finally has something worthy of that universe.

While he opted to construct it in a 1:2 scale, it’s still an impressive physical build, looking comically large, but not entirely unwieldy as a full-sized 8-foot blaster would have been.

Inside, sound and lighting effects are controlled by an Arduino, which plays clips from the show and flashes in different patterns via an Adafruit sound board and RGB LED strip.

I wanted the blaster to play sounds and have lights come out of the barrel so I rigged up an Arduino Nano with an Adafruit sound board and amp that would cycle blaster sounds and lights when a button was pressed. And because there’s always more than meets the eye, I had a separate button that played just Transformers sound clips. To defuse the LED strip when the lights fired, I printed a semi-translucent disc that would stand-off from the sides so that sound could still escape, but the light would be diffused. I decided to mount all of the audio components in the barrel so that the cannon could be taken apart to charge the battery back.

You can see the entire process in the video below, or check out his post for a summary.

Pour Reception turns water into radio controls

Using a capacitive sensing arrangement, artists Tore Knudsen, Simone Okholm Hansen, and Victor Permild have come up with a way to interact with music with two glasses of water.

One pours water into a glass to turn the radio on. Channels can then be changed by transferring water from one glass into the other, and fine-tuned by touching the outside of container. Volume can even be adjusted by poking a finger into the water itself.

An Arduino Leonardo is used to pick up capacitive signals, and data is then sent a computer where a program called Wekinator decodes user interactions.

Pour Reception is a playful radio that strives to challenge our cultural understanding of what an interface is and can be. By using capacitive sensing and machine learning, two glasses of water are turned into a digital material for the user to explore and appropriate.

The design materials that we have available when designing digital artifacts expands along with the technological development, and with the computational machinery it is possible to augment our physical world in ways that challenges our perceptions of the objects we interact with. In this project, we aim to change the users perception of what a glass is – both cultural and technical.

You can see it in action below, and read more about project in its write-up here.

Scribble is an Arduino-controlled haptic drawing robot

As part of his master’s studies at Eindhoven University, Felix Ros created a haptic drawing interface that uses a five-bar linkage system to not only take input from one’s finger, but also act as a feedback device via a pair of rotary outputs.

“Scribble” uses an Arduino Due to communicate with a computer, running software written in OpenFrameworks.

For over a century we have been driving cars, enabling us to roam our surroundings with little effort. Now with the introduction of automated driving, machines will become our chauffeurs. But how about getting us around a road construction, or finding a friend in a crowded area? Or what if you just want to explore and find new places, will these cars be able to handle such situations and how can you show your intentions?

Currently there is no middle ground between the car taking the wheel or its driver, this is where Scribble comes in: a haptic interface that lets you draw your way through traffic. You draw a path and the car will follow, not letting you drive but pilot the car. Scribble lets you help your car when in need, and wander your surroundings once again.

You can learn more about Ros’ design in his write-up here, including the code needed to calculate and output forward kinematics to set the X/Y position, and inverse kinematics to sense user input.

Be sure to check it out in the video below piloting a virtual car through traffic with ease!