Finding Fractals In The 1930’s

The mesmerizing properties of fractals are surprising as their visual complexity often arises from simple equations. [CodeParade] set out to show how simple a fractal is by creating them using technology from the 1930s. The basic idea is based on projectors and cameras, which were both readily available and widely used in television (CRT projectors were in theaters by 1938, though they weren’t in color until the 1950s).

By projecting two overlapping images on the wall, pointing a camera at the resulting image, and then feeding it back into the projectors, you get some beautiful fractals. [CodeParade] doesn’t have a projector, much less two. So he did what any hacker might do and came up with a clever workaround. He made a simple app that “projects” onto his monitor and all he has to do is point an external webcam at the screen. The resulting analog fractals are quite beautiful and tactile. Rather than tweaking a variable and recompiling, you simply just add a finger or move the camera to introduce new noise that quickly becomes signal.

Better yet, there’s a web version that you can play around with right now. For more fractals implemented in hardware rather than software, there’s this FPGA with a VHDL Mandelbrot set we covered.

Continue reading “Finding Fractals In The 1930’s”

Fixing Joy-Con Drift With Recycle Bin Parts

Have you seen this yet? YouTuber [VK’s Channel] claims to have a permanent fix for Joy-Con drift — the tendency for Nintendo Switch controllers to behave as though they’re being moved around when they’re not even being touched. Like everyone else, [VK’s Channel] tried all the usual suspects: compressed air, isopropyl alcohol, contact cleaner, and even WD-40. But these are only temporary fixes, and the drift always comes back. None of the other fixes so far are permanent, either, like shimming the flat cable that connects the stick to the mobo, adding graphite to the worn pads inside, or trying to fix a possible bad antenna connection.

While calibrating a drifting Joy-Con, [VK’s Channel] noticed that applying pressure near the Y and B buttons corrected the issue immediately, so they got the idea to add a 1mm thick piece of card stock inside. [VK’s Channel] believes the issue is that there is no fastener connecting the plastic part of the joystick to the metal part on the bottom. Over time, using the joystick causes the bottom to sag, which makes the metal contacts inside lose their grip on the graphite pads. It’s been two months now and there is absolutely no drift in either of the Joy-Cons that [VK’s Channel] has shored up this way.

Nintendo is now fixing Joy-Cons for free. The problem is that they are replacing irreparable ones outright, so you have to agree that you will settle for a plain old gray, red, or blue instead of your special edition Zelda controllers or whatever you send them. Hopefully, this really is a permanent fix, and that Nintendo gives [VK’s Channel] a job.

You could forego the joysticks altogether and swap them out for touchpads. Suffering from XBOX drift instead? We have just the thing.

Continue reading “Fixing Joy-Con Drift With Recycle Bin Parts”

Interpreters In Scala

You might think of interpreters as only good for writing programs. Many people learned programming on some kind of interpreter — like BASIC — because you get immediate feedback and don’t have to deal with the complexities of a compiler. But interpreters can have other uses like parsing configuration files, for example. [Sakib] has a very complete tutorial about writing an interpreter in Scala, but even if you use another language, you might find the tutorial useful.

We were impressed because the tutorial uses formal parsing using a lexer and a parser. This is how you’d be taught to do it in a computer science class, but not how everyone does it.

Continue reading “Interpreters In Scala”

A Cheap Dipole Antenna From An Extension Cord

Dipoles are a classic builder’s antenna, after all they are usually little more than two pieces of wire and a feedline. But as [Rob] shows us in the video below, there are a few things to consider.

The first thing is where to get the wire. A damaged extension cord donated the wire. That’s actually an interesting idea because you get multiple wires the same length inside the extension cord.  Continue reading “A Cheap Dipole Antenna From An Extension Cord”

Final Weekend For Work-From-Home Challenge Of The Hackaday Prize

This is the final weekend to enter your work-from-home project in the 2021 Hackaday Prize. We know how much fun it is to be creative with home setups that keep let you work without disrupting your non-work life. Show off what you’ve done and you’ll be in the running for some big cash prizes.

Among the lowest hanging fruit is improving your home’s window to the work world. Anything you can do to make your audio and video experience better on video calls is going to make you happier and make the virtual office feel more like a team. [Andy Lustig] built a dedicated video call control panel that can cut off mic and camera, share his screen, switch views, and leave the meeting. Having always-available physical controls for these is a huge power-up for your cubicle-away-from-the-office.

