DSP Spreadsheet: FIR Filtering

There’s an old saying: Tell me and I forget, teach me and I may remember, involve me and I learn. I’m guilty of this in a big way — I was never much on classroom learning. But if I build something or write some code, I’m more likely to understand how it works and why.

Circuit simulation and software workbooks like Matlab and Jupyter are great for being able to build things without a lot of overhead. But these all have some learning curve and often use clever tricks, abstractions, or library calls to obscure what’s really happening. Sometimes it is easier to build something in a spreadsheet. In fact, I often do little circuit design spreadsheets or even digital design because it forces me to create a mathematical model which, in turn, helps me understand what’s really going on.

In this article I’m going to use Google Sheets — although you could do the same tricks in just about any spreadsheet — to generate some data and apply a finite impulse response (FIR) filter to it. Of course, if you had a spreadsheet of data from an instrument, this same technique would work, too.

Continue reading “DSP Spreadsheet: FIR Filtering”

Review: The RC2014 Micro Single-Board Z80 Retrocomputer

At the end of August I made the trip to Hebden Bridge to give a talk at OSHCamp 2019, a weekend of interesting stuff in the Yorkshire Dales. Instead of a badge, this event gives each attendee an electronic kit provided by a sponsor, and this year’s one was particularly interesting. The RC2014 Micro is the latest iteration of the RC2014 Z80-based retrocomputer, and it’s a single-board computer that strips the RC2014 down to a bare minimum. Time to spend an evening in the hackerspace assembling it, to take a look!

It’s An SBC, But Not As You Know It!

The kit contents
The kit contents

The kit arrives in a very compact heat-sealed anti-static packet, and upon opening was revealed to contain the PCB, a piece of foam carrying the integrated circuits, a few passives, and a very simple getting started and assembly guide. The simplicity of the design becomes obvious from the chip count, there’s the Z80 itself, a 6850 UART, 27C512 ROM, 62256 RAM, 74HCT04 for clock generation, and a 74HCT32 for address decoding. The quick-start is adequate, but there is also a set of more comprehensive online instructions (PDF) available.

I added chip sockets and jumpers to my kit.
I added chip sockets and jumpers to my kit.

Assembly of a through-hole kit is hardly challenging, though this one is about as densely-packed as it’s possible to make a through-hole kit with DIP integrated circuits. As with most through-hole projects, the order you pick is everything: resistors first, then capacitors, reset button and crystal, followed by integrated circuits.

I’m always a bit shy about soldering ICs directly to a circuit board so I supplemented my kit with sockets and jumpers. The jumpers are used to select an FTDI power source and ROM addresses for Grant Searle’s ROM BASIC distribution or Steve Cousins’ SCM 1.0 machine code monitor, and the kit instructions recommended hard-wiring them with cut-off resistor wires. There was no row of pins for the expansion bus because this kit was supplied without the backplane that’s a feature of the larger RC2014 kits, but it did have a set of right-angle pins for an FTDI serial cable.

Your Arduino Doesn’t Have A Development Environment On Board!

Having assembled my RC2014 Mini and given it a visual inspection it was time to power it up and see whether it worked. Installing the jumper for FTDI power, I attached my serial cable and plugged it into a USB port.

A really nice touch is that the Micro has the colours for the serial cable wires on the reverse side of the PCB, taking away the worry of getting it the wrong way round. A quick screen /dev/ttyUSB0 115200 to get a serial terminal from a bash prompt, hit the reset button, and I was rewarded with a BASIC interpreter. My RC2014 Micro worked first time, and I could straight away give it BASIC commands such as PRINT "Hello World!" and be rewarded with the expected output.

The SCM ROM monitor.
The SCM ROM monitor.

So I’ve built a little Z80 single board computer, and with considerably less work than that required for the fully modular version of the RC2014. Its creator Spencer tells me that the Micro was originally designed as a bargain-basement RC2014 as a multibuy for workshops and similar activities, being very similar to his RC2014 mini board but without provision for a Pi Zero terminal and a few other components. It lacks the extra hardware required for a more comprehensive operating system such as CP/M, so I’m left with about as minimal an 8-bit computer as it’s possible to build using parts available in 2019. My question then is this: What can I do with it?

