Remote Control Of Clocks Is Easy As Pi

[Fatjedi007] recently acquired three programmable boxing gym-type clocks to help his developmentally disabled clients manage their time. The plan was to have timers of varying lengths fire at preset times throughout the day, with the large displays providing a view from anywhere. Unfortunately, the clocks were not nearly as programmable as he needed them to be.

Since he’d spent enough money already, [Fatjedi007] turned to the power of Raspberry Pi to devise an affordable solution. Each clock gets a Pi Zero W and a simple IR transmit/receive circuit that operates using LIRC. The clocks came with remote controls, so it was just a matter of re-programming them. From LIRC, he wrote some scripts with SEND_ONCE and schedules the timers with a cron job. No need to get out the ladder—he can program all of them from his chair over VNC.

He does have one problem, though, and that’s getting the Zeros to set themselves over NTP with static IPs. Do you have any suggestions? Put ’em in the comments and help a Jedi out.

LIRC is pretty handy for anything you want to control remotely, like a stereo system.

An FM Transceiver From An Unexpected Chip

The Si47xx series of integrated circuits from Silicon Labs is a fascinating series of consumer broadcast radio products, chips that apply SDR technologies to deliver a range of functions that were once significantly more complex, with minimal external components and RF design trickery.  [Kodera2t] was attracted to one of them, the Si4720, which boasts the unusual function of containing both a receiver and a transmitter for the FM broadcast band and is aimed at mobile phones and similar devices that send audio to an FM car radio. The result is a PCB with a complete transceiver controlled by an ATmega328 and sporting an OLED display, and an interesting introduction to these devices.

The Si4720 internal block diagram, from its data sheet.
The Si4720 internal block diagram, from its data sheet.

A look at the block diagram from the Si4720 reveals why it and its siblings are such intriguing devices. On-chip is an SDR complete in all respects including an antenna, which might set the radio enthusiasts among the Hackaday readership salivating were it not that the onboard DSP is not reprogrammable for any other purpose than the mode for which the chip is designed. The local oscillator also holds a disappointment, being limited only to the worldwide FM broadcast bands and not some of the more useful or interesting frequencies. There are however a host of other similar Silicon Labs receiver chips covering every conceivable broadcast band, so the experimenter at least has a good choice of receivers to work with.

If you need a small FM transmitter and have a cavalier attitude to spectral purity then it’s easy enough to use a Raspberry Pi or just build an FM bug. But this project opens up another option and gives a chance to experiment with a fascinating chip.

Hackaday Links Column Banner

Hackaday Links: April 22, 2018

Eagle 9 is out. Autodesk is really ramping up the updates to Eagle, so much so it’s becoming annoying. What are the cool bits this time? Busses have been improved, which is great because I’ve rarely seen anyone use busses in Eagle. There’s a new pin breakout thingy that automagically puts green lines on your pins. The smash command has been overhauled and now moving part names and values is somewhat automatic. While these sound like small updates, Autodesk is doing a lot of work here that should have been done a decade ago. It’s great.

Crypto! Bitcoin is climbing up to $9,000 again, so everyone is all-in on their crypto holdings. Here’s an Arduino bitcoin miner. Stats of note: 150 hashes/second for the assembly version, and at this rate you would need 10 billion AVRs to mine a dollar a day. This array of Arduinos would need 2 Gigawatts, and you would be running a loss of about $10 Million per day (minus that one dollar you made).

Are you going to be at Hamvention? Hamvention is the largest amateur radio meetup in the Americas, and this year is going to be no different. Unfortunately, I’ll be dodging cupcake cars that weekend, but there is something of note: a ‘major broadcaster’ is looking for vendors for a ‘vintage tech’ television series. This looks like a Canadian documentary, which adds a little bit of respectability to this bit of reality television (no, really, the film board of Canada is great). They’re looking for weird or wacky pieces of tech, and items that look unique, strange, or spark curiosity. Set your expectations low for this documentary, though; I think we’re all several orders of magnitude more nerd than what would be interesting to a production assistant. ‘Yeah, before there were pushbutton phones, they all had dials… No, they were all attached to the wall…”

The new hotness on Sparkfun is a blinky badge. What we have here is a PCB, coin cell holder, color changing LED, and a pin clasp. It’s really not that different from the Tindie Blinky LED Badge. There is, however, one remarkable difference: the PCB is multicolored. The flowing unicorn locks are brilliant shades of green, blue, yellow, pink, purple, and red. How did they do it? We know full-color PCBs are possible, but this doesn’t look like it’s using a UV printer. Pad printing is another option, but it doesn’t look like that, either. I have no idea how the unicorn is this colorful. Thoughts?

Defcon is canceled, but there’s still a call for demo labs. They’re looking for hackers to show off what they’ve been working on, and to coax attendees into giving feedback on their projects.

Counting Without Transistors

The Hackaday Prize is all about Building Hope. We want to see hardware creators change the world with microcontrollers and breadboards. That’s a noble goal, but it also doesn’t mean you can’t have fun. That’s exactly what [Yann] is doing with a pile of surplus Soviet components, a bunch of bodge wire, and exactly zero transistors. He’s building a hexadecimal display module using only relays and diodes. It’s absurd, but still very very cool.

The inspiration for this build comes from homebrew computing. With this, there’s a recurring problem of displaying the status of a bus. Sure, a bank of LEDs will work, but then you have to count to F. The better solution to this is a hexadecimal display. The best solution to this problem is using Numitrons — seven segment Nixies, basically — and doing it all with relays and diode steering.

This module accepts four bits as an input and uses a clever arrangement of diodes to turn those four signals into the digits 0-F. Yes, it’s hexadecimal, but that’s just what you do when you’re building your own computer.

Right now, [Yann] has one module on a slim-profile protoboard that should stack easily enough for an 8 or even a 16-bit wide bus. That’s four tubes and hundreds of diodes for the 16-bit version, but the good news is all of these modules are identical, vastly simplifying the construction of the display panel of a homebrew computer.

Fail Of The Week: The Spot Welder Upgrade That Wasn’t

Even when you build something really, really nice, there’s always room for improvement, right? As it turns out for this attempted upgrade to a DIY spot welder, not so much.

You’ll no doubt recall [Mark Presling]’s remarkably polished and professional spot welder build that we featured some time ago. It’s a beauty, with a lot of thought and effort put into not only the fit and finish but the function as well. Still, [Mark] was not satisfied; he felt that the welder was a little underpowered, and the rewound microwave oven transformer was too noisy. Taking inspiration from an old industrial spot welder, he decided to rebuild the transformer by swapping the double loop of battery cable typically used as a secondary with a single loop of thick copper stock. Lacking the proper sized bar, though, he laminated multiple thin copper sheets together before forming the loop. On paper, the new secondary’s higher cross-sectional area should carry more current, but in practice, he saw no difference in the weld current or his results. It wasn’t all bad news, though — the welder is nearly silent now, and the replaced secondary windings were probably a safety issue anyway, since the cable insulation had started to melt.

Given [Mark]’s obvious attention to detail, we have no doubt he’ll be tackling this again, and that he’ll eventually solve the problem. What suggestions would you make? Where did the upgrade go wrong? Was it the use of a laminated secondary rather than solid bar stock? Or perhaps this is the best this MOT can do? Sound off in the comments section.

Continue reading “Fail Of The Week: The Spot Welder Upgrade That Wasn’t”

When Detecting Lines Is Harder Than Expected

[Conor Patrick] is no stranger to hardware development, and he’s had an interesting project for the past few months. He’s attempting to create a tool to convert images of technical drawings (such as footprints for electronic components) into digital formats that can be imported into other tools. This could automate turning a typical footprint drawing like the one shown into an actual part definition in a CAD program, which could really speed up the creation of custom parts.

Key to the entire concept is the detection of lines in a black-and-white technical drawing. To some people this won’t sound like a particularly challenging problem; choose one or another baked-in line detection function, maybe with a bit of pre or post-processing, and that should be that. It turns out that detecting lines can be harder than expected, and as usual the devil is in the detail.

When [Conor] tried some existing methods for detecting lines, the results appeared good at first but came up short in frustrating ways. Software did not appreciate that in a technical drawing, a line is a single unbroken unit from point A to point B. Without that assumption, what should be a single line sometimes had sections missing, or single lines were detected as multiple segments instead of a unit. Lines that crossed other lines complicated things. Unwanted lines like a “1” or the lower half of a “Y” were being detected. There had to be a better way.

In the end, a custom solution that took proper advantage of the nature of the source images and made the correct assumptions is what made all the difference. With some intelligent threshold setting combined with looking at vertical and horizontal line instances separately, it was possible to locate lines and their lengths far more accurately than any other method he had tried. The system doesn’t handle sloped lines yet, but it might be possible to simply iterate through rotations of the image while applying the same method. If you have a better solution, [Conor] wants to hear from you.

Of course, garbage in means garbage out and sadly not all technical drawings measure up.

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”