Posts

Showing posts from September, 2020

ESP32 Becomes Modern Controller for A 1960s Clock

These days, everything’s got a clock in it, and a good proportion of those clocks are automatically syncronized to high-accuracy Internet time servers. Back in the past, things weren’t so easy. Often, institutions that required accurate time would use a single highly-accurate primary clock to drive a series of secondary clocks around a facility. Without the primary clock, the secondary clock has no signal to drive it. [Oleksii Samorukov] had just such a clock, and whipped up a controller to stand in for timekeeping duty. The secondary clock is in question is a Pragotron PJ 27, which requires regular 12V signals of alternating polarity in order to keep time. To handle this job, [Oleksii] decided to use an ESP32 in combination with a L298N motor controller. The L298N is an H-bridge driver chip, allowing it to easily supply the 12V signals in alternating polarities where required. To ensure the system keeps accurate time, the ESP32 regularly queries an NTP time server over WiFi. It’s a

KiwiSDR vs RaspberrySDR — a Tale of Two SDRs

Once you move away from the usual software defined radio (SDR) dongles, you have only a few choices unless you want to drop some serious cash. One common hobby-grade SDR is the KiwiSDR. This popular unit runs Linux and can receive up to 30 MHz. The platform uses a dedicated A/D converter, an FPGA, and BeagleBone computer. Success of course breeds imitators, and especially when you have an open source design like the Kiwi, you are going to find similar devices with possibly different end goals. That’s how the RaspberrySDR came to be. This is a very similar unit to the KiwiSDR but it uses a Raspberry Pi, along with a handful of other differences. What’s different? [KA7OEI] tells us in a recent blog post . Other than the obvious difference of the computer and all that it entails, the RaspberrySDR has a higher speed A/D (125 MHz vs 66 MHz) and 16-bits of resolution instead of the Kiwi’s 14 bits. This combines to give the Raspberry a wider receive range (up to 60 MHz) and — in theory — bet

Automated Tools For WiFi Cracking

Knowing how WiFi networks can be attacked is a big part of properly securing them, and the best way to learn about it is to (legally) run some attacks. [Matt Agius] has been going down the WiFi-cracking rabbit hole, and in the process created Pwnagotchi Tools to automate the actual password cracking part. The first step in cracking a WiFi network is to record the handshake that gets exchanged when a client connects to an access point. This has been made very simple thanks to Pwnagotchi , which turns a Raspberry Pi into an automated handshake collection tool and Pwnagothi Tools helps to automate the steps that follow. It downloads the handshakes (pcap files) from the pwnagotchi, and converts it to pmkid/hccapx files to use with the hashcat password recovery tool. Hashcat scripts can then be generated for the actual cracking using any of the attacks that [Matt] has compiled. WPA/WPA2 is slow to crack and requires a lot of processing power, so [Matt] also added the option to automatica

The Ultimate Model Rocket Launchpad

Image
When you’re building advanced rockets as BPS.Space are, an unreliable launchpad is the something you really don’t want to be struggling with. [Joe Barnard] is working on a model rocket that can land vertically under its own power, like the Falcon 9, and has upgraded his launchpad in the process. A lot of thought and hard-earned experience has gone into its design, and the video after the break is a fascinating look the engineering process. [Joe]’s rockets don’t use guide rods and fins for stabilization in the way most amateur rockets do, but instead have thrust vectoring motor mounts and reaction wheels for active stabilization during launch and flight. The rockets are clamped to the launchpad right up to ignition, and then need to release quickly and reliably. His previous clamps looked very cool, but suffered from high friction forces during release, and the integrated covers prevented easy inspection. These were replaced by much simpler spring-loaded clamp held in place by a small

Oh, Holey Light

