Posts with «arduino» label

Constructing an hourglass lamp with Arduino

With the proliferation of all sorts of digital timers, the need for an hourglass to keep track of whatever activity you’re working on seems like a relic of the past. Still, the hourglass is an interesting form factor, so YouTuber Emiel Noorlander (aka The Practical Engineer) has decided to take it into the 21st century.

His device is about the size and shape of a rectangular picture frame, with the outline of an hourglass in wood attached to white polycarbonate. This diffuses programmable LEDs on the other side, controlled by Arduino Nano to simulate sand falling. The project is powered by a four AA battery pack, cleverly allowed to float in the internal structure, activating the on/off switch when positioned correctly.

In this week’s video I’m making an hourglass lamp with light effects that simulate the falling sand when you turn the lamp upside down.

Another cool feature I build into it is the on / off switch, this is hidden inside the lamp and turns on by putting the lamp on the right side. Turning it upside down then turns off the light.

The outside frame of the lamp is made of 40×6 mm metal strip that I cut to size and then welded as a frame. When this was done I went over to the bandsaw to cut the hourglass shape out of the wood. The semi-transparent panel where the light shines through is made from 3 mm opaque white polycarbonate sheet.

Salvaged Arduino powers animated House Party

What can you do with items that are destined for the dump? As seen here, if you’re Neil Mendoza, you transform furniture, an old TV, art, and even an Arduino Zero that somehow ended up in the trash into a musical installation.

His resulting “House Party” features decorations and control components that according to the project’s write-up are entirely salvaged. A MIDI interface, software written in openFrameworks, and a JSON file are used to coordinate sound and movements, which include spinning picture frames and flowers, tapping shoes, and a television that loops through a rather dreary weather report snippet. 

House Party is a musical installation that explores prized possessions in their native habitat. All the materials used to create this artwork, from the furniture to the computers, were scavenged from the discarded trash. The music is a mix of mechanical and synthesized sounds. The piece was created while an artist in residence at Recology SF.

The actuators in the installation are controlled by an Arduino Zero (also found in the trash) and each screen is connected to a computer running custom software written in openFrameworks (OF). Composition was done in Logic where a MIDI environment was set up to send MIDI data to the Arduino and an OF control program. The control program then sent the data to the other computers over ethernet as OSC. For the final installation, the control program read the data from a JSON file, triggered the screens and Arduino and played the synthesized parts of the music.

Be sure to see all the zany action in the video below!

Electrically assisted scooter senses forward kicks

Maker Bitluni wanted an electric scooter, but he lives in Germany, where electric vehicles of that type are illegal. Motor-assisted bicycles, however, are not. So he set to work making a sort of hybrid that is controlled not by a throttle directly, but provides assistance when the rider kicks the scooter forward.

The scooter uses an accelerometer to sense forward pushes, along with an Arduino Micro that regulates speed via PWM output. A brake assembly is also implemented as a secondary input, starting up the device and powering it down as needed. 

Bitluni’s build and testing process can be seen in the videos below, and Arduino code is available on GitHub.

Custom weather station enhances and modifies electronic music

While the environment is important for any musical performance, generally it’s not an active part of the show. Adrien Kaeser, though, has come up with a device called the “Weather Thingy that integrates weather directly into electronic music performances. It’s able to sense wind direction and speed, light intensity, and rain, translating this data into MIDI inputs.

The system, which was created at ECAL, consists of two parts: a compact weather station on top of a portable stand, as well as a small console with buttons and knobs to select and modify environmental effects on the music. 

Hardware for the project includes an Arduino Mega and Leonardo, a small TFT screen to display the element under control and its characteristics, an ESP32 module, a SparkFun ESP32 Thing Environment Sensor Shield, a SparkFun MIDI Shield, high speed optocouplers, rotary encoder knobs, and some buttons.

Be sure to see the demo in the video below, preferably with the sound on!

Turn an Atari 2600 into a MIDI drum machine

While not known for its musical prowess, John Sutley decided to turn an Atari 2600 into a simple four-note drum machine dubbed “SYNDRUM.”

While an interesting exercise in creating a custom cartridge out of repurposed components, pushing buttons to activate four tones and an onscreen VU meter can only keep one’s attention for so long.

To turn this project’s musical entertainment level up to 11, he programmed an Arduino Nano to take MIDI signals and translate them into the equivalent electrical signals that would normally come from a controller. 

The results, as seen in the video below, are spectacular. If you’d like to try something similar yourself, code for the SYNDRUM can be found here.

Faux Walkie-Talkie for Comedy Walking Tour is a Rapid Prototyping Win

Chances are good that a fair number of us have been roped into “one of those” projects before. You know the type: vague specs, limited budget, and of course they need it yesterday. But you know 3D-printers and Raspberduinos and whatnot; surely you can wizard something together quickly. Pretty please?

He might not have been quite that constrained, but when [Sean Hodgins] got tapped to help a friend out with an unusual project, rapid prototyping skills helped him create this GPS-enabled faux-walkie talkie audio player. It’s an unusual device with an unusual purpose: a comedic walking tour of Vancouver “haunted houses” where his friend’s funny ghost stories are prompted by location. The hardware to support this is based around [Sean]’s useful HCC module, an Arduino-compatible development board. With a GPS module for localization and a VS1053 codec, SD card reader, and a small power amp for the audio end, the device can recognize when the user is within 50 meters of a location and play the right audio clip. The housing is a 3D-printed replica of an old toy walkie-talkie, complete with non-functional rubber ducky antenna.

