Linear Clock Ratchets Up The Action

On the face of it, making a clock that displays the time by moving a pointer along a linear scale shouldn’t be too hard. After all, steppers and linear drives should do the job in a jiffy. Throw an Arduino in and Bob’s your uncle, right?

Wrong. At least that’s not the way [Leo Fernekes] decided to build this unique ratcheting linear clock, a brilliant decision that made the project anything but run-of-the-mill. The idea has been kicking around in [Leo]’s head for years, and there it stayed until inspiration came in the unlikely form of [This Old Tony], one of our favorite YouTube machinists. [Old Tony] did a video on the simple genius of latching mechanisms, like the ones in retractable pens, and that served as an “A-ha!” moment for [Leo]. For a ratchet, he used a strip of bandsaw blade oriented so the teeth point upward. A complex bit of spring steel, bent to engage with the blade’s teeth, forms a pawl to keep the pointer moving upward until it reaches the top.

[Leo] decided early on that this would be an impulse clock, like the type used in schools and factories. He used a servo to jog a strip of tape upward once each minute; the tape is engaged by jaws that drag the pointer along with it, moving the pawl up the ratchet by one tooth and lifting the pointer one minute closer to the top. The pointer releases at the top and falls back to start the cycle over; to arrest its freefall, [Leo] had the genius idea of attaching magnets and using eddy currents induced in the aluminum frame for the job. Finished off with a 3D-printed Art Deco scale, the clock is a unique timepiece that’s anything but boring.

We really appreciate [Leo]’s unique and creative take on projects, and his range. Check out his everlasting continuity tester and his phage-like sentry gun for some neat build details.

Continue reading “Linear Clock Ratchets Up The Action”

Writing Characters Straight To The Linux Framebuffer

These days, working with a display in software is fairly easy. Thanks to the convenience of the modern OS, we’re blessed with graphical user interfaces, where things such as buttons and windows and text are all taken care of for us. Of course, once you start to wander off the beaten track, particularly in embedded systems with no GUI, things can get a little more difficult. For these situations, [JSBattista] wrote some code to blast text directly to the Linux framebuffer.

It’s a project borne out of necessity. Working with a Raspberry Pi with no X server, it was found that the console text size made it difficult to display data. By writing directly to the framebuffer, it would be possible to display text of a larger size without having to implement a full GUI, and overheads could be kept to a minimum.

Working in this manner comes with some limitations. Glyphs are taken from an array in bitmap format, rather than font files. In this case, a font akin to that of the Alien sentry gun interface was chosen, for an attractive sci-fi look. Lowercase characters are currently unimplemented. Testing thus far has been on Raspberry Pi and Beaglebone non-GUI systems, with performance varying depending on platform.

It’s a project we suspect might prove useful to the developers of lightweight embedded systems. It’s something that may take some tweaking and experimentation to implement, but the hacker set rarely shy away from a challenge. If you’re eager to get down and dirty with some heavy programming, this tutorial on Linux graphics will help.

Artificial Intelligence Powers A Wasp-Killing Machine

At the time of publication, Hackaday is of the understanding that there is no pro-wasp lobby active in the United States or abroad. Why? Well, the wasp is an insect that is considered incapable of any viable economic contribution to society, and thus has few to no adherents who would campaign in its favor. In fact, many actively seek to defeat the wasp, and [Tegwyn☠Twmffat] is one of them.

[Tegwyn]’s project is one that seeks to destroy wasps and Asian Hornets in habitats where they are an invasive pest. To achieve this goal without harming other species, the aim is to train a neural network to detect the creatures, before then using a laser to vaporize them.

Initial plans involved a gimballed sentry-gun style setup. However, safety concerns about firing lasers in the open, combined with the difficulty of imaging flying insects, conspired to put this idea to rest. The current system involves instead guiding insects down a small tube at the entrance to a hive. Here, they can be easily imaged at close range and great detail, as well as vaporized by a laser safely contained within the tube, if they are detected as wasps or hornets.

It’s an exciting project that could serve as a good model of how to deal with invasive insect species in the wild. We’ve seen insects grace our pages before, too.  Video after the break. Continue reading “Artificial Intelligence Powers A Wasp-Killing Machine”

The Empire Strikes Back With The ESP8266

Like many of us, [Matthew Wentworth] is always looking for a reason to build something. So when he found a 3D model of the “DF.9” laser turret from The Empire Strikes Back intended for Star Wars board games on Thingiverse, he decided it was a perfect excuse opportunity to not only try his hand at remixing an existing 3D design, but adding electronics to it to create something interactive.

As the model was originally intended for a board game, it was obviously quite small. So the first order of business was scaling everything up to twice the original dimensions. As [Matthew] notes, the fact that it still looks so good when expanded by such a large degree is a credit to how detailed the original model is. Once blown up to more useful proportions, he modified the head of the turret as well as the barrel to accept the electronics he planned on grafting into the model.

He created a mount for a standard nine gram servo inside the head of the turret which allows it to rotate, and the barrel got an LED stuck in the end. Both of which are controlled with a NodeMCU ESP8266 development board, allowing [Matthew] to control the direction and intensity of the pew-pew over WiFi. He mentions that in the future he would like to add sound effects that are synchronized to the turret rotation and LED blinking.