Image
We consider ourselves well-versed when it comes to the technical literature plastered on hardware store parts. Acronyms don’t frighten us, and our Google-fu is strong enough to overcome most mysteries. One bit of dark magic we didn’t understand was the gobbledygook on LED lamps. Wattage is easy and color temperature made sense because it corresponds with warm and cool colors, but Color Rendering Index (CRI) sounds like deep magic. Of course, some folks understand these terms so thoroughly that they can teach the rest of us, like [Jon] and [Kevin], who are building a light controller that corrects inadequacies in cheap lamps by installing several lamps into one unit. We learned a lot by reading their logs, which are like the Cliff Notes from a lighting engineer’s textbook, but we’ll leave it as an exercise for the students to read through. Their project uses precise light sensors to measure the “flavor” of light coming off cheap lamps so you can mix up a pleasing ratio. In some ways,

Choosing The Right RTC For Your Project

Image
When it comes to measuring time on microcontrollers, there’s plenty of ways to go about things. For most quick and dirty purposes, such as debounce delays or other wait states, merely counting away a few cycles of the main clock will serve the purpose.  Accurate to the tens of milliseconds, they get the average utility jobs done without too much fuss. However, many projects are far more exacting in their requirements. When you’re building a clock, or a datalogger, or anything that relies on a stable sense of passing time for more than a few minutes, you’ll want a Real Time Clock. So called due to their nature of dealing with real time, as we humans tend to conceive it, these devices take it upon themselves to provide timekeeping services with a high degree of accuracy. We’ve compiled a guide to common parts and their potential applications so you can get things right the first time, every time. Requirements Are Key The RTC you choose for a given project will come down to a variety

Robot Cat Takes Inspiration From Nature

Image
Oftentimes, a project starts with a clean sheet of paper, and we set out wildly sketching towards the goal in our minds. However, it can pay to do your research first, as [Chen Liang] demonstrates with this great robotic cat build. [Liang] began the project after being dissatisfied with existing robot animals they’d seen online. Rather than simply attempt to build a cat from memory, instead, [Liang] decided to first study a real cat to ensure the resulting robot would bear real resemblence to its biological inspiration. [Liang]’s focus was on the skeleton, as replicating the way the real skeleton worked would create a robot with more authentic movement. Using 3D printed parts and many, many servos, we think [Liang] has done an admirable job at creating a basic robot cat platform. With an ESP32 running the show, the cat can be posed using a web interface to control the servo positions of its various joints. We look forward to future upgrades that enable fluid movement and other capabi

Video: Exploring the Abandoned Birthplace of the 6502 and Commodore 64

Image
I miss my friend Dave DiOrio. He was a chip designer in the 1980’s, which made him one of the true wizards back then. We met my first day when I started at Commodore Business Machines, though my paycheck said MOS Technology on it. MOS Technology was the birthplace of the venerable 6502 microprocessor, the VIC video chip, and the SID sound chip to name the really famous ones. It also brought us the TED Text Display chip, a whole boatload of Amiga chips, and several other chips that almost did what we wanted them to do. I worked with magicians whose stock and trade were comprised of half-part quantum tunneling effect and half-part straight-up logic implementation. These magicians weren’t bound by the number of pins available for TTL logic, not like us lowly hardware engineers who had to string 14 and 16 pin chips together to do any real lifting. Below the spartan offices where the designs were drawn lived the dragon otherwise known as a chip fab, short for integrated circuit fabricat

Weigh Your Car With Paper

Sometimes a problem is more important than its solution. Humans love to solve mysteries and answer questions, but the most rewarding issues are the ones we find ourselves. Take [Surjan Singh], who wanted to see if he could calculate the weight of his Saab 96 . Funny enough, he doesn’t have an automobile scale in his garage, so he had to concoct a workaround method. His solution is to multiply the pressure in his tires with their contact patch. Read on before you decide this is an imperfect idea. He measures his tires with a quality gauge for the highest accuracy and pressurizes them equally. Our favorite part is how he measures the contact patch by sliding a couple of paper pieces from the sides until they stop and then measures the distance between them. He quickly realizes that the treads didn’t contact the floor evenly, so he measures them to get a better idea of the true contact area. Once he is satisfied, he performs his algebra and records the results, then drives to some public

