PLC And Linear Actuators Automate Double-Hung Windows

Very few residential architectural elements lend themselves to automation, with doors and windows being particularly thorny problems. You can buy powered doors and windows, true, but you’ll pay a pretty penny and have to go through an expensive remodeling project to install them. Solving this problem is why this double-hung window automation project caught our eye.

Another reason we took an interest in this project is that [deeewhite] chose to use a PLC to control his windows. We don’t see much love for industrial automation controllers around here, what with the space awash in cheap and easy to use microcontrollers. They have their place, though, and a project like this is a good application for a PLC. But the controller doesn’t matter at all if you can’t move the window, for which task [deeewhite] chose 12V linear actuators. The fact that the actuators are mounted in the center of the window is probably necessary given the tendency of sashes to rack in their frames and jam; unfortunately, this makes for a somewhat unsightly presentation. [deeewhite] also provides the ladder logic for his PLC and discusses how he interfaces his system with Alexa, a WeMo and IFTT.

We’d love to see this project carried forward a bit with actuators hidden under the window trim, or a rack and pinion system built into the window tracks themselves. This is a pretty good start and should inspire work on other styles of windows. While you’re at it, don’t forget to automate the window blinds.

[via r/DIY]

Pulling Music Out Of The Airwaves

RADIO WONDERLAND is a one-man band with many famous unintentional collaborators. [Joshua Fried]’s shows start off with him walking in carrying a boombox playing FM radio. He plugs it into his sound rig, tunes around a while, and collects some samples. Magic happens, he turns an ancient Buick steering wheel, and music emerges from the resampled radio cacophony.

It’s experimental music, which is secret art-scene-insider code for “you might not like it”, but we love the hacking. In addition to the above-mentioned steering wheel, he also plays a rack of shoes with drumsticks. If we had to guess, we’d say rotary encoders and piezos. All of this is just input for his computer programs which take care of the sampling, chopping, and slicing of live radio into dance music. It’s good enough that he’s opened for [They Might Be Giants].

Check out the videos (embedded below) for a taste of what a live show was like. There are definitely parts where the show is a little slow, but they make it seem cooler when a beat comes together out of found Huey Lewis. We especially like the “re-esser” routine that hones in on the hissier parts of speech to turn them into cymbals. And if you scan the crowd in the beginning, you can find a ten-years-younger [Limor Fried] and [Phil Torrone].

Continue reading “Pulling Music Out Of The Airwaves”

Arduino With A… PIC?

Before the Arduino took over the hobby market (well, at least the 8-bit segment of it), most hackers used PIC processors. They were cheap, easy to program, had a good toolchain, and were at the heart of the Basic Stamp, which was the gateway drug for many microcontroller developers.

[AXR AMR] has been working with the Pinguino, an Arduino processor based on a PIC (granted, an 18F PIC, although you can also use a 32-bit device, too). He shows you how to build a compatible circuit on a breadboard with about a dozen parts. The PIC has built-in USB. Once you flash the right bootloader, you don’t need anything other than a USB cable to program. You can see a video of this below.

You will need a programmer to get the initial bootloader, but there’s plenty of cheap options for that. The IDE is available for Windows, Linux, and the Mac. Of course, you might wonder why you would use a PIC device instead of the more traditional Arduino devices. The answer is: it depends. Every chip has its own set of plusses and minuses from power consumption to I/O devices, to availability and price. These chips might suit you, and they might not. That’s your call.  Of course, the difference between Microchip and Atmel has gotten less lately, too.

We’ve covered Pinguino before with a dedicated board. If you never played with a Basic Stamp, you might enjoy learning more about it. If you’re looking for more power than a PIC 18F can handle, you might consider the Fubarino, a PIC32 board you can use with the Arduino IDE.

Continue reading “Arduino With A… PIC?”

Put A Pi In Your JAMMA

Most of us who play an occasional arcade game will have never taken a look inside a cabinet however much its contents might interest us. We’ll know in principle what kind of hardware we’d expect to see if we were given the chance, but the details are probably beyond us.

In fact, there is a standard for the wiring in arcade cabinets. Arcade operators demanded running costs as low as possible, and the industry responded with the JAMMA wiring standard. The Japan Amusement Machinery Manufacturers Association was the name the Japanese trade body was known under in the 1980s, and they originated a specification for both wiring and connector that would allow hardware to be easily installed for any game that supported it.

