Learning Verilog For FPGAs: Hardware At Last!

Getting into FPGA design isn’t a monolithic experience. You have to figure out a toolchain, learn how to think in hardware during the design, and translate that into working Verliog. The end goal is getting your work onto an actual piece of hardware, and that’s what this post is all about.

In the previous pair of installments in this series, you built a simple Verilog demonstration consisting of an adder and a few flip flop-based circuits. The simulations work, so now it is time to put the design into a real FPGA and see if it works in the real world. The FPGA board we’ll use is the Lattice iCEstick, an inexpensive ($22) board that fits into a USB socket.

Like most vendors, Lattice lets you download free tools that will work with the iCEstick. I had planned to use them. I didn’t. If you don’t want to hear me rant about the tools, feel free to skip down to the next heading.

Continue reading “Learning Verilog For FPGAs: Hardware At Last!”

The Race To Develop Technology That Enhances Elder Care

It happens with every generation – we’re born, our parents care for us and nurture us, we grow up, they grow old, and then we switch roles and care for them. Soon it’ll be my turn to be the caregiver to my parents, and I recently got a preview of things to come when my mom fell and busted her ankle. That it wasn’t the classic broken hip was a relief, but even “just” a broken ankle was difficult enough to deal with. I live 40 minutes away from the ‘rents, and while that’s not too bad when the visits are just the weekly dinner at Grammy’s, the time and the miles really start to add up when the visits turn into every other day to make sure Mom’s getting around OK and Dad is eating and sleeping.

I was sorely tempted to hack some kind of solution to give myself a rudimentary telepresence, but I couldn’t think of anything that wouldn’t have either been unacceptably intrusive (think webcams) or difficult to support from an IT perspective. Mom’s pretty handy with the iPad and she Skypes with my brother and his family out in California, but beyond leveraging that I was tapped out for ideas that I could easily deploy and would deliver sufficient value beyond the support burden within the time frame of healing the ankle. Consequently, I spent a lot of time in the car this summer.

This experience got me to thinking about how intergenerational caregiving will change with the rise of pervasive technology. The bad news: we’re still going to get old, and getting old sucks. The good news is, I think technology is going to make things easier for caregivers and elders alike. We have an incredible range of technology experiences among the generations present right now, from my parents who can remember phones without dials and nights spent listening to the radio, to my daughter’s generation that is practically growing up with supercomputers in the palms of their hands. How each generation ages and how it embraces technology as a solution for age-related problems are going to be vastly different.

Continue reading “The Race To Develop Technology That Enhances Elder Care”

You Own Your MRI Brainscan; Do Something Interesting With It

The most complicated and fascinating gadget you will ever own is your brain. Why not pay tribute to this wonder by creating a 3D scale model that you can print yourself? If you have had a full-head MRI scan, it is simple to take this data and create a 3D model that you can print out on any 3D printer. Here’s how to print your brain.

To begin, you are going to need an MRI scan. Unfortunately, the low-field MRI that [Peter Jansen] is working on won’t quite cut it (yet): you’ll have to get the pros to do it. The type of scan also matters, because we want a scan that focusses in on the brain itself, not the bits around it. What type you get depends on what your doctor wants to know, as the radiologist can run a lot of different scans and analysis of the data to show different types of tissue. After looking through the scans that I got, I settled on one that was labelled eB1000i(BRAIN) With and Without Contrast. To a radiologist, that information means a lot, telling you what type of scan it is, and that it was done with a contrast agent, a metal dye that is injected to make water-rich tissues (like my brain) more visible. The number refers to something called the diffusion weighting, which helps the doctor look for swelling that can indicate things like strokes, tumors, etc. There’s a good guide to some of the jargon here.

Continue reading “You Own Your MRI Brainscan; Do Something Interesting With It”

The Problem With Kickstarter: A Lack Of Transparency

Since 2010, over one and a half billion dollars has been transferred from Kickstarter backers to project creators, and with Kickstarter’s 5% cut taken on each dollar collected, that means Kickstarter has had somewhere in the neighborhood of 75 to 80 million dollars in revenue in the last five years. That’s a success by any measure, and as with this huge amount of money, questions must be asked about the transparency of Kickstarter.

This is not a post about a Kickstarter project for an impossible project, a project that breaks the laws of physics, or one that is hyped beyond all reasonable expectations. This is a post about Kickstarter itself, and it’s been a long time coming. In the past, Kickstarter has shown at least some transparency by cancelling projects that are obvious rebrandings of white label goods – a direct violation of their rules. Kickstarter has even cancelled projects that violate the laws of physics, like this wireless charging Bluetooth tag. It’s a start, but Kickstarter has a much larger problem on its plate: the Staff Pick problem.

