Point And Click To An IoT Button

The availability of cheap WiFi boards like the ESP8266 and others means you can inexpensively put projects on the network. But there is still the problem of how to connect these devices to other places reliably. An Open Source project that attempts to make that whole effort point and click is Mongoose OS. The open source system works with the ESP8266, ESP32, and several other platforms. It is well integrated with Amazon’s IoT backend, but it isn’t locked to it.

Everyone wants to be your IoT broker and we see products appear (and disappear) regularly aimed at capturing that market. One common way to send and receive messages from a tiny device to a remote server is MQTT, an ISO standard made with resource-limited devices in mind. Many IoT services speak this protocol, including Amazon’s IoT offering. You can see how quick it is to flash an ESP8266 to make an Amazon IoT button in the video below. Although the video example uses Amazon, you can configure the system to talk to any public or private MQTT broker.

Continue reading “Point And Click To An IoT Button”

Light Replaces Electrons For Giant Vector-Graphics Asteroids Game

For all its simplicity, the arcade classic Asteroids was engaging in the extreme, with the ping of the laser, the rumble of the rocket, the crash of crumbling space rocks, and that crazy warble when the damn flying saucers made an appearance. Atari estimates that the game has earned operators in excess of $500 million since it was released in 1979. That’s two billion quarters, and we’ll guess a fair percentage of those coins came from the pockets of Hackaday’s readers and staff alike.

One iconic part of Asteroids was the vector display. Each item on the field was drawn as a unit by the CRT’s electron beam dancing across the phosphor rather than raster-scanned like TV was at the time. The simple graphics were actually pretty hard to create, and with that in mind, [standupmaths] decided to take a close look at the vector display of Asteroids and try to recreate it using a laser.

To be fair, [Seb Lee-Delisle] does all the heavy lifting here, with [standupmaths] providing context on the history and mathematics of the original vector display. [Seb] is a digital artist by trade, and has at the ready a 4-watt RGB laser projector for light shows and displays. Using the laser as a replacement for the CRT’s electron beam, [Seb] was able to code a reasonably playable vector-graphic version of Asteroids on a large projections screen. Even the audio is faithful to the original. The real treat comes when the laser is slowed and a little smoke added to show us how each item is traced out in order.

All [Seb]’s code is posted on GitHub, so if you have a laser projector handy, by all means go for it. Or just whip up a custom vector display for your own tabletop version of Asteroids.

Continue reading “Light Replaces Electrons For Giant Vector-Graphics Asteroids Game”

DIY Barrel Rifling With 3D Printed Help

[Jeff Rodriguez] has been busy testing a feasible DIY method for rifling a barrel and has found some success using salt water, a power supply, wire, and 3D printed parts to create the grooves of rifling without the need for any moving parts or cutting tools. Salt water flows between the barrel’s inside surface and a 3D-printed piece that holds wires in a precise pattern. A current flows between the barrel and the wires (which do not actually touch the inside of the barrel) and material is eroded away as a result. 10-15 minutes later there are some promising looking grooves in the test piece thanks to his DIY process.

Rifled barrels have been common since at least the 19th century (although it was certainly an intensive process) and it still remains a job best left to industrial settings; anyone who needs a barrel today normally just purchases a rifled barrel blank from a manufacturer. No one makes their own unless they want to for some reason, but that’s exactly where [Jeff] is coming from. The process looks messy, but [Jeff] has had a lot of space to experiment with a variety of different methods to get different results.

Continue reading “DIY Barrel Rifling With 3D Printed Help”

Magnetic Stir Plate Is A Hack

If you’ve ever spent any time around a lab, you’ve doubtless seen one of those awesome combination magnetic stirrer and heater plates that scientists use to get liquids mixed and up to temperature. If you’ve ever etched your own PCBs using ammonium persulfate, you’ve experienced the need for both heating and agitation firsthand. Using a stirrer plate for PCB etching is putting two and two together and coming up with four. Which is to say, it’s a good idea that’s not amazingly novel. [acidbourbon] built his own, though, and there’s almost no part of this DIY heater/stirrer that isn’t a hack of some kind or another.

Start off with the temperature controller. Instead of buying a thermocouple or using an LM75 or similar temperature-measurement IC, [acidbourbon] uses a bog-standard 1n4148 diode. The current passed through a diode, at a given voltage, is temperature dependent, which means that adding a resistor and a microcontroller’s ADC yields a quick hacked temperature sensor. [acidbourbon] glued his straight onto the casserole that he uses as an etching tray.

Does the type of person who saves $0.25 by using a diode instead of a temperature sensor go out and buy a stirrer motor? No way. Motor and gears come from a CD-ROM drive. The “fish” — the magnetic bar that spins in the etchant — is made of neodymium magnets lengthened by shrink-wrapping heat-shrinking them together with some capacitors. Who knew that shrinkwrap heat-shrink, fused with pliers, was waterproof? Is that a wall-wart in that box, with the prongs wired to mains electricity?

Anyway, this just goes to show that etching equipment need not be expensive or fancy. And the project also provides a showcase for a bevy of tiny little hacks. And speaking of [acidbourbon]’s projects, this semi-automatic drill press mod has been on our to-do list for two years now. Shame on us! Continue reading “Magnetic Stir Plate Is A Hack”

Don’t Fear The Filter: Lowpass Edition

There comes a time in every electronic designer’s life when, whether they know it or not, they need an analog filter in their design. If you’re coming from a digital background, where everything is nice and numeric, the harsh reality of continuous voltages can be a bit of a shock. But if you’re taking input from, or sending output to the big analog world out there, it pays to at least think about the frequency-domain properties of the signal, and maybe even do something about them.

Designing an analog filter to fit your needs can be a bit of a daunting task: there are many factors that you’re going to need to consider, and they all interact. It’s easy to get lost. We’re going to simplify this as much as possible by instead focusing on a few common applications and building up the simplest possible filters that work well for them.

Today, we’re going to consider the lowpass filter, and specifically a Sallen-Key filter with Butterworth characteristics and a second-order rolloff. Sound like word salad? We’ll fix that up right away, because this is probably the single most important filter to have in your analog toolbox for two very common use cases: pulse-width modulated (PWM) output and analog-to-digital conversion (ADC) input.

Continue reading “Don’t Fear The Filter: Lowpass Edition”

Friday Hack Chat: Mechanical Manufacturing

Join [Sylvia Wu], a Senior Manufacturing Engineer at Fictiv, for this week’s Hack Chat. [Sylvia’s] work at Fictiv gives her a unique viewpoint for modern manufacturing. The company connects engineers with rapid manufacturing by taking in a design and routing it to a shop that has the tools and time to fabricate the part quickly. This means seeing the same silly mistakes over and over again, but also catching the coolest new tricks as they pass by. She also spends time tearing apart consumer products to see how they have been manufactured, adding to their arsenal of available processes, both time-tested and newfangled.

Anyone interested manufacturing needs to get in on this Hack Chat. Mark your calendar for this Friday, 3/10 at noon PST (20:00 UTC)

Here’s How To Take Part:

join-hack-chatOur Hack Chats are live community events on the Hackaday.io Hack Chat group messaging.

Log into Hackaday.io, visit that page, and look for the ‘Join this Project’ Button. Once you’re part of the project, the button will change to ‘Team Messaging’, which takes you directly to the Hack Chat.

You don’t have to wait until Friday; join whenever you want and you can see what the community is talking about.

Upcoming Hack Chats

On Friday March 17th the Hack Chat features chip design for oscilloscopes with engineers from Keysight.

Move Over Baofeng, Xiaomi Want To Steal Your Thunder

To a radio amateur who received their licence decades ago there is a slightly surreal nature to today’s handheld radios. A handheld radio should cost a few hundred dollars, or such was the situation until the arrival of very cheap Chinese radios in the last few years.

The $20 Baofeng or similar dual-bander has become a staple of amateur radio. They’re so cheap, you just buy one because you can, you may rarely use it but for $20 it doesn’t matter. Most radio amateurs will have one lying around, and many newly licensed amateurs will make their first contacts on one. They’re not even the cheapest option either, if you don’t mind the absence of an LCD being limited to UHF only, then the going rate drops to about $10.

The Baofengs and their ilk are great radios for the price, but they’re not great radios. The transmitter side can radiate a few too many harmonics, and the receivers aren’t the narrowest bandwidth or the sharpest of hearing. Perhaps some competition in the market will cause an upping of the ante, and that looks to be coming from Xiaomi, the Chinese smartphone manufacturer. Their Mijia dual-band walkie-talkie product aims straight for the Baofeng’s jugular at only $35, and comes in a much sleeker and more contemporary package as you might expect from a company with a consumer mobile phone heritage. Many radio amateurs are not known for being dedicated followers of fashion, but for some operators the sleek casing of the Mijia will be a lot more convenient than the slightly more chunky Baofeng.

This class of radio offers more to the hardware hacker than just an off-the-shelf radio product, at only a few tens of dollars they become almost a throwaway development system for the radio hacker. We’ve seen interesting things done with the Baofengs, and we look forward to seeing inside the Xiaomi.

We brought you a look at the spurious emissions of this class of radio last year, and an interesting project with a Baofeng using GNU Radio in a slightly different sense to its usual SDR function.

[via Southgate ARC]