Posts with «misc hacks» label

Wheel of Resistors Form Unique Rotary Encoder

Continuing his tradition of making bits of wire and scraps of wood work wonders, [HomoFaciens] is back with a unique and clever design for an electromechanical encoder.

There are lots of ways to build an encoder, and this is one we haven’t seen before. Not intended in any way to be a practical engineered solution, [HomoFaciens]’ build log and the video below document his approach. Using a rotating disc divided into segments by three, six or eight resistors, the encoder works by adding each resistor into a voltage divider as the disc is turned. An Arduino reads the output of the voltage divider and determines the direction of rotation by comparing the sequence of voltages. More resistors mean higher resolution but decreased maximum shaft speed due to the software debouncing of the wiped contacts. [HomoFaciens] has covered ground like this before with his tutorial on optical encoders, but this is a new twist – sort of a low-resolution continuous-rotation potentiometer. It’s a simple concept, a good review of voltage dividers, and a unique way to sense shaft rotation.

Is this all really basic stuff? Yep. Is it practical in any way? Probably not, although we’ll lay odds that these encoders find their way into a future [HomoFaciens] CNC build. Is it a well-executed, neat idea? Oh yeah.


Filed under: misc hacks

Control the Real World with an Arduino-Enabled Minecraft Mod

Minecraft modding has become almost as popular as the block-based game itself, with tons of editors and tools available to create new kinds of blocks, mobs, and weapons. And now, with this mod framework that can talk to an Arduino, modders can build blocks that break out of the Minecraft world to control the real world.

While turning on a light from Minecraft is not exactly new, the way that MCreator for Arduino goes about it is pretty neat. MCreator is a no-code framework for building Minecraft mods, which allows modders to build new game capabilities with a drag and drop interface. The MCreator Arduino toolkit allows modders to build custom Minecraft blocks that can respond to in-game events and communicate with an Arduino over USB. Whatever an Arduino can do – light an LED, sense a button press – can be brought into the game. It’s all open-source and free for non-commercial use, which is perfect for the upcoming STEM-based summer camp season. We can think of some great projects that would really jazz up young hackers when presented through a Minecraft interface.


Filed under: Arduino Hacks, misc hacks

DIY Air Quality Meter And Emissions Tester

Handheld measuring devices make great DIY projects. One can learn a lot about a sensor or sensor technology by just strapping it onto a spare development board together with an LCD for displaying the sensor output. [Richard’s] DIY air quality meter and emissions tester is such a project, except with the custom laser-cut enclosure and the large graphic LCD, his meter appears already quite professional.

For his build, [Richard] used a Sharp GP2Y1010AU0F dust sensor. This $11 device has a little hole, through which airborne dust particles can pass. On the inside, an infrared LED and a photodiode are arranged in a way that allows no direct light, but only light reflected by the passing by dust particles, to reach the photodiode. An accurately trimmed amplifier within the sensor package translates the diode’s photocurrent into an analog output voltage proportional to the dust density. With a bit of software wizardry, it’s even possible to differentiate between house dust and smoke by analyzing the pulse pattern of the output voltage.

The development board used in this project, a PDI-1 (which stands for Programmable Device Interface) is [Richard’s] own design. Manufactured in the UK, it isn’t the cheapest, but it’s the part that makes this build a breeze. It’s basically an Arduino Nano with a lot of onboard peripherals, including a large graphic LCD, some buttons, a speaker, plenty of H-bridges, and a few more.

After bodge-wiring the dust sensor to the board and taking the enclosure out of the laser cutter, the hardware side of this project was almost done. A little fan was added to ensure airflow through the sensor. Eventually [Richard] wrote a basic firmware to display a graph of sensor readings on the LCD. A first test in the exhaust stream of his car, cycling through idling and revving as shown in the title image, suggests that the meter works as intended. Of course, air quality and emission testing depend on more parameters than just dust density, but if you want to replicate and extend this build, [Richard] provides you with all the Arduino compatible source files.


Filed under: Arduino Hacks, misc hacks

Robotic Pets Test an Automatic Pet Door

Lots of people get a pet and then hack solutions that help them care for their new friend, like an automatic door to provide access to the great outdoors. Then again, some people build the pet door first and then build the pets to test it.

