Posts with «featured» label

“Magical” fountain bends time under Arduino control

Years ago, engineer and photographer Harold “Doc” Edgerton figured out how to “bend time” by pulsing a strobe light at the nearly the same speed as droplets of water, making them appear to move in slow motion, freeze, or even more backwards. Today, Nick Lim of jolliFactory has created the same effect, controlled by an Arduino Nano.

His excellent build is outlined here, including a surprisingly simple circuit that controls the pump, solenoid valve, and LED illumination via a trio of MOSFETs. 

One simply places the fountain over a water supply, which pumps it up into the solenoid valve, allowing 45 drops to fall per second. The lights then strobe at this speed—or slightly faster or slower—producing the time-bending display shown in the video below.

Arduino Blog 16 Jul 20:21

An Arduino “Whack-a-Button” Reaction Game

After Instructables user R0RSHACH’s son won a place at the World Scout Jamboree in 2019, the maker decided to create a fairground-style game for fundraising. 

The resulting device is akin to a Whack-a-Mole or Batak game that can be found at high-end gyms, and features eight large light-up buttons per player on a wooden frame.

When activated, an Arduino Mega turns on the button-lights in sequence to test how long it takes participants to push each one. While it can be made in a single-player version, the two-player game looks like a lot more fun, allowing participants to compete on opposing boards. 

Code and instructions are available here, and you can see it demonstrated in the videos below.

imPulse is an energy harvesting alternative for bicycles

Javier Betancor is developing a system which collects power as you ride a bike, with the goal of powering data collection and lighting. “imPulse” uses a stepper motor for power generation, along with a geared hub to make the motor spin at multiples of the wheel speed.

While the project is still a prototype, the headlights and rear lighting assemblies already look very good, and CAD files as well as Arduino code are available here.

The aim of this project is to provide a cost-effective alternative to power generation on bikes using conventional stepper motors while adding other capabilities, such as: 

– An integrated data logging system to monitor power generated on each trip.

– A smart lighting system with addressable LEDs, working as indicators, braking lights and headlights, incorporating Light Dependant Resistors (LDRs) to sense the environment and to reduce the risk of glare.

– Power Distribution Board (PDB) to charge two different/generic powerbanks. While one powerbank is charged, the other one is used to supply energy to the system.

You can see a prototype of the lighting system in the video below, using an Arduino Uno for control as a turn signal and brake light, as well as a constant beam for visibility. Find additional information and follow along with Betancor’s progress in his Hackaday log. 

Arduino Blog 16 Jul 20:06

Stepper motor utilized as a rotary encoder with Arduino

Stepper motors work by alternating a series of magnets in order to rotate its shaft by a certain angle. When the shaft is manually twisted, these magnets produce an electrical signal in a predictable pattern, which as shown in the video below, can be used as an encoder with the help of an Arduino Uno.

More information, including a circuit diagram and the Arduino code used for the stepper-NeoPixel and stepper-stepper examples can be found here. While the write-up notes that this stepper-encoder won’t work reliably if turned too slowly, it seems to work quite well at the fairly low speed shown in the demonstrations.

I want to tell you how to make incremental encoder from stepper motor. When we turning shaft of stepper motor it works like generator. It generates certain impulses on its coils. After some signal processing, we get same impulses as incremental encoder. This encoder has one problem, it can drop steps if you turning very slowly. But for many applications, it doesn’t matter.

Dual ultrasonic sensors combine for 2D echolocation

Ultrasonic sensors are great tools for measuring linear distance or object presence. As shown in this experiment by “lingib,” two sensors can also be combined to determine not just linear distance to a sensor, but its position in an X/Y plane.

For his experiment, he hooked two of these units up to an Arduino Uno at a known distance from each other, with one emitter blanked out with masking tape. The non-blanked emitter pulses an ultrasonic signal, which is bounced back to it as well as the second sensor by the measured object. From the time it takes to receive the return signal, distance to each sensor can be inferred, giving a triangle with each side known. Trigonometry is then used to pinpoint the item’s position, and a Processing sketch displays coordinates on lingib’s computer.

This Instructable explains how to pinpoint the location of an object using an Arduino, two ultrasonic sensors, and Heron’s formula for triangles. There are no moving parts.

Heron’s formula allows you to calculate the area of any triangle for which all sides are known. Once you know the area of a triangle, you are then able to calculate the position of a single object (relative to a known baseline) using trigonometry and Pythagoras.

The accuracy is excellent. Large detection areas are possible using commonly available HC-SR04, or HY-SRF05, ultrasonic sensors.

Construction is simple … all you require is a sharp knife, two drills, a soldering iron, and a wood saw.

Morse code input for Android with Arduino

Morse code may not be as widely used as in its heyday, but it still certainly has its adherents. One avid user is Tanya Finlayson, who has been using this as her method of communication for roughly 40 years. Now, with the Gboard phone keyboard supporting input via dots and dashes, the world of Android computing has been opened up to her as well.