[Sean]’s build looks great and does the job, although we don’t get to hear any of the funny stuff in the video below; guess we’ll have to head up to BC for that. That it only took two weeks start to finish is impressive, but watch out – once they know you’re a wizard, they’ll keep coming back.

Building an Electric Scooter That’s Street Legal, Even in Germany

Sometimes a successful project isn’t only about making sure all the electrons are in the right place at the right time, or building something that won’t collapse under its own weight. A lot of projects involve a fair amount of social engineering to be counted as a success, especially those that might result in arrest and incarceration if built as originally planned. Such projects are often referred to as “the fun ones.”

For the past few months, we’ve been following [Bitluni]’s DIY electric scooter build, which had been following the usual trajectory for these things – take a stock unpowered scooter, replace the rear wheel with a 250 W hub motor, add an ESC, battery, and throttle, and away you go. Things took a very interesting turn, however, when his street testing ran afoul of German law, which limits small electric vehicles to a yawn-inducing 6 kph. Unwilling to bore himself to death thus, [Bitluni] found a workaround: vehicles that are only assisted by an electric motor have a much more reasonable speed limit of 25 kph. So he added an Arduino with a gyro and accelerometer module and wrote a program to only power the wheel after the rider has kicked the scooter along a few times – no throttle needed. The motor stops after a bit, needing another push or two to kick it back on. A brake lever kills the motor, as does laying the scooter on its side. It’s quite a clever design, and while it might not keep the Polizei at bay, you can’t say he didn’t try.

[Bitluni] has quite a range of builds, from software-defined television to bad 3D-scanners to precision wine glass whacking. You should check out his stuff.

Thanks for the tip, [Baldpower].

Racing the Beam and Dropping Some Beats

The heart of the Atari 2600 wasn’t the 6502 (or the 6507 for the pedants), it was the TIA chip. This is the chip responsible for drawing graphics on the display, racing the beam, and extremely limited support for sound generation. We haven’t seen many attempts of using the Atari 2600 for chiptunes, but that doesn’t mean it can’t be done. [John Sutley]’s Syndrum, a take on an Atari 2600 drum machine is nearly a work of art. It’s a custom cartridge for the wood-paneled Atari, and an impressive input device that turns this classic console into a beat machine

Did the Atari 2600 ever come with a drum machine cartridge? Maybe. Probably not. [John] originally built this project to experiment with the TIA chip, but found it was less tonal than a kazoo. That struck ‘Atari synthesizer’ off the list and replaced it with an ‘Atari drum machine’. There are two key parts of the build here, the first being a repurposed Asteroids cartridge that had the PROM replaced with a ZIF socket. This allows [John] to easily burn new code to an EEPROM, stuff it in the socket, and run it on the Atari. All the code was developed with batari Basic, a BASIC-inspired language that spits out .bin files for the Atari.

But running code on the Atari is just one half of this build. To do a drum machine, you somehow need to tell the Atari when to play each sound. Given the lack of expansion capabilities for the Atari, [John] turned to the controller port. The Syndrum uses Arduino Nano to bridge the DE9 controller connector to a MIDI port. Yes, it’s real MIDI, on a machine that could probably never do MIDI natively (although we’d love to see someone try).

Need a video of this mind-blowing hack in action? Here you go:

Communicate using your ear with Orecchio

When conversing face-to-face, there are a wide range of other emotions and inflections conveyed by our facial and body expressions. But what if you can’t express emotion this way, whether due to a physical impairment, or simply because of a covering—like a dust mask—temporarily hides your beautiful smile, and perhaps your hands are otherwise occupied?

As a solution to this dilemma, a team of researchers has been working on Orecchio, a robotic device that attaches to the ear and bends it to convey emotion. Three motors allow the ear to be bent in 22 distinct poses and movements, indicating 16 emotional states. Control is accomplished via an Arduino Due, linked up with a windows computer running a C# program. 

The prototype was implemented using off-the-shelf electronic components, miniature motors, and custom-made robotic arms. The device has a micro gear motor mounted on the bottom of a 3D-printed ear hook loop clip. The motor drives a plastic arm against the side of the helix, able to bend it towards the center of the ear. Rotating the plastic arm back to its rest position allows the helix to restore to its original form. Near the top of the earpiece is another motor that drives a one-joint robotic arm that is attached to the top of the helix, using a round ear clip. Rotating the motor extends the robotic arm from its resting position, to bend the top helix downwards the center of the ear. The motor together with the one-joint robotic arm is mounted on a linear track that can be moved vertically through a rack-and-pinion mechanism, driven by a third motor. Moving the rack upwards stretches the helix.

The prototype is demonstrated in the video below, and more info is available in the project’s research paper.

DualPanto is a non-visual gaming interface for the blind

While there are tools that allow the visually impaired to interact with computers, conveying spacial relationships, such as those needed for gaming, is certainly a challenge. To address this, researchers have come up with DualPanto.

As the name implies, the system uses two pantographs for location IO, and on the end of each is a handle that rotates to indicate direction. One pantograph acts as an output to indicate where the object is located, while the other acts as a player’s input interface. One device is positioned above the other, so the relative position of each in a plane can be gleaned. 

The game’s software runs on a MacBook Pro, and an Arduino Due is used to interface the physical hardware with this setup. 

DualPanto is a haptic device that enables blind users to track moving objects while acting in a virtual world.

The device features two handles. Users interact with DualPanto by actively moving the ‘me’ handle with one hand and passively holding on to the ‘it’ handle with the other. DualPanto applications generally use the me handle to represent the user’s avatar in the virtual world and the it handle to represent some other moving entity, such as the opponent in a soccer game.

Be sure to check it out in the video below, or read the full research paper here.