Long hours hunched over the computer are going to take a toll on your body. There are a number of projects entered in the contest that remind you to take breaks, but [ImageryEel] took at different approach. It’s a wearable posture pack that uses an IMU to measure the position of your spine. You’ll get push notifications when the posture pack notices your upper back is beginning to slump. Hopefully this makes it a self-correcting problem!

Having a cozy place to do you work is great for both your physical and emotional health. [Peter van der Walt] is taking the concept of a home “battlestation” to another level, with a reclining chair design that wraps dual monitors around you as you settle in for the work day.

It’s not too late. Make this weekend into your own mini hackathon and get those entries in by Monday morning. Ten finalists will each receive a $500 cash prize and be in the running for the final round beginning at the end of October. Ultimately, one entry will claim the $25,000 Hackaday Prize along with top prizes for four other finalists.

Begin your project on Hackaday.io today, and use the “Submit Project To” dropdown box in the left sidebar of your project page to enter it in the contest. Good luck!

Making Custom Curved Mirrors At Home

Generally speaking, creating custom mirrors is a complex task that involves a lot of careful grinding, and isn’t something to be taken lightly if you need precision results. Just ask the folks who provided NASA with a wonky mirror for the Hubble. But assuming you’re not working on an orbital space telescope (or even a ground based one, for that matter), [volzo] has recently documented some techniques for producing single and double curved mirrors of reasonable quality using common workshop tools.

The first step is finding something that’s a bit easier to work with than glass. After testing various reflective materials such as PVC foil and painted PETG sheets by comparing the reflections of projected test patterns, [volzo] found that laminated polystyrene gave the most accurate results. If you just want to make a simple bent mirror, he shows how you can pop one of these sheets on a CNC router, make the appropriate cuts, and fold them into shape.

That part might seem a bit obvious, but what about a more complex shape? Here, [volzo] points to how the thin sheets of polystyrene also lend themselves to vacuum forming. As demonstrated in the video below, all it takes is a 3D printed plug and some basic equipment to rapidly produce mirrors in arbitrary shapes.

Now obviously the optical properties of such mirrors will leave something to be desired, but depending on your application, that might not be such a big deal. As examples [volzo] shows off a few projects using these custom mirrors, such as a tabletop camera that captures both sides of the table simultaneously and a circular projector. Laminated polystyrene could potentially even be used to create low-cost variable mirrors.

Continue reading “Making Custom Curved Mirrors At Home”

The Fix Is In: Hubble’s Troubles Appear Over For Now

Good news this morning from low Earth orbit, where the Hubble Space Telescope is back online after a long and worrisome month of inactivity following a glitch with the observatory’s payload computer.

We recently covered the Hubble payload computer in some depth; at the time, NASA was still very much in the diagnosis phase of the recovery, and had yet to determine a root cause. But the investigation was pointing to one of two possible culprits: the Command Unit/Science Data Formatter (CU/SDF), the module that interfaces the various science instruments, or the Power Control Unit (PCU), which provides regulated power for everything in the payload computer, more verbosely known as the SI C&DH, or Scientific Instrument Command and Data Handling Unit.

In the two weeks since that report, NASA made slow but steady progress, methodically testing every aspect of the SI C&DH. It wasn’t until just two days ago, on July 14, that NASA made a solid determination on root cause: the Power Control Unit, or more specifically, the power supply protection circuit on the PCU’s 5-volt rail. The circuit is designed to monitor the rail for undervoltage or overvoltage conditions, and to order the SI C&DH to shut down if the voltage is out of spec. It’s not entirely clear whether the PCU is actually putting out something other than 5 volts, or if the protection circuit has perhaps degraded since the entire SI C&DH was replaced in the last service mission in 2009. But either way, the fix is the same: switch to the backup PCU, a step that was carefully planned out and executed on July 15th.

To their credit, the agency took pains that everyone involved would be free from any sense of pressure to rush a fix — the 30-year-old spacecraft was stable, its instruments were all safely shut down, and so the imperative was to fix the problem without causing any collateral damage, or taking a step that couldn’t be undone. And further kudos go to NASA for transparency — the web page detailing their efforts to save Hubble reads almost like a build log on one of our projects.

There’s still quite a bit of work to be done to get Hubble back into business — the science instruments have to be woken up and checked out, for instance — but if all goes well, we should see science data start flowing back from the space telescope soon. It’s a relief that NASA was able to pull this fix off, but the fact that Hubble is down to its last backup is a reminder Hubble’s days are numbered, and that the best way to honor the feats of engineering derring-do that saved Hubble this time and many times before is to keep doing great science for as long as possible.