[Jochen Zurborg] has created an interesting board supporting the JAMMA connector, one that interfaces it with a Raspberry Pi and offers full support of the Pi as a video source. He’s launching his Pi2Jamma as a commercial product so sadly there are no schematics or Gerbers for you to look at, but if you’d prefer to roll your own it probably wouldn’t be beyond most Hackaday readers to do so. What it does though is open up the huge world of emulation on the Pi to owners of classic cabinets, and if you don’t mind forking out for one then we can see it might make for a very versatile addition to your cabinet.

We’ve featured [Jochen]’s work before here at Hackaday with a joystick that faithfully replicates arcade items. As to the Pi, this is the first JAMMA board we’ve seen with video, but we’ve featured another board using a Pi to bring console controllers to JAMMA boards in the past.

3D Printing Permanent Magnets

Researchers at TU Wien wanted to create magnets with exactly the right magnetic field for a particular application. Their solution? 3D printing of magnets. Previously, it has been difficult to produce permanent magnets with a specific shape of the magnetic field. The resulting magnets will be a boon to magnetic sensor construction.

Previously, after designing a magnet with a specific shape and magnetic field, a researcher would have to create tooling for injection molding. This is expensive and time-consuming and often not worth it for small quantities of magnets.

Continue reading “3D Printing Permanent Magnets”

DIY KVM Switch Lets You Use One Keyboard And Mouse With Multiple Computers

Here’s a quick DIY hack if you happen to have multiple computers at home or at the office and are tired of juggling mice and keyboards. [Kedar Nimbalkar] — striving for a solution — put together a keyboard, video and mouse switcher that allows one set to control two computers.

A DPDT switch is connected to a female USB port, and two male USB cables — with the ground and 5V wires twisted together and connected to the switch — each running to a PC. [Nimbalkar] suggests ensuring that the data lines are correctly wired, and testing that the 5V and ground are connected properly. He then covered the connections with some hot glue to make it a little more robust since it’s about to see a lot of use.

Now all that’s needed is a quick press of the button to change which PC you are working on, streamlining what can be a tedious changeover — especially useful if you have a custom keyboard you want to use all the time.

Continue reading “DIY KVM Switch Lets You Use One Keyboard And Mouse With Multiple Computers”

How Not To Build A CPU Hand Warmer

Winter is coming, along with mittens, cold hands, snow, and jackets. Now that we’re all carrying around lithium batteries in our pocket, wouldn’t it be a great idea to build an electronic hand warmer? That’s what [GreatScott!] thought. To build his electronic hand warmer, he turned to the most effective and efficient way to turn electricity into heat: a ten-year-old AMD CPU.

Building an electronic hand warmer is exceptionally simple. All you need is a resistive heating element (like a resistor), a means to limit current (like a resistor), and a power supply (like a USB power bank). Connect these things together and you have a hand warmer that is either zero percent or one hundred percent efficient. We haven’t figured that last part out yet.

Because more power and more retro is more betterer, [GreatScott] pulled an AMD Sempron out of an old computer. Finding and reading data sheets is for wimps, apparently, so [GreatScott] just poked some pins with a variable power supply until the CPU was drawing about 500mA at 5V.

The video continues with some Arduino-based temperature measurement, finding some new pins to plug the power leads into, and securing all the wires on this heating element with hot glue. For anyone in the comments ready to say, ‘not a hack’, we assure you, this qualifies.

With the naive method of building a CPU hand warmer out of the way, here’s the pros and cons of this project, and how it can be made better. First off, using an old AMD processor was a great idea. These things are firestarters, and even though this processor preceded the 100+ W TDP AMD CPUs, it should work well enough.

That said, this is not how you waste power in a CPU. Ideally, the processor should do some work, with more active gates resulting in higher power consumption. If this were an exceptionally old processor, a good, simple option would be freerunning the chip, or having the CPU count up through its address space. This can be done by tying address lines low or high, depending on the chip. That’ll waste a significant amount of power. Randomly poking pins hoping for the right power consumption is not the way to get the most heat out of this CPU.

Of course, the above paragraph is just theory. The eating is in the pudding, or some other disfigured colloquialism, so here’s a quad-core 386 coffee warmer. This project from [magnustron] uses four 80386 CPUs powered via USB to make a nice desktop hotplate for your cuppa. Of course being powered by USB means there’s only 500mA to go around, and the ΔT is comparable to [GreatScott]’s AMD and hot glue hand warmer. Thus we get to the crux of the issue: 5V and 500mA isn’t very hot. Until cheap USB-C power banks, with ten or twelve Watts flood in from China, the idea of a USB powered heater is a fool’s errand. It does make for some great AMD firestarter jokes, though, so we have to give [GreatScott] credit for that.

Continue reading “How Not To Build A CPU Hand Warmer”