It’s actually not quite as weird as it sounds. [Amir Avni] and his wife attended a recent GeekCon and entered the GeekCon Pets event. GeekCon is a cooperative rather than competitive hackathon that encourages useless builds as a means to foster community and to just have some fun. [Amir] and his wife wanted to build a full-featured automatic pet door, and succeeded – with NFC and an ESP8266, the stepper-powered door worked exactly as planned. But without any actual animal companions to test the system, they had to hack up a few volunteers. They came up with a 3D-printed dog and cat perched atop wireless cars, and with NFC tags dangling from their collars, the door was able to differentiate between the wandering ersatz animals. The video below the break shows the adorable plastic pals in action.

It’s clear from all the pet doors and automatic waterers and feeders we’ve seen that hackers love their pets, but we’re pretty sure this is the first time the pet itself was replaced by a robot. That’s fine for the test environment, but we’d recommend the real thing for production.

[via r/arduino]


Filed under: home hacks, misc hacks
Hack a Day 12 Mar 00:00

Cricket Scoreboard is a Big Win for Novice Hackers

The game of cricket boggles most Americans in the same way our football perplexes the rest of the world. We won’t even pretend to understand what a “wicket” or an “over” is, but apparently it’s important enough to keep track of that so an English cricket club decided to build their own electronic scoreboard for their – pitch? Field? Help us out here.

This scoreboard build was undertaken by what team member [Ian] refers to as some “middle-aged blokes from Gloucestershire” with no previous electronics experience. That’s tough enough to deal with, but add to it virtually no budget, a huge physical size for the board, exposure to the elements, and a publicly visible project where failure would be embarrassingly obvious, and this was indeed an intimidating project to even consider. Yet despite the handicaps, they came up with a great rig, with a laser-cut acrylic cover for a professional look. A Raspberry Pi runs the LED segments and allows WiFi connections from a laptop or phone in the stands. They’ve even recently upgraded to solar power for the system.

And we’ll toot our own horn here, since this build was inspired at least in part by a Hackaday post. The builders have a long list of other links that inspired or instructed them, and we think that says something powerful about the hacker community that we’ve all been building – a group with no previous experience manages a major build with the guidance of seasoned hackers. That’s something to feel good about.


Filed under: misc hacks, Raspberry Pi
Hack a Day 24 Jan 12:01

Your Fingers Will Never Leave Your Hands with This Firecracker Launcher

Who doesn’t like to ring in the New Year with explosives? But speaking from personal experience – I can neither confirm not deny nearly blowing my hand off once with a small dry-ice grenade – a hands-off way to launch your fireworks can be a plus, in which case you might want to check out this automatic firecracker launcher.

[Valentin]’s build has all the earmarks of an inspired afternoon of hasty hacking. Mostly built of wood and hot glue, there’s a feed ramp for fresh ammo and an elastic-powered sled on a ramp. Fireworks are metered onto the sled with one turn of a small gear motor, the fuse is light by a butane torch, and another gear motor pulls the sled back and launches the firecracker. The launch is somewhat anemic – perhaps some stouter rubber bands or latex tubing would provide a little more oomph. But it’s still a fun build with plenty of potential for improvement – perhaps something along the lines of this automated beer catapult?


Filed under: misc hacks, weapons hacks

Netflix and Chill – and Socks?

Waking up to spoilers in the last episode after falling asleep during the first episode of a Netflix binge-watching session ranks right up there on the list of first-world problems. Luckily there’s a solution in the form of a pair of Netflix enabled socks, which looks like a pretty neat wearable IoT project.

To be sure, calling these socks Netflix enabled is a bit of a stretch. Aside from the sock designs, which are based on popular Netflix original series, there’s nothing about the electronics that’s specific to the popular streaming service. These socks, with their Arduino Pro Trinket and accelerometer, detect when you stop moving and send an IR signal to do your bidding – pause the movie, kill the TV, or whatever. The electronic side of the build is pretty approachable – it’s just a couple of modules soldered together. The fiber arts side of the project might be a little outside the wheelhouse of the typical hardware hacker, but you can either team up with someone who knits – an experienced knitter, as socks are not a beginner’s pattern – or just slip the felt-clad hardware into your favorite comfy socks. We’d be a bit concerned about ESD protection for the hardware in the wooly environment, though.

“Netflix and chill” is the current version of last century’s “Watching the submarine races,” and as such the need for special socks or a custom Netflix switch for the occasion is a bit puzzling. Still, the underlying wearables idea is pretty good, with plenty of possibilities for expansion and repurposing.

[Thanks for the tip, Lizzy!]


Filed under: home entertainment hacks, misc hacks

Basic Toolkit for the Basement Biohacker

Laying hands on the supplies for most hacks we cover is getting easier by the day. A few pecks at the keyboard and half a dozen boards or chips are on an ePacket from China to your doorstep for next to nothing. But if hacking life is what you’re into, you’ll spend a lot of time and money gathering the necessary instrumentation. Unless you roll your own mini genetic engineering lab from scratch, that is.

Taking the form of an Arduino mega-shield that supports a pH meter, a spectrophotometer, and a PID-controlled hot plate, [M. Bindhammer]’s design has a nice cross-section of the instruments needed to start biohacking in your basement. Since the piggybacks on an Arduino, all the data can be logged, and decisions can be made based on the data as it is collected. One example is changing the temperature of the hot plate when a certain pH is reached. Not having to babysit your experiments could be a huge boon to the basement biohacker.

Biohacking is poised to be the next big thing in the hacking movement, and [M. Bindhammer]’s design is far from the only player in the space. From incubators to peristaltic pumps to complete labs in a box, the tools to tweak life are starting to reach critical mass. We can’t wait to see where these tools lead.


Filed under: chemistry hacks, misc hacks

Halloween Doorbell Prop in Rube-Goldberg Overdrive

[Conor] wired up his 3D-printed coffin doorbell to an array of RGB LEDs, a screaming speaker, and a spinning skull on a cordless screw driver to make a “quick” Halloween scare. Along the way, he included half of the Adafruit module catalog, a relay circuit board, and ESP8266 WiFi module, a Banana Pi, and more Arduinos of varying shapes and sizes than you could shake a stick at.

Our head spins, not unlike [Conor]’s screaming skull, just reading through this Rube Goldbergy arrangement. (We’re sure that’s half the fun for the builder!) Smoke ’em if ya got ’em!

Start with the RGB LEDs; rather than control them directly, [Conor] connected them to a WiFi-enabled strip controller. Great, now he can control the strip over the airwaves. But the control protocol was closed, so he spent a week learning Wireshark to sniff the network data, and then wrote a Bash script to send the relevant UDP packets to turn on the lights. But that was not fancy-schmancy enough, so [Conor] re-wrote the script in Go.

Yes, that’s right — a Go routine on a Banana Pi sends out custom UDP packets over WiFi to a WiFi-to-LED-driver bridge. To make lights blink. Wait until you see the skull.

The plastic skull has Neopixels in each ping-pong ball eye, controlled by an Arduino Nano and battery taped to the skull’s head. The skull is cemented to a driver bit that’s chucked in a cordless drill. A relay board and another Arduino make it trigger for 10 seconds at a time when the doorbell rings. Finally (wait for it!) an Arduino connected to the doorbell gives the signal, and sets a wire high that all the other Arduini and the Banana Pi are connected to.

Gentle Hackaday reader, now is not the time for “I could do that with a 555 and some chewing gum.” Now is the time to revel in the sheer hackery of it all. Because Halloween’s over, and we’re sure that [Conor] has unplugged all of the breadboards and Arduini and put them to use in his next project. And now he knows a thing or two about sniffing UDP packets.


Filed under: Arduino Hacks, Holiday Hacks, misc hacks

The Running Cat

Cats are great to have around, but they need exercise. If you’re not in a position to let the cat outdoors, you need to look to something else when kitty wakes up bored from her 23 hour nap. Cat playscapes are useful diversions, but this is the first time we’ve considered real exercise equipment. Let’s get our feline friends their exercise fix with a hamster-esque cat exercise wheel.

[bbarlowski]’s design is simple but very clever, and almost looks like something you’d find flat-packed at IKEA. Built of CNC-milled birch plywood, the wheel rims snap together like puzzle pieces while the floor has tabs that slot into the rims. The tension of the bent floor panels locks everything together and makes for a smart looking wheel. The video after the break shows [Kuna the Maine Coon cat] in action on the wheel, and outlines a few plans for expansion, including adding an Arduino to monitor kitty’s activity and control both an RGB LED strip for mood lighting and a cat treat dispenser for positive reinforcement of the exercise regimen.

The project mounted an unsuccessful campaign in March and they’ve made the DXF cutting files available for download. Of course if it’s too much plywood and not enough Arduino for you, just build the Arduspider to torture – err, entertain your cat.


Filed under: home hacks, misc hacks