Continue reading “The Problem With Kickstarter: A Lack Of Transparency”

Hollywood Finally Gets Hacking Right With Mr. Robot

Author’s note: I’m keeping spoilers out of this article, but they will surely show up in the comments.

A few weeks ago I started hearing about a new show on the USA network, Mr. Robot. The synopsis for the show was “Mr. Robot is a psychological thriller that follows a young programmer who works as a cyber-security engineer by day and a vigilante hacker by night.” Yeah, that sounds like another Hollywood crapfest. Cue crazy GUIs and virtual reality flybys representing hacking scenes. After watching the pilot though, I realized I couldn’t have been more wrong. I was hooked for the entire 10 week first season.

elliot-hacksLet’s start with the hacking, which is the whole reason this article is here on Hackaday. Show creator [Sam Esmail] isn’t a hacker himself, but he is tech savvy enough to see how poorly hacking has been portrayed on TV and in the movies. He knew he could do it better. The solution was good consultants, in the form of [Michael Bazzell] and others. The team helped shape the show into a rather realistic portrayal of hacking techniques. Elliot Alderson (Rami Malek), the main character, is the “vigilante” hacker described in the synopsis. Within the first 10 minutes of the pilot, he is turning a child pornographer in to the police. How does he catch the creeper? Tor exit node exploits, of course.

The onion routing protocol is not as anonymous as you think it is. Whoever’s in control of the exit nodes is also in control of the traffic, which makes me the one in control.

This is an accurate description of some of the exploits which have been demonstrated on the tor network. There aren’t any VR hacking scenes to be found either. In fact, several characters watch and make fun of the “flu shot” scene in Hackers. In this show, the command line isn’t hidden, it’s celebrated. We see every command the characters type, from netstat to CAN bus dumps. In one scene, Elliot even fires up a windows virtual machine so he can run DeepSound on his Kali Linux box.

The hacking isn’t all software either. Everyone’s favorite Linux single board computer is featured prominently in the first season. We can’t knock a show where a character looks at another and says “Ok, we all know what a Raspberry Pi is, what’s your point?”

Continue reading “Hollywood Finally Gets Hacking Right With Mr. Robot”

Robots Are Coming For Our Jobs. Just Not All Of Them.

There is a lot to be said for replacing certain kinds of jobs with robots. Most people would agree that replacing physical human labor with automation is a good thing. It’s especially good to automate the dangerous kinds of labor like some facets of factory work. What about automation in fields that require more mental labor, where physical strain isn’t the concern? Is replacing humans really the best course of action? A year ago, a video called Humans Need Not Apply set forth an explanation of how robots will inevitably replace us. But that narrative is a tough sell.

Whether it is even possible depends on the job being automated. It also depends on how far we are able to take technology, and the amount of labor we are willing to offload. Automation has been replacing human workers in assembly and manufacturing industries for years. Even with equipment and upkeep expenses, the tireless nature of robotic workers means dramatically lower overhead for businesses.

Many of the current forms of factory automation are rather dumb. When something goes wrong and their task is compromised, they keep chugging away. That costs time and money. But there are companies out there producing robots that are better on many levels.

May Your Robot Overlords Be Cute and Cuddly

baxter-heroIn 2013, Rethink Robotics started filling orders for a new line called Baxter. They are a class of general purpose robot that can be programmed to do many kinds of manual tasks. Baxter bots have vision, and they can learn how to do a job simply by watching. They don’t need to be programmed in the traditional sense.

Baxter even has a face – a screen that shows different expressions depending on his state. When he’s in the midst of a task, his eyes are cast downward. If something goes wrong, he stops what he’s doing. His cartoon face appears sort of shocked, then sad. He goes into safe mode and waits to be fixed.

Continue reading “Robots Are Coming For Our Jobs. Just Not All Of Them.”

Learning Verilog For FPGAs: Flip Flops

Last time I talked about how to create an adder in Verilog with an eye to putting it into a Lattice iCEstick board. The adder is a combinatorial circuit and didn’t use a clock. This time, we’ll finish the demo design and add two clocked elements: a latch that remembers if the adder has ever generated a carry and also some counters to divide the 12 MHz clock down to a half-second pulse to blink some of the onboard LEDs.

Why Clocks?

Clocks are an important part of practical digital design. Suppose you have a two input AND gate. Then imagine both inputs go from zero to one, which should take the output from zero to one, also. On paper, that seems reasonable, but in real life, the two signals might not arrive at the same time. So there’s some small period of time where the output is “wrong.” For a single gate, this probably isn’t a big deal since the delay is probably minuscule. But the errors will add up and in a more complex circuit it would be easy to get glitches while the inputs to combinatorial gates change with different delays.

Continue reading “Learning Verilog For FPGAs: Flip Flops”