Abusing A Cellphone Screen With Solenoids Posts High Score

This Raspberry Pi 2 with computer vision and two solenoid “fingers” was getting absurdly high scores on a mobile game as of late 2015, but only recently has [Kristian] finished fleshing the project out with detailed documentation.

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.)

Continue reading “Abusing A Cellphone Screen With Solenoids Posts High Score”

Multi Sensor Security Camera Has You Covered

Security in the home — especially a new home — is a primary concern for many. There are many options for security systems on the market, but for those will the skills, taking matters into your own hands can add peace of mind when protected by a system of one’s own design. [Armagan C.] has created  their near-ideal multi-sensor security module to keep a watchful eye out for would-be burglars.

Upgrading from their previous Arduino + Ethernet camera — which loved to trigger false alarms — [Armagan] opted for a used Raspberry Pi model B+ camera module and WiFi connection this time around. They also upgraded the unit with a thermal sensor, LPG & CO2 gas sensor, and a motion tracking alarm. [Armagan] has also set up a live streaming  feature that records video in 1hr segments — deleting them daily — and circumvented an issue with file descriptor leak by using a crashed drone’s flight controller to route the sensor data via serial port. It is also proving superior to conventional alarms because the custom software negates the need to disarm security zones during midnight trips to the washroom.

Continue reading “Multi Sensor Security Camera Has You Covered”

Hackaday Prize Entry: A CNC Plasma Table

CNC routers and 3D printers are cool, but the last time I checked, cars and heavy machinery aren’t made out of wood and plastic. If you want a machine that will build other machines, you want a CNC plasma cutter. That’s [willbaden]’s entry for the Hackaday prize. It’s big, massive, and it’s already cutting.

A plasma CNC machine isn’t that much different from a simple CNC router. [will]’s table controller is just a GRBL shield attached to an Arduino, the bearings were stolen from many copy machines, and your motors and drivers are fairly standard, barring the fact they’re excessively huge for a simple 3D printer.

The real trick up [will]’s sleeve is the controller interface. For this, he’s mounted a Raspberry Pi display, a big, shiny, red button, and all the associated electronics behind a beautifully rusty welded enclosure. This part of the build just sends gcode over to the GRBL shield, and is doing so reliably. Right now [will] is looking for some way to save, arrange, and queue jobs on the Pi, a problem that is almost – but not quite – the same job Octoprint does. A software for big, mean CNCs that spew exotic states of matter is an interesting project, and we can’t wait to see where [will] goes with this one.

One Man, A Raspberry Pi, And A Formerly Hand Powered Loom

[Fred Hoefler] was challenged to finally do something with that Raspberry Pi he wouldn’t keep quiet about. So he built a machine assist loom for the hand weaver. Many older weavers simply can’t enjoy their art anymore due to the physical strain caused by the repetitive task. Since he had a Pi looking for a purpose, he also had his project.

His biggest requirement was cost. There are lots of assistive looms on the market, but the starting price for those is around ten thousand dollars. So he set the rule that nothing on the device would cost more than the mentioned single board computer. This resulted in a BOM cost for the conversion that came in well under two hundred dollars. Not bad!

The motive parts are simple cheap 12V geared motors off Amazon. He powered them using his own motor driver circuits. They get their commands from the Pi, running Python. To control the loom one can either type in commands into the shell or use the keyboard. There are also some manual switches on the loom itself.

In the end [Fred] met his design goal, and has further convinced his friends that the words Raspberry Pi are somehow involved with trouble.

Continue reading “One Man, A Raspberry Pi, And A Formerly Hand Powered Loom”

Retrofitting A Vintage Intercom To Run Amazon Alexa

The Amazon Echo is a pretty cool piece of tech: it lets you ask questions, queue up music, find out the weather, and more, without having to do anything but talk. But, the device itself is a bit pricey, and looks a little boring. What if you could have all the features of the Echo, but in a cool retro case and at a cheaper price?

Well, you can, and that’s exactly what [nick.r.brewer] did, using a ’50s intercom and a Raspberry Pi. He picked the vintage intercom up at an antique store for $20, and the Raspberry Pi Zero is less than $10. So, for about $30 (and some parts most of us have lying around) he was able to build a cool looking device with all of the capabilities of the Amazon Echo.

The hardware portion of the build was pretty straightforward, with the Raspberry Pi, a sound card, WiFi dongle, USB hub, and microphone all fitting nicely inside the case of the intercom. The software side of things is a little more tricky, but with a device like this it runs well with Amazon’s Alexa SDK. Of course, if you want to add more hardware features, that’s possible too.

Continue reading “Retrofitting A Vintage Intercom To Run Amazon Alexa”

Capacitive Imaging With A Raspberry Pi Touch Screen

We use touch screens all the time these days, and though we all know they support multiple touch events it is easy for us to take them for granted and forget that they are a rather accomplished sensor array in their own right.

[Optismon] has long held an interest in capacitive touch screen sensors, and has recently turned his attention to the official Raspberry Pi 7-inch touchscreen display. He set out to read its raw capacitance values, and ended up with a fully functional 2D capacitive imaging device able to sense hidden nails and woodwork in his drywall.

Reading the capacitance values is not a job for the faint-hearted though. There is an I2C bus which is handled by the Pi GPU rather than the processor, and to read it in software would require a change to the Pi’s infamous Broadcom binary blob. His solution which he agrees is non-optimal was to take another of the Pi’s I2C lines that he could talk to and connect it in parallel with the display line. As a result he can catch the readings from the screen’s sensors and with a bit of scripting make a 2D display on the screen. The outlines of hands and objects on his desk can clearly be seen when he places them on the screen, and when he runs the device over his wall it shows the position of the studding and nails behind the drywall.

He’s posted his code in a GitHub repository, and put up the YouTube video of his capacitive imaging in action which you can watch below the break.

Continue reading “Capacitive Imaging With A Raspberry Pi Touch Screen”

Solar-powered Weather Station Has The Complete Suite Of Sensors

There was a time when getting weather conditions was only as timely or as local as the six o’clock news from the nearest big-city TV station. Monitoring the weather now is much more granular thanks to the proliferation of personal weather stations. For the ultimate in personalized weather, though, you might want to build your own solar powered weather station.

It looks like [Brian Masney] went all out in designing his weather station. It supports a full stack of sensors – wind speed and direction, rain, temperature, pressure, and dew point. About the only other parameters not supported (yet) are solar radiation, UV, and soil moisture and temperature. The design looks friendly enough that adding those sensors should be a snap – if fact, the 3D models in his GitHub repo suggest that he’s already working on soil sensors. The wind and rain sensor boom is an off-the-shelf unit from Sparkfun, and the temperature and pressure sensors are housed in a very professional 3D printed screen enclosure. All the sensors talk to a Raspberry Pi living in a (hopefully) waterproof enclosure topped with a solar panel for charging the stations batteries. All in all it’s a comprehensive build; you can check out the conditions at [Brian]’s place on Weather Underground.

Weather stations are popular around these parts, as witnessed by this reverse-engineered sensor suite or even this squirrel-logic based station.