For the software side of the project, he used Blynk to quickly build a smartphone interface for the turret. This is the first time he had used Blynk, and reports that outside of a little trial and error, it was some of the easiest code he’s ever written for the Arduino. This is a sentiment we’ve been seeing a lot of recently towards Blynk, and it’s interesting to see how often it shows up in ESP8266 projects now.

Looking ahead [Matthew] says he wants to paint and detail the turret, as the bright orange color scheme probably wouldn’t do terribly well on Hoth. If he can manage the time, he’d also like to add it to the long list of OpenCV-powered turrets that hackers love harassing their friends and family with.

Continue reading “The Empire Strikes Back With The ESP8266”

Training The Squirrel Terminator

Depending on which hemisphere of the Earth you’re currently reading this from, summer is finally starting to fight its way to the surface. For the more “green” of our readers, that can mean it’s time to start making plans for summer gardening. But as anyone who’s ever planted something edible can tell you, garden pests such as squirrels are fantastically effective at turning all your hard work into a wasteland. Finding ways to keep them away from your crops can be a full-time job, but luckily it’s a job nobody will mind if automation steals from humans.

Kitty gets a pass

[Peter Quinn] writes in to tell us about the elaborate lengths he is going to keep bushy-tailed marauders away from his tomatoes this year. Long term he plans on setting up a non-lethal sentry gun to scare them away, but before he can get to that point he needs to perfect the science of automatically targeting his prey. At the same time, he wants to train the system well enough that it won’t fire on humans or other animals such as cats and birds which might visit his garden.

A Raspberry Pi 3 with a cheap webcam is used to surveil the garden and detect motion. When frames containing motion are detected, they are forwarded to a laptop which has enough horsepower to handle the squirrel detection through Darknet YOLO. [Peter] recognizes this isn’t an ideal architecture for real-time targeting of a sentry turret, but it’s good enough for training the system.

Which incidentally is what [Peter] spends the most time explaining on the project’s Hackaday.io page. From the saga of getting the software environment up and running to determining how many pictures of squirrels in his yard he should provide the software for training, it’s an excellent case study in rolling your own image recognition system. After approximately 18 hours of training, he now has a system which is able to pick squirrels out from the foliage. The next step is hooking up the turret.

We’ve covered other automated turrets here on Hackaday, and we’ve seen automated devices for terrifying squirrels before, but this is the first time we’ve seen the concepts mixed.

Open Source Modular Rocket Avionics Package

Cambridge postgraduate student [Adam Greig] helped design a rocket avionics system consisting of a series of disc-shaped PCBs arranged in a stack. There’s a lot that went into the system and you can get a good look at it all through the flickr album.

Built with the help of Cambridge University Spaceflight, the Martlet is a 3-staging sounding rocket that lifts to 15km/50K feet on Cesaroni Pro98 engines. [Adam]’s control system uses several Arm Cortex M4s on various boards rather than having just one brain controlling everything.

Each disc is a module that plays a specific role in the system. There are a couple of power supply boards sporting twin LTC2975 able to supply custom power to a dozen different circuits. The power system has a master control board also sporting an M4. There’s an IMU board with the guidance system — accelerometer, magnetometer, gyroscope, and barometer, all monitored by an algorithm that computes the rocket’s position and attitude in-flight. There’s a radio board with a GPS receiver and an ISM band radio transceiver for telemetry, as well as a datalogger with 10 thermocouple measurement channels. Engines are controlled by the pyro board which controls firing currents on four different channels. The vertical spacers also serve to transmit power and data to neighboring boards.

If you’re interested in learning more, check out the project’s code and schematics on [Adam]’s GitHub repository.

[Adam] is no stranger to these pages, with his Nerf Vulcan turret published a few years back, as well as his balloon tracking rig published more recently. Photos are CC-SA and can be found in [Adam]’s Flickr feed.

OpenCV Turret Tracks Motion, Busts Airsoft Pellets

In the eternal struggle for office dominance, the motion-tracking Airsoft/Nerf/whatever, the autonomous turret seems to be the nuclear option. [Aaron] and [Davis] built a motion-tracking turret that uses openCV to detect movement, before hitting a relay to trigger the gun.

There’s a Raspberry Pi controlling a Logitech C210 Pi-compatible webcam, with a stepper hat for the Pi controlling two NEMA steppers that aim the gun. The design is simple but elegant, with a rotating base and an assembly that raises and lowers the weapon.

The openCV intrigues us. We want to see a openCV-powered turret with color detection, so your own team doesn’t get blasted along with your hapless enemies. Or if guarding your cubicle, how about a little openCV facial recognition?

If you want to take a stab at your own, [Aaron] and [Davis] show how they built their project in their Hackaday.io page and their Python script can be found on GitHub.  Otherwise, check out the Counter Strike Airsoft robot, the Airsoft sentry gun, and the Nerf turret powered by Slack we published previously. Continue reading “OpenCV Turret Tracks Motion, Busts Airsoft Pellets”