In order to get button presses to the phone, Ken Finlayson used an Arduino Leonardo to read inputs from a trio of buttons, indicating dot, dash, and mode select. The third button allows for phone navigation in addition to text input. Because of its built-in HID capabilities via the ATmega32U4 chip, the Leonardo is a great choice for this application, demonstrated in the video below. 

Many people cannot use keyboards and touchscreens to control their digital devices. Instead, they use custom hardware switches that emulate typing, swiping, and tapping. The Android operating system provides software that allows these switches to control Android devices, and recently Google provided a new Morse Keyboard within the Gboard keyboard for people who find this method easier for text entry.

This experiment is a DIY hardware adapter that enables assistive tech developers to connect existing switch based input systems to their Android device. Once connected, 2 switch assistive systems (with an additional switch for mode switching) can control both the standard Android accessibility func

tions as well as text entry through Morse on Gboard.

This experiment is built using Arduino and is compatible with most standard assistive 2 switch systems with 1/8” mono outputs.

Arduino Blog 12 Jul 22:12

Camera questions user, saves photographic response

Cultural probes aim to elicit unique responses by asking people to respond to a question, many times in the form of a photograph. While disposable cameras once worked quite nicely for this purpose, their relative rarity today meant a new digital alternative was needed. For this, Interaction Research Studio came up with a series of ProbeTools cameras that anyone can make and customize.

The most basic type in this series of cameras is known as the TaskCam, which features a 3D-printed frame and an Arduino Uno at its core. A shield with several snap-off sections provides user interface, including a trio of buttons, and a display that shows questions that are read off of a micro SD card. Users then respond to queries with photographs, saved with the corresponding question for future analysis.

TaskCams recreate the proven Cultural Probe technique of relabelling disposable cameras with requests for pictures. The 3D Printed TaskCam is the basic workhorse of the collection, robust and flexible enough to use across multiple studies.

The 3D Printed TaskCam has a small screen on the back that shows a scrollable list of requests for pictures.  Researchers can load their own list of requests onto the camera to prepare for a study. When users take a picture, the image is tagged with the current request, and stored on a standard flash drive that can be removed for downloading.

The casing for the 3D Printed TaskCam can be printed successfully without support materials even on low-end printers. The device requires a custom Arduino shield,  buy online at cost price, or follow the open-source plans to make yourself. Smart power management mean that two AA batteries provide more than enough power for an entire user study.

You can find more details on ProbeTools here, as well as in Designboom’s recent article. 

Audio preamplifier with tiny OLED display and unique case

As spotted here, Sam Izdat decided to make a preamplifier for a friend who provides voice talent for audiobooks and the like. The primary audio circuitry for the build is provided by a purchased PCB based on the INA217 chip from TI, but from there things get a bit more interesting.

To complete the project, Izdat added a tiny Arduino-powered OLED display. This shows a VU meter, along with a variety of other animations, seen through a window in the enclosure made from a broken wristwatch. 

The device was prototyped using an Arduino Uno, while a Nano was embedded in the final product, allowing everything to fit into the unique compartmentalized enclosure that he constructed.

The amplifier is based on the Texas Instruments INA217 chip, with an Arduino Nano and 128×64 OLED display providing the visualization. [Sam] was able to find a bare PCB for a typical INA217 implementation on eBay for a few bucks (see what we mean?), which helped get him started and allowed him to spend more time on the software side of things. His visualization code offers a number of interesting display modes, uses Fast Hartley Transforms, and very nearly maxes out the Arduino.

Robot transforms to slide under doors and more

While the STAR, or Sprawl Turned Autonomous Robot, is more than capable of traveling over obstacles with its three-pointed wheels, it can also make itself thin enough to simply slide under others as needed. This clever design uses an Arduino Pro Mini for control, and normally moves around like a tank, rolling on six wheels that are turned by two motors.

When the task calls for it to go under something, a third motor cranks these wheels to nearly parallel with the floor, shrinking the robot down to a very slim profile—so thin, in fact, that it can actually slide under a door as seen in the video below! 

Print files and more information on the build can be found here, while the original paper upon which this robot is based is also available.

Tell time on a three-module voltmeter clock

Father’s Day 2018 has come and gone, but it’s never too early to start planning for next year. As seen here, Michael Teeuw decided to build a clock out of three analog voltmeters for his dad in 2017. After getting sidetracked last year, he was finally able to complete it on time for 2018!

Teeuw’s clock features a trio of indicators, properly scaled and labeled for hours, minutes, and seconds, with control via an Arduino Nano, along with an RTC module for accurate timekeeping. Each indicator is housed in its own 3D-printed module, with white LEDs added for visibility. 

If you’d like to build your own, Teeuw’s code is available on GitHub and the 3D print files can be found on Thingiverse.