So. What Can I Do With An 8-bit SBC?

My first computer was a Sinclair ZX81, how could it possibly compare this small kit that was a giveaway at a conference? Although the Sinclair included a black-and-white TV display interface, tape backup interface, and keyboard, the core computing power was not too far different in its abilities from this RC2014 Micro — after all, it’s the same processor chip. It was the platform that introduced a much younger me to computing, and straight away I devoured Sinclair BASIC and then went on to write machine code on it. It became a general-purpose calculation and computing scratchpad for repetitive homework due to the ease of BASIC programming, and with my Maplin 8255 I/O port card I was able to use it in the way a modern tech-aware kid might use an Arduino.

The RC2014 Micro is well placed to fill all of those  functions as a BASIC and machine code learning platform on which to get down to the hardware in a way you simply can’t on most modern computers, and though the Arduino represents a far more sensible choice for hardware interfacing there is also an RC2014 backplane and I/O board available for the Micro’s expansion bus should you wish to have a go. Will I use it for these things? It’s certainly much more convenient than its full-sized sibling, so it’s quite likely I’ll be getting my hands dirty with a little bit of Z80 code. It’s astounding how much you can forget in 35 years!

The RC2014 Micro can be bought from Spencer’s Tindie store, with substantial bulk discounts for those workshop customers. If you want the full retrocomputer experience it’s a good choice as it provides about as simple a way into Z80 hardware and software as possible. The cost of simplicity comes in having no non-volatile storage and in lacking the hardware to run CP/M, but it has to be borne in mind that it’s the bottom of the RC2014 range. For comparison you can read our review of the original RC2014, over which we’d say the chief advantage of the Micro is its relative ease of construction.

Get Hands-On At Supercon: Workshop Tickets Now Available

Build something cool and pick up new skills from the workshops at the Hackaday Superconference. But decide right now, workshops will sell out and tickets to the conference itself are nearly gone.

You must have a Superconference ticket in order to purchase a workshop ticket; buy one right now if you haven’t already. We think this is “The Year of the FPGA” and we hope you do too — the badge is based on an FPGA running a RISC-V core and using Open Source tools. Try your hand at FPGA for the first time, hone your skills in the advanced course, or design synthesizer circuits using all of those gates in workshops using the badge itself.

But of course it’s not all about the badge. Jump into quantum computing, learn how to use living hinges in your 3D printed designs, sharpen your low-level C, and sit down at the Scanning Electron Microscope. You can brush up on capacitive touch design, learn about rolling-your-own USB devices, hack together a malicious hardware implant, and get your projects connected to the cloud.

Space in these workshops is limited so make sure to sign up before all the seats are taken. The base price for workshops is $15 (basically a “skin in the game” price to encourage those who register to show up). Any tickets priced above that base is meant to cover the material expense of the workshop. Here’s what we have planned:

Introduction to FPGA Hacking on the Supercon Badge

Piotr Esden-Tempski, Sylvain Munaut, Mike Walters, Sophi Kravitz

In this basic FPGA badge workshop you will get a quick introduction on how to add and program new virtual hardware on your Supercon badge. While a microcontroller always has a fixed set of hardware, the badge has an FPGA that can be reprogrammed and the RISC-V microcontroller inside the FPGA can be changed. In this workshop you will learn how to synthesize an existing IP core to your RISC-V core on the badge and how to use that new added hardware.

(To include as many people as possible, this workshop will be held in a least four identical sessions, please choose one.)

Introduction to Quantum Computing

Kitty Yeung

You’ll learn the basic physics and math concepts needed to get started with quantum computing. There will also be coding so please bring your computers. Instructions on installing Quantum Development Kit will be provided prior to the workshop.

USB Reverse Engineering: Ultra-Low-Cost Edition

Kate Temkin & Mikaela Szekely

Interested in learning more about the inner workings of USB? In this workshop we’ll cover some of the basic, low-level details of USB, then go into detail on how you can interact with (and create!) USB devices as a hobbyist, engineer, or hacker.

SEM Scan Electron Microscope

Adam McCombs

Come get hands-on with an Electron Microscope! In this workshop you will get a chance to get on console on a JEOL JSM-840 Scanning Electron Microscope (SEM) capable of resolving 5nm details. We’ll cover all aspects of running an SEM, be that setup and alignment, sample preparation, or imaging.

Logic Noise: Build Silly Synths in the FPGA Fabric of the Supercon Badge

Elliot Williams

Most FPGA programming classes start off with the basics of logic circuits and how they’re implemented in an FPGA, and then jump 30 years into the present where FPGA design consists of downloading someone else’s IP and ironing out the timing bugs. But not this one! We’re going to stay fully stuck in the past: playing around with the combinatorial logic possibilities inside the Superconference badge’s FPGA fabric to make glitchy musical instruments. If you followed Hackaday’s Logic Noise series, you know how to make crazy noisemakers by abusing silicon on breadboards. In this workshop, we’ll be coding up the silicon and the breadboard. Whoah.

Prototyping Malicious Hardware on the Cheap

Joe FitzPatrick

Alleged multi-million-dollar hardware attacks might catch headlines, but what can we DIY with limited time and budget? We’ll have all the tools you need to prototype, build, and test both the hardware and software of a custom malicious hardware implant.

Advanced FPGA Hacking on the Supercon Badge

Piotr Esden-Tempski

In this advanced FPGA badge workshop you will learn how to develop your own simple FPGA IP core. You already know how to program microcontrollers and how memory-mapped IO works, but you want to go beyond that and develop your own hardware? This class is an introduction on how to write, synthesize and add new hardware periphery on your Supercon badge.

Flexure Lecture: designing springy and bi-stable mechanisms

Amy Qian

Flexures are used all around us to provide simple spring force, constrain degrees-of-freedom of motion, make satisfying clicky sounds, and much more. In this workshop, you’ll learn about basic flexure design, see lots of examples of how you might use them in your future projects, and assemble your very own laser-cut gripper mechanism.

Microcontrollers the Hard Way: Blink Like a Pro

Shawn Hymel (sponsored by Digi-Key)

Registers, timers, and interrupts, oh my! Get those semicolon-punching fingers ready, because we’re writing some C. Arduino, MicroPython, CircuitPython, and MakeCode have been steadily making microcontrollers easier to use and more accessible for a number of years. While ease-of-use is thankfully making embedded systems available to anyone, it means that writing optimized code still remains somewhat of a mystery, buried beneath layers of abstraction. In this workshop, we’ll write a simple fading LED program using registers, timers, and interrupts in an AVR ATtiny microcontroller. This workshop will help you understand some of the low-level, inner workings of microcontrollers and start to write space efficient and computationally quick code.

DK IoT Studio Using the ST NUCLEO-L476RG Sensor Demo

Robert Nelson (sponsored by Digi-Key)

This workshop is about developing an end-to-end solution, from sensor to the cloud. Learn about all the different elements involved in the design, from the sensor, to the processor, to connectivity, cloud storage, and data visualization. Participants will learn to develop an IoT application using the ST NUCLEO-L476RG Development Board. Learn to use Digi-Key IoT Studio design environment to connect easily to the cloud and visualize your data in real time. The new tool has a graphical user interface that allows for easy drag-and-drop functionality. Participants will be able to send data to the cloud thru the development environment and visualize the data.

From Outdated to Outstanding: Easily Add a Touchpad to Your Next Design

TBD (sponsored by Microchip)

What if you could easily make your design more advanced, and let’s face it, cooler? You can, and we can show you how by replacing your old-school pushbuttons with capacitive touch buttons or touchpad! In this workshop, we will practice how to use Microchip’s graphic code generator to produce the code for a simple water-tolerant touchpad. The capacitive touch sensing expert from Microchip will also introduce some tips and tricks of how to lay out a touch button. Come and find out everything you need to know about adding a touch button to your next design!

 

Superconference workshops tend to sell out extremely quickly. Don’t wait to get your ticket.

Ask Hackaday: Does Your Car Need An Internet Killswitch?

Back in the good old days of carburetors and distributors, the game was all about busting door locks and hotwiring the ignition to boost a car. Technology rose up to combat this, you may remember the immobilizer systems that added a chip to the ignition key without which the vehicle could not be started. But alongside antitheft security advances, modern vehicles gained an array of electronic controls covering everything from the entertainment system to steering and brakes. Combine this with Bluetooth, WiFi, and cellular connectivity — it’s unlikely you can purchase a vehicle today without at least one of these built in — and the attack surface has grown far beyond the physical bounds of bumpers and crumple zones surrounding the driver.

Cyberattackers can now compromise vehicles from the comfort of their own homes. This can range from the mundane, like reading location data from the navigation system to more nefarious exploits capable of putting motorists at risk. It raises the question — what can be done to protect these vehicles from unscrupulous types? How can we give the user ultimate control over who has access to the data network that snakes throughout their vehicle? One possible solution I’m looking at today is the addition of internet killswitches.

Continue reading “Ask Hackaday: Does Your Car Need An Internet Killswitch?”

Alternative Photography Hack Chat

Join us on Wednesday, October 2 at noon Pacific for the Alternative Photography Hack Chat with Pierre-Loup Martin!

It seems like the physics of silicon long ago replaced the chemistry of silver as the primary means of creating photographs, to the point where few of us even have film cameras anymore, and home darkrooms are a relic of the deep past. Nobody doubts that the ability to snap a quick photo or even to create a work of photographic genius with a tiny device that fits in your pocket is a wonder of the world, but still, digital photographs can lack some of the soul of film photography.

Recapturing the look of old school photography is a passion for a relatively small group of dedicated photographers, who ply their craft with equipment and chemistries that haven’t been in widespread use for a hundred years. The tools of this specialty trade are hard to come by commercially, so practitioners of alternate photographic processes are by definition hackers, making current equipment bend to the old ways. Pierre-Loup is one such artist, working with collodion plateshacked large-format cameras, pinholes camera, and chemicals and processes galore –  anything that lets him capture a unique image. His photographs are eerie, with analog imperfections that Photoshop would have a hard time creating.

Join us as Pierre-Loup takes us on a tour through the world of alternative photography. We’ll look at the different chemistries used in alternative photography, the reasons why anyone would want to try it, and the equipment needed to pull it off. Photography was always a hack, until it wasn’t; Pierre-Loup will show us how he’s trying to put some soul back into it.

join-hack-chatOur Hack Chats are live community events in the Hackaday.io Hack Chat group messaging. This week we’ll be sitting down on Wednesday, October 2 at 12:00 PM Pacific time. If time zones have got you down, we have a handy time zone converter.

Click that speech bubble to the right, and you’ll be taken directly to the Hack Chat group on Hackaday.io. You don’t have to wait until Wednesday; join whenever you want and you can see what the community is talking about.

Here’s Your First Look At The Talks Of The 2019 Hackaday Superconference

The ultimate hardware conference returns this November as the Hackaday Superconference springs to life in Pasadena, California. It is our pleasure to announce the first set of accepted speakers who have confirmed their appearances at Supercon. This reveal is only the tip of the iceberg, so keep your eye on Hackaday as we continue to reveal the rest of the exemplary talks and workshops that make up this year’s conference.

However, don’t wait to get your ticket. Yes, we sell out every year, but the pace of ticket sales has been much faster this year and soon they will all be gone. Don’t miss out, as you can see from the small sample below, Supercon will be packed with amazing people and you need to be one of them!

The Talks (Part One of Many)


  • Matthias Balwierz aka bitluni

    Multimedia Fun with the Esp32

    The ESP32 microcontroller is a beast! Everyone knows that already. Composite video and VGA are common now. But a few years ago these capabilities weren’t obvious. This talk will recap the journey of squeezing out every possible bit of performance to generate audio and video with the least amount of additional components. It’s a detail-packed discussion of the projects I’ve documented on my YouTube channel bitluni’s lab.


  • Sarah Kaiser

    Hacking Quantum Key Distribution Hardware or How I Learned to Stop Worrying and Burn Things with Lasers

    Quantum devices are the next big addition to the general computing and technology landscape. However, just like classical hardware, quantum hardware can be hacked. I will share some of my (successful) attempts to break the security of quantum key distribution hardware with the biggest laser I could find!


  • Mohit Bhoite

    Building Free-Formed Circuit Sculptures

    I’ll be talking about building free-formed circuit sculptures, and how anyone with the right tools can get involved in this art form. We’ll explore ways to make these sculptures interact with the environment around them or with the user.


  • Thea Flowers

    Creating a Sega-Inspired Hardware Synthesizer from the Ground Up.

    What makes the Sega Genesis sound chip unique? I’ll share some short history about why the Genesis happened at a very specific moment to have this sort of chip. I’ll talk about designing and building a synthesizer around it and the challenges I encountered by trying to do this as my first hardware project.


  • Helen Leigh

    Sound Hacking and Music Technologies

    I will explore the ways in which music is influenced by making and hacking, including a whistle-stop tour of some key points in music hacking history. This starts with 1940s Musique Concrete and Daphne Oram’s work on early electronic music at the BBC, and blossoms into the strange and wonderful projects coming out of the modern music hacker scenes, including a pipe organ made of Furbies, a sound art marble run, robotic music machines and singing plants.


  • Adam Zeloof

    Thermodynamics for Electrical Engineers: Why Did My Board Melt (And How Can I Prevent It)?

    In this presentation I will provide circuit designers with the foundation they need to consider thermal factors in their designs. Heat transfers through on-board components and knowing how to characterize this means we can choose the right heat sink for any application. Learn about free simulation tools that can be used to perform these analyses and boost your knowledge of thermodynamics and heat transfer (although those who are already familiar with the subject will find some utility in it as well).


  • Samy Kamkar

    FPGA Glitching & Side Channel Attacks

    I will explore some of the incredible work that has been done by researchers, academics, governments, and the nefarious in the realm of side channel analysis. We’ll inspect attacks that were once secret and costly, but now accessible to all of us using low cost hardware such as FPGAs. We’ll learn how to intentionally induce simple yet powerful faults in modern systems such as microcontrollers.


  • Daniel Samarin

    Debugging Electronics: You Can’t Handle the Ground Truth!

    Root-causing quickly is all about having the right tools, having the right infrastructure in place, and knowing how to use them. Is it the firmware, the circuit, a bad crimp, or backlash in the gears? I will outline strategies for finding out what the issue is, so that you can focus on fixing the right thing.

You Miss It, You’ll Miss It

If there’s any way you can make it to Supercon in person, you should. One of the two talk stages will be live-streamed, and the other recorded, but there is no substitute for hanging out with these eight awesome people, plus five hundred of our closest friends. Anyone who’s made it to the conference before can tell you that the intimate atmosphere is packed with opportunities to meet new people, connect with those you’ve only seen on the internet, and learn about the newest developments happening in the world of hardware creation. See you in November!

Hackaday Podcast 037: Two Flavors Of Robot Dog, Hacks That Start As Fitness Trackers, Clocks That Wound Themselves, And Helicopter Chainsaws

Hackaday Editors Mike Szczys and Elliot Williams take a look at the latest hacks from the past week. We keep seeing awesome stuff and find ourselves wanting to buy cheap welders, thermal camera sensors, and CNC parts. There was a meeting of the dog-shaped robots at ICRA and at least one of them has super-fluid movements. We dish on 3D printed meat, locking up the smartphones, asynchronous C routines, and synchronized clocks.

Take a look at the links below if you want to follow along, and as always tell us what you think about this episode in the comments!

Take a look at the links below if you want to follow along, and as always, tell us what you think about this episode in the comments!

Direct download (60 MB or so.)

Continue reading “Hackaday Podcast 037: Two Flavors Of Robot Dog, Hacks That Start As Fitness Trackers, Clocks That Wound Themselves, And Helicopter Chainsaws”