Smart Ruler Has Many Features

For those of us who remember old ball mice, they were a lot like modern optical mice except that they needed to be cleaned constantly. Having optical mice as a standard way of interacting with a computer is a major improvement over previous eras in computing. With extinction of the ball mouse, there are an uncountable number of cheap optical mice around now which are easy pickings for modern hacking, and this latest project from [Vipul] shows off some of the ways that optical mice can be repurposed by building a digital ruler.

The build seems straightforward on the surface. As the ruler is passed over a surface the device keeps track of exactly how far it has moved, making it an effective and very accurate ruler. To built it, the optical component of a mouse was scavenged and mated directly to a Raspberry Pi Zero W over USB. Originally he intended to use an ESP32 but could not get the USB interface to work. [Vipul] was then able to write some software which can read the information from the mouse’s PCB directly and translate it into human-readable form where it is displayed on a small screen. The entire device is housed in a custom 3D-printed enclosure to wrap everything up, but the build doesn’t stop there though. [Vipul] also leveraged the Bluetooth functionality of the Pi and wrote a smartphone app which can be used to control the ruler as well.

While the device does have some limitations in that it has to make contact with the object being measured across its entire length, there are some situations where we can imagine something like this being extremely useful especially when measuring things that aren’t a straight line. [Vipul] has also made all of the code for this project publicly available for those of us who might have other uses in mind for something like this. We’ve seen optical mice repurposed for all kinds of things in the past, too, including measuring travel distances in autonomous vehicles.

Continue reading “Smart Ruler Has Many Features”

Displaying Incoming Server Attacks By Giving Server Logs A Scoreboard

In the server world, it’s a foregone conclusion that ports shouldn’t be exposed to the greater Internet if they don’t need to be. There are malicious bots everywhere that will try and randomly access anything connected to a network, and it’s best just to shut them off completely. If you have to have a port open, like 22 for SSH, it’ll need to be secured properly and monitored so that the administrator can keep track of it. Usually this is done in a system log and put to the side, but [Nick] wanted a more up-front reminder of just how many attempts were being made to log into his systems.

This build actively monitors attempts to log into his server on port 22 and notifies him via a numerical display and series of LEDs. It’s based on a Raspberry Pi Zero W housed in a 3D-printed case, and works by interfacing with a program called fail2ban running on the server. fail2ban‘s primary job is to block IP addresses that fail a certain number of login attempts on a server, but being FOSS it can be modified for situations like this. With some Python code running on the Pi, it is able to gather data fed to it from fail2ban and display it.

[Nick] was able to see immediate results too. Within 24 hours he saw 1633 login attempts on a server with normal login enabled, which was promptly shown on the display. A video of the counter in action is linked below. You don’t always need a secondary display if you need real-time information on your server, though. This Pi server has its own display built right in to its case.

Continue reading “Displaying Incoming Server Attacks By Giving Server Logs A Scoreboard”

Garbage Can Takes Itself Out

Home automation is a fine goal but typically remains confined to lights, blinds, and other things that are relatively stationary and/or electrical in nature. There is a challenge there to be certain, but to really step up your home automation game you’ll need to think outside the box. This automated garbage can that can take itself out, for example, has all the home automation street cred you’d ever need.

The garbage can moves itself by means of a scooter wheel which has a hub motor inside and is powered by a lithium battery, but the real genius of this project is the electronics controlling everything. A Raspberry Pi Zero W is at the center of the build which controls the motor via a driver board and also receives instructions on when to wheel the garbage can out to the curb from an Nvidia Jetson board. That board is needed because the creator, [Ahad Cove], didn’t want to be bothered to tell his garbage can to take itself out or even schedule it. He instead used machine learning to detect when the garbage truck was headed down the street and instruct the garbage can to roll itself out then.

The only other thing to tie this build together was to get the garage door to open automatically for the garbage can. Luckily, [Ahad]’s garage door opener was already equipped with WiFi and had an available app, unbeknownst to him, which made this a surprisingly easy part of the build. If you have a more rudimentary garage door opener, though, there are plenty of options available to get it on the internets.

Continue reading “Garbage Can Takes Itself Out”

GuerillaClock Could Save This City Thousands

They say necessity is the mother of invention. But if the thing you need has already been invented but is extremely expensive, another mother of invention might be budget overruns. That was the case when [klinstifen]’s local government decided to put in countdown clocks at bus stops, at a whopping $25,000 per clock. Thinking that was a little extreme, he decided to build his own with a much smaller price tag.

The project uses a Raspberry Pi Zero W as its core, and a 16×32 RGB LED matrix for a display. Some of the work is done already, since the bus system has an API that is readily available for use. The Pi receives the information about bus schedules through this API and, based on its location, is able to determine the next bus arrival time and display it on the LED matrix. With the custom 3D printed enclosure and all of the other material, the cost of each clock is only $100, more than two orders of magnitude less expensive.

Hopefully the local government takes a hint from [klinstifen] and decides to use a more sane solution. In the meantime, you might be able to build your own mass transit clock that you can use inside your own house, rather than at the train station, if you’re someone who has a hard time getting to the bus stop on time.

Continue reading “GuerillaClock Could Save This City Thousands”

Iron Man Mask With A HUD!

At some point, a child will inevitably dream of being a superhero. Not all children get the chance to see that dream made manifest, but a few take that destiny into their own hands. Redditor [Lord_of_Bone] — seizing at that goal — has built himself an Iron Man mask with an integrated HUD!

Relying on a conceptually similar project he’d previously built, much of the code was rehashed for this ‘Mark II’ version. Pieces of a smartphone holo pyramid act as projection surfaces — using a lens to focus the image to be viewed at such close distances — and a pair of OLED screens displaying the information. It’s a happy bonus that the lack of backlight results in only the text showing in the user’s field of view.

Instead of speaking with J.A.R.V.I.S., [Lord_of_Bone] is using a Raspberry Pi Zero W as the mask’s brain. Working past some I2C troubles between the OLED screens and an Enviro pHat required a whipped-up veroboard and a bit of hardware hacking. Cramming everything into the mask was no easy task — using Blutack and Sugru to bind them in the limited space — but the pHat had to be surface-mounted in the open anyways for atmospheric and light data.

Continue reading “Iron Man Mask With A HUD!”