Developed for a course in image analysis and computer vision, this project wasn’t really about cheating at a mobile game. It wasn’t even about a robotic interface to a smartphone screen; it was a platform for developing and demonstrating the image analysis theory he was learning, and the computer vision portion is no hack job. OpenCV was used as a foundation for accessing the camera, but none of the built-in filters are used. All of the image analysis is implemented from scratch.
The game is a simple. Humans and zombies move downward in two columns. Zombies (green) should get a screen tap but not humans. The Raspberry Pi camera takes pictures of the smartphone’s screen, to which a HSV filter is applied to filter out everything except green objects (zombies). That alone would be enough to get you some basic results, but not nearly good enough to be truly reliable and repeatable. Therefore, after picking out the green objects comes a whole chain of additional filtering. The details of that are covered on [Kristian]’s blog post, but the final report for the project (PDF) is where the real detail is.
If you’re interested mainly in seeing a machine pound out flawless victories, the video below shows everything running smoothly. The pounding sounds make it seem like the screen is taking a lot of abuse, but [Kristian] mentions that’s actually noise from the solenoids and not a product of them battling the touchscreen. This setup can be easily adapted to test out apps on different models of phones — something that has historically cost quite a bit of dough.
If you’re interested in the nitty-gritty details of the reasons and methods used for the computer vision portions, be sure to go through [Kristian]’s github repository where everything about the project lives (including the aforementioned final report.)
[Mark Gibson] probably has nothing against silicon. He just knows that a lot that can be done with simple switches, relays, and solenoids and wants to share that knowledge with the world. This was made abundantly clear to me during repeat visits to his expansive booth at Denver Mini Maker Faire last weekend.
In the sunlight-filled atrium of the Museum of Nature and Science, [Mark] sat behind several long tables covered with his creations made from mid-century pinball machines. There are about two dozen pieces in his interactive exhibit, which made its debut at the first-ever Northern Colorado Maker Faire in 2013. [Mark] was motivated to build these boards because he wanted to get people interested in the way things work through interaction and discovery of pinball mechanisms.
Most of the pieces he has built are single units and simple systems from pinball machines—flippers, chime units, targets, bumpers, and so on—that he affixed to wooden boards so that people can explore them without breaking anything. All of the units are operated using large and inviting push buttons that have been screwed down tight. Each of the systems also has a display card with an engineering drawing of the mechanism and a short explanation of how it works.
[Mark] also brought some of the original games he has created by combining several systems from different machines, like a horse derby and a baseball game. Both of these were built with education in mind; all of the guts including the original fabric-wrapped wires are prominently displayed. The derby game wasn’t working, but I managed to load the bases and get a grand slam in the baseball game. Probably couldn’t do that again in a million summers.
There’s something alluring about radial engines. The Wasps, the Cyclones, the Gnomes – the mechanical beauty of those classic aircraft engines can’t be denied. And even when a radial engine is powered by solenoids rather than internal combustion, it can still be a thing of beauty.
The solenoid engine proves that he has some mechanical chops. If you follow along in the videos below, you’ll see how [Tyler] progressed in his design and incorporated what he learned from the earliest breadboard stage to the nearly-complete engine. There’s an impressive amount of work here – looks like the octagonal housing was bent on a press brake, and the apparently homebrew solenoids are enclosed in copper pipe and fittings that [Tyler] took the time to bring to a fine polish. We’re skeptical that the microswitches that electrically commutate the engine will hold up to as many cycles are they’d need to handle for this to be a useful engine, but that’s hardly the point here. This one is all about the learning, and we think [Tyler] has done a bang-up job with that.
We’re not 100% sure why this is being done, but we’re 110% happy that it is. Someone (under the name of [The X-Ray Playground]) is putting interesting devices under an X-ray camera and posting videos of them up on YouTube. And he or she seems to be adding a few new videos per day.
Want to see the inner workings of a pneumatic microswitch? Or is a running pair of servo motors more your speed? Now you know where to look. After watching the servo video, we couldn’t help but wish that a bunch of the previous videos were also taken while the devices were being activated. The ball bearing wouldn’t gain much from that treatment, but the miniature piston certainly would. [X-Ray Playground], if you’re out there, more working demos, please!
How long the pace of new videos can last is anyone’s guess, but we’re content to enjoy the ride. And it’s just cool to see stuff in X-ray. If we had a postal address, we know we’d ship some stuff over to be put under the lens.
It’s actually an offshoot of his other project, a high-speed candy sorting machine. There, he’s trying to outdo the more common color-sensor-and-servo style contraptions by using computer vision for the color detection and a number of compressed-air jets to blow the candy off of a conveyor belt into the proper bins.
Smart phones are great. So great that you may find yourself distracted from working, eating, conversing with other human beings in person, or even sleeping. [Digitaljunky] has this problem (not surprising, really, considering his name) so he built an anti-procrastination box. The box is big enough to hold a smart phone and has an Arduino-based time lock.
The real trick is making the box so that the Arduino can lock and unlock it with a solenoid. [Digitaljunky] doesn’t have a 3D printer, so he used Fimo clay to mold a custom latch piece. A digital display, a FET to drive the solenoid, and a handful of common components round out the design.
[Bob] built this simple device that can best be described as an electronic float valve. He was wasting a lot of water from overflowing water troughs and buckets around his farm. He would usually put the hose in the container, turn on the water valve and carry on with his work. By the time he remembered to come back, the area would be flooded. It’s obvious that there’s many different ways to solve a problem. For example, a simple mechanical float valve might have worked, but it’s not horse friendly and liable to get damaged soon.
The electronics is unabashedly minimal. An ATtiny85 controls a relay via a common variety NPN transistor. The relay in turn switches the solenoid valve. A push-button tells the microcontroller to start the water flowing, and when the water level gets high enough that it touches two hose clamps, the micro shuts it off again.
There’s some ghetto engineering going on here. The electronics is driven by a 9V battery, although the relay and the solenoid valve that [Bob] used are both rated for 12V. He’s not even using any sort of voltage regulation for the ATtiny, but instead dropping the voltage with a resistor divider. (We wonder about battery life in the long run.)
He built all of it on perf board and stuffed it inside a small enclosure, with two wires coming out for the level sensor and another two for the solenoid, and it seems to work. Check the video below where [Bob] walks through his build.
While some may point out the many short comings in this build, [Bob] found the one solution that works for him. Sometimes the right solution is what you’ve got on hand, and we’re glad he’s hacking away and sharing his work. And check out this wireless water level sensor that he built some time back.