It doesn’t take long after getting a cat in your life to learn who’s really in charge. Cats do pretty much what they want to do, when they want to do it, and for exactly as long as it suits them. Any correlation with your wants and needs is strictly coincidental, and subject to change without notice, because cats.
[Alvaro Ferrán Cifuentes] almost learned this the hard way, when his cat developed a habit of exploring the countertops in his kitchen and nearly turned on the cooktop while he was away. To modulate this behavior, [Alvaro] built this AI Nerf turret gun. The business end of the system is just a gun mounted on a pan-tilt base made from 3D-printed parts and a pair of hobby servos. A webcam rides atop the gun and feeds into a PC running software that implements the YOLO3 localization algorithm. The program finds the cat, tracks its centroid, and swivels the gun to match it. If the cat stays in the no-go zone above the countertop for three seconds, he gets a dart in his general direction. [Alvaro] found that the noise of the gun tracking him was enough to send the cat scampering, proving that cats are capable of learning as long as it suits them.
We like this build and appreciate any attempt to bring order to the chaos a cat can bring to a household. It also puts us in mind of [Matthias Wandel]’s recent attempt to keep warm in his shop, although his detection algorithm was much simpler.
Continue reading “Keep Pesky Cats At Bay With A Machine-Learning Turret Gun”
Many of us have had the experience of viewing an artwork in a gallery, in which the eyes appear to follow one around the room. In our high-technology work, this no longer need be achieved with artistic skill. You can just build something that actually moves instead.
Chartreuse is the creation of [alynton], and has a personality all its own. A face was created out of laser cut wood, and assembled layer by layer. It was then given glowing LED eyes, and mounted on a rotating plate. Combined with an Arduino and an ultrasonic sensor, it’s capable of tracking targets moving within its field of view, and rotating to follow them. Chartreuse’s expression changes as well, with from happy to forlorn, depending on the situation.
It’s a great example of the artistic results that can be achieved by layering lasercut materials, as well as how art can be brought to life with simple maker staples like servos and microcontrollers. Motion tracking has plenty of useful applications, too – like aiming heat directly at cold humans. Video after the break.
Continue reading “Motion Tracking Face Really Does Follow You Around The Room”
Before 3D printers, there was LEGO. And the little bricks are still useful for putting something together on the quick. Proof is YouTuber [Matthias Wandel]’s awesome bottle cap shooter build that uses rudimentary DIY computer vision to track you and then launch a barrage of plastic pieces at you.
This is an amazing project that has a bit of something for everyone. Lets start with the LEGO. [Matthias Wandel] starts with making a crossbow designed launcher and does an awesome job with showing us how it works in a video. The mechanism is an auto reloading and firing system that can be connected to a stepper motor. Next comes the pan and tilt mechanism which allows the turret to take better aim at moving targets: more LEGO and stepper motors.
The target tracker uses color matching in a program that curiously uses no OpenCV. It compares consecutive frame and then filters out red objects – the largest red dot is it. Since using a fisheye lens on the Raspbery Pi camera adds distortion, [Matthias Wandel] uses a jig made with more Legos to calibrate the image.
The final testing involved having his own child walk around the room being hunted but the autonomous machine. Kids do love toys even if they are trying to shoot bottle caps at them.
Want more Lego inspiration? Check out the Lego Quadcopter Mod and the Lego Tank with the ESP8266.
Continue reading “Wandel Weaponizes Waste With Lego And A Raspberry Pi”
Given how long humans have been warming themselves up, you’d think we would have worked out all the kinks by now. But even with central heating, and indeed sometimes because of it, some places we frequent just aren’t that cozy. In such cases, it often pays to heat the person, not the room, but that can be awkward, to say the least.
Hacking polymath [Matthias Wandel] worked out a solution to his cold shop with this target-tracking infrared heater. The heater is one of those radiant deals with the parabolic dish, and as anyone who’s walked past one on demo in Costco knows, they throw a lot of heat in a very narrow beam. [Matthias] leveraged a previous project that he whipped up for offline surveillance as the core of the project. Running on a Raspberry Pi with a camera, the custom software analyzes images and locates motion across the width of a frame. That drives a stepper that swivels a platform for the heater. The video below shows the build and the successful tests; however, fans of [Matthias] should prepare themselves for a shock as he very nearly purchases a lazy susan to serve as the base for the heater rather than building one.
We’re never disappointed by [Matthias]’ videos, and we’re always impressed by his range as a hacker. From DIY power tools to wooden logic circuits to his recent Lego chocolate engraver, he always finds ways to make things interesting.
Continue reading “Raspberry Pi Tracks Humans, Blasts Them With Heat Rays”
What’s more disruptive to the drone first-person view (FPV) experience than dropouts in your video feed when you’re in the middle of a race? Probably nothing, and there’s probably also not much you can do about it. Or is there? Might a simple tracker based on RSSI help keep your video signal locked in?
Honestly, we’re not sure it would, but we think it’s pretty nifty to see [FlyerFpv]’s tracker following his drone around. The idea is simple and uses the full-diversity FPV receiver he already has. Diversity receivers constantly monitor signal strength from multiple antennas to determine which one to listen to, which improves reception quality. [FlyerFpv] sends the RSSI outputs to analog inputs on an Arduino which drives a servo to keep the signals as close to each other as possible. The Arduino and the DC-DC converter needed to power it fit nicely inside the receiver case with no modifications, which is a nice touch. With a 3D-printed servo mount and some fancy directional antennas, the setup keeps pretty good track of his drone now. See it in action below.
Sure, the response could be snappier, and we’d love to see another receiver and servo added to track pitch as well as yaw. For a first pass, we think it’s great, but [FlyerFpv] should enjoy it while he can in case AI takes over our flying fun soon.
Continue reading “Super Simple, Super Cheap FPV Drone Tracking”
People who exercise with fitness trackers have a digital record of their workouts. They do it for a wide range of reasons, from gathering serious medical data to simply satisfying curiosity. When fitness data includes GPS coordinates, it raises personal privacy concerns. But even with individual data removed, such data was still informative enough to spill the beans on secretive facilities around the world.
This past weekend, [Nathan Ruser] announced on Twitter that Strava’s heatmap also managed to highlight exercise activity by military/intelligence personnel around the world, including some suspected but unannounced facilities. More worryingly, some of the mapped paths imply patrol and supply routes, knowledge security officers would prefer not to be shared with the entire world.
This is an extraordinary blunder which very succinctly illustrates a folly of Internet of Things. Strava’s anonymized data sharing obsfucated individuals, but didn’t manage to do the same for groups of individuals… like the fitness-minded active duty military personnel whose workout habits are clearly defined on these heat maps. The biggest contributor (besides wearing a tracking device in general) to this situation is that the data sharing is enabled by default and must be opted-out:
“You can opt-out of contributing your anonymized public activity data to Strava Metro and the Heatmap by unchecking the box in this section.” —Strava Blog, July 2017
We’ve seen individual fitness trackers hacked and we’ve seen people tracked through controlled domains before, but the global scope of [Nathan]’s discovery puts it in an entirely different class.
[via Washington Post]
Things rarely go well when humans mix with wildlife. The problems are exacerbated in the suburbs, where bears dine on bird feeders and garbage cans, raccoons take up residence in attics, and coyotes make off with the family cat. And in the suburbs, nuisance wildlife can be an intractable problem because the options for dealing with it are so limited.
Not to be dissuaded in the battle to protect his roses, [dlf.myyta] built this motion-activated sentry gun to apply some watery aversion therapy to marauding deer. Shown in action below against a bipedal co-conspirator, the sentry gun has pretty much what you’d expect under the hood — Raspberry Pi, NoIR camera, a servo for aiming and a solenoid valve to control the water. OpenCV takes care of locating the intruders and swiveling the nozzle to center mass; since the deer are somewhat constrained by a fence, there’s no need to control the nozzle’s elevation. Everything is housed nicely in a plastic ammo can for portability and waterproofing. Any target that stands still for more than three seconds gets a hosing; we assume this is effective, but alas, no snuff films were provided.
We’re not sure if [dlf.myyta]’s code can discern friend from foe, and in this litigious world, hosing the neighbor’s kid could be a catastrophe. Perhaps version 2.0 can include image recognition for target verification.
Continue reading “Auto-Tracking Sentry Gun Gives Deer A Super Soaking”