Hyper Links and Hyperfunctional Text CAD

Strong opinions exist on both sides about OpenSCAD. The lightweight program takes megabytes of space, not gigabytes, so many people have a copy, even if they’ve never written a shape. Some people adore the text-only modeling language, and some people abhor the minimal function list. [Johnathon ‘Zalo’ Selstad] appreciates the idea but wants to see something more robust, and he wants to see it in your browser. His project CascadeStudio has a GitHub repo and a live link so you can start tinkering in a new window straight away. We’re going to assume that anyone reading past this point is familiar with this type of modeling. At the first keystroke, it is evident that CascadeStudio is different from OpenSCAD. For starters, tooltips reveal that formatting is a little different. A cone in OpenSCAD uses the cylinder() function while CascadeStudio insists that Cylinders() are the same diameter at the top and bottom, but a Cone() tapers. You may also notice the capital letters for CascadeStu

New Controllers On Old Nintendos With USB64

The Nintendo 64 made a big splash when it launched in 1996, not least of all for its innovative controller. Featuring a never-before-or-since seen trident design, and with an analog stick smack bang in the center, it changed what gamers expected from consoles from that day forward. Of course, those controllers are now much worse for wear, and technology has moved on somewhat. The latest development from [Ryzee119] aims to rectify this somewhat. The result of that work is USB64, a tool designed to allow the use of USB controllers on the Nintendo 64. Using a Teensy 4.1, it builds upon earlier work to get the Xbox 360 controller working on the platform. However, the feature set has been greatly expanded, covering almost any use case imaginable. Mempacks are now efficiently emulated, and save files can be backed up to a PC via SD card. Additionally, the GameBoy Transferpak is emulated, meaning data can be transferred between GameBoy ROMs on an SD card and games on the N64. Even the N64 m

Fiber Optics, But… Wetter?

Image
Fiber optics are a great way to transfer huge quantity of data at lightning speed. Thanks to the property of total internal reflection, which allows light to flow through a glass fiber like fluid through a pipe, they can be used for communications at long distances and form the backbone of modern communication networks. However, water is also able to pull off the total internal reflection party trick, and [Mike Kohn] decided to see if it could be used as a communication medium, too. The experimental setup consists of an ATTiny85 that receives signals over its serial port, and outputs the received bits by flashing an LED. This LED is attached to a plastic tube filled with water. On the receiving end, another ATTiny85 reads the voltage level of a photodiode placed in the other end of the tube. When the ADC detects voltage over a certain level, it toggles a pin connected to the serial RX pin. Hooking the setup to a pair of terminals, [Mike] was able to successfully transmit 9600 baud se

Eight Motors Can Sure Pump A Lot Of Water

Image
Once upon a time, 3D printing was more of a curiosity than a powerful tool, with many printing trinkets and tchotchkes rather than anything of real use. However, over the years as technology and techniques have progressed, we now see more application-ready builds. This water pump from [Let’s Print] is a great example. The pump consists of two major pieces – a drive unit, and an impeller. The drive unit consists of a gearbox that combines the power of eight electric motors, driving a single shaft. This is all achieved with striking yellow ABS gears in a black housing. The build video does a great job of explaining how to make the project work with different motors, and how to properly use the bolt adjuster to set the backlash on the gear train. The drive unit is then used to turn a 3D-printed impeller pump which is capable of delivering a great deal of water very quickly. When fired up, the leaky assembly makes an awful racket and a huge mess, but sure as heck shifts a lot of water wh

Electric Window Mechanism Into A Electric Screen Door

Image
In many parts of the world leaving open a door or window is a good way to get a house full of bugs. Remembering to close doors behind them can be surprisingly hard for members of the human race, so the [DuctTape Mechanic] used the components from a car’s electric window to automate his sliding screen door . After the excess pieces were cut of the rail, the motor and rail were mounted on top of the door frame. A long bolt is attached to the moving plate on the rail, which pushes on the pack of the door to close it. After closing, the mechanism returns to its open position, allowing the door to be opened by hand. The motor is controlled by an Arduino running a very simple sketch, which senses if the door is closed with a microswitch and starts a 10 second countdown once opened. Two relays are used to create an H-bridge circuit to drive the motor in both directions. It doesn’t look like there is any provision to detect if it is obstructed. A simple solution could be to make the push rod

Push Pedal for Privacy

Image
Many of us in the secret Hackaday lair use gaming hardware at our work desks because it is reliable and performs well. We are not alone, and maybe you are reading this on your coffee break over a 20-button mouse. We wager that [Thiago Ribeiro de Azeredo] has this mindset because he converted some old analog gaming pedals into teleconferencing tools for his home office. Now that he is not racing to the office, he has to take a lot of computer calls, and he must quickly and covertly mute his microphone when his howling son tries to take the stage. The pedals were gathering dust when he started working from home, but they are unretired for the upgrade. Inside, there is no mystery, just a couple of spring-loaded variable resistors, so he adds an Arduino Nano a couple of 4.7 kΩ resistors to create a voltage divider. The Nano doesn’t have native Human Interface Device (HID) functionality, so a Python script receives the serial port signals and toggles an application bar notification so he

A Good, Hard Look at Pre-Stressed Concrete

Image
From the looks of the average driveway or sidewalk, it may seem as though concrete is just destined to crack. But if concrete is so prone to cracking, how are we able to use it in so many high-stress applications like bridges and skyscrapers? This question came about while I was researching 3D-printed thermite for an article . Thermite is often used in welding railroad tracks, and I linked a video of fresh tracks being welded that had concrete ties. I knew I had to find out how concrete could be made to withstand the pressure of freight trains. On its own, concrete is brittle and has no give to it at all. But that doesn’t mean it isn’t strong. Although concrete has good compression strength, the tensile strength is quite poor. Around the late 1800s, someone thought to fortify spans of concrete with steel reinforcing bars, better known as rebar. Steel can stretch, adding steel bars gives the concrete some tensile strength to go along with its compressive strength. Rebar also allows for

All the Workshops, and the SMD Challenge Happening at Hackaday Remoticon

Image
Last week we announced the first fifteen workshops happening at Hackaday Remoticon , November 6-8, 2020. The weekend really is packed full of these hands-on events, and you’re invited to participate from anywhere in the world. Today we’re excited to announce the rest of the workshops, all of which are currently open for registration. Can we get a few hundred people to show off their soldering skills (or amusing lack of skills) from their own workbench during the event? We think we can, so we’re running the SMD Challenge virtually this year. All of this, plus keynote talks, demos, a show-and-tell, and more make for one wild weekend. Read on! What’s the Deal with Tickets? First things first, get your free Remoticon ticket right now . This lets us know how many people will be hanging around during the weekend for the keynotes, and to watch the soldering challenge and demo tracks. Everyone should have one of these tickets. If you happen to be in a giving mood, consider the “Pay as you

All the Workshops, and the SMD Challenge Happening at Hackaday Remoticon

Image
Last week we announced the first fifteen workshops happening at Hackaday Remoticon , November 6-8, 2020. The weekend really is packed full of these hands-on events, and you’re invited to participate from anywhere in the world. Today we’re excited to announce the rest of the workshops, all of which are currently open for registration. Can we get a few hundred people to show off their soldering skills (or amusing lack of skills) from their own workbench during the event? We think we can, so we’re running the SMD Challenge virtually this year. All of this, plus keynote talks, demos, a show-and-tell, and more make for one wild weekend. Read on! What’s the Deal with Tickets? First things first, get your free Remoticon ticket right now . This lets us know how many people will be hanging around during the weekend for the keynotes, and to watch the soldering challenge and demo tracks. Everyone should have one of these tickets. If you happen to be in a giving mood, consider the “Pay as you

Split Keeb Splits Time Between Desk and Tablet Modes

Image
A keyboard you build yourself should really be made just for you, and meet your specific needs. If you approach it this way, you will likely break ground and inspire others simply because it’s personalized. Such is the case with [_GEIST_]’s highly-customized lily58, designed to work in two modes — on the desk, and mounted on the back of a tablet . The lily58, which is a 58-key split with dual OLED footprints, was just a starting point for this build. For tablet mode, where the keyboard is attached to the back of a tablet with hook-and-loop tape, [_GEIST_] created custom plates that double the thumb keys on the back. We love that there is a PSP thumbstick for mousing on one layer and inputting keystrokes on other layer. But we can’t decide which is our favorite part: the fact that [_GEIST_] threaded it through the bottom of a Kailh Choc switch, or the fact that there’s a Pimoroni Haptic Buzz with a different wave form for each layer. [_GEIST_] also added an acrylic middle plate layer

Linux-Fu: Making AWK a Bit Easier

Image
awk is a kind of Swiss Army knife for text files. However, some of its limitations are often a bit annoying. I’ve used a simple set of functions to make awk a bit better, although I will warn you: it does require GNU extensions to awk . That is, you must use gawk and not other versions. Your system probably maps /usr/bin/awk to something and that something might be gawk . But it could also be mawk or some other flavor. If you use a Debian-based distro, update-alternatives is your friend here. But for the purposes of this post, I’m going to assume you are using gawk . By the end of the post, you’ll see how to use my awk add-on functions to split up a line into fields even when there is no single character to separate all fields. In addition, you’ll be able to refer to the fields using names you decide. You won’t have to remember that $2 is the time field. You’ll say Fields_fields["time"] instead. The Problem awk does a lot of common work for you when you use it to

WiFi Hacking Mr. Coffee

Image
You wake up on a Sunday, roll out of bed, and make your way to the centerpiece of your morning, the magical device that helps you start your day: the coffee machine. You open the companion app, because everything has an app in 2020, and select a large latte with extra froth. As you switch open a browser to check Hackaday, the machine beeps. Then the built-in grinder cranks up to 100, the milk frother begins to whir, and the machine starts spraying water. Frantic, you look at the display for an error code and instead see a message instructing you to send $75 to a bitcoin wallet, lest your $300 machine become a doorstop. Outlandish though it may seem, this has become quite a real possibility, as [Martin Hron] at the Avast Threat Labs demonstrates. In fact, he could probably make your modern macchiato machine do this without setting foot in your house (so long as it comes with a built-in ESP8266, like his did). Building on others’ work that identified the simple commands that control t

Bunnie’s Betrusted Makes First Appearance As Mobile, FPGA-Based SoC Development Kit

Image
Recently, [Bunnie Huang] announced his Precursor project : a spiffy-looking case housing a PCB with two FPGAs, a display, battery and integrated keyboard. For those who have seen [bunnie]’s talk at 36C3 last year, the photos may look very familiar, as it is essentially the same hardware as the ‘Betrusted’ project is intended to use. This also explains the name, with this development kit being a ‘precursor’ to the Betrusted product. In short, it’s a maximally open, verifiable, and trustworthy device. Even the processor is instantiated on an FPGA so you know what’s going on inside the silicon. He has set up a Crowd Supply page for the Precursor project, which provides more details. The board features a Xilinx Spartan 7 (XC7S50) and Lattice iCE40UP5K FPGA, 16 MB SRAM, 128 MB Flash, integrated WiFi (Silicon Labs WF200-based), a physical keyboard and 1100 mAh Lio-Ion battery. The display is a 200 ppi monochrome 336 x 536 px unit, with both the display and keyboard backlit. At this po