DIY 6 GHZ Pulse Compression Radar

Conceptually, radar is pretty simple: send out a radio wave and time how long it takes to get back via an echo. However, in practice, there are a number of trade-offs to consider. For example, producing a long pulse has more energy and range, but limits how close you can see and also the system’s ability to resolve objects that are close to each other. Pulse compression uses a long transmission that varies in frequency. Reflected waves can be reconstituted to act more like a short pulse since there is information about the exact timing of the reflected energy. [Henrik] didn’t want to make things too easy, so he decided to build a pulse compression radar that operates at 6 GHz.

In all fairness, [Henrik] is no neophyte when it comes to radar. He’s made several more traditional devices using a continuous wave architecture. However, this type of radar is only found in a few restricted applications due to its inherent limitations. The new system can operate in a continuous wave mode, but can also code pulses using arbitrary waveforms.

Some design choices were made to save money. For example, the transmitter and receiver have limited filtering. In addition, the receiver isn’t a superheterodyne but more of a direct conversion receiver. The signal processing is made much easier by using a Zynq FPGA with a dual-core ARM CPU onboard. These were expensive from normal sources but could be had from online Chinese vendors for about $17. The system could boot Linux, although that’s future work, according to [Henrik].

At 6 GHz, everything is harder. Routing the PCB for DDR3 RAM is also tricky, but you can read how it was done in the original post. To say we were impressed with the work would be an understatement. We bet you will be too.

Radar has come a long way since World War II and is in more places than you might guess. We hate to admit it, but we’d be more likely to buy a ready-made radar module if we needed it.

A Xilinx Zynq Linux FPGA Board For Under $20? The Windfall Of Decommissioned Crypto Mining

One of the exciting trends in hardware availability is the inexorable move of FPGA boards and modules towards affordability. What was once an eye-watering price is now merely an expensive one, and no doubt in years to come will become a commodity. There’s still an affordability gap at the bottom of the market though, so spotting sub-$20 Xilinx Zynq boards on AliExpress that combine a Linux-capable ARM core and an FPGA on the same silicon is definitely something of great interest. A hackerspace community friend of mine ordered one, and yesterday it arrived in the usual anonymous package from China.

There’s a Catch, But It’s Only A Small One

The heftier of the two boards, in all its glory.
The heftier of the two boards, in all its glory.

There are two boards to be found for sale, one featuring the Zynq 7000 and the other the 7010, which the Xilinx product selector tells us both have the same ARM Cortex A9 cores and Artix-7 FPGA tech on board. The 7000 includes a single core with 23k logic cells, and there’s a dual-core with 28k on the 7010. It was the latter that my friend had ordered.

So there’s the good news, but there has to be a catch, right? True, but it’s not an insurmountable one. These aren’t new products, instead they’re the controller boards for an older generation of AntMiner cryptocurrency mining rigs. The components have 2017 date codes, so they’ve spent the last three years hooked up to a brace of ASIC or GPU boards in a mining data centre somewhere. The ever-changing pace of cryptocurrency tech means that they’re now redundant, and we’re the lucky beneficiaries via the surplus market.

Continue reading “A Xilinx Zynq Linux FPGA Board For Under $20? The Windfall Of Decommissioned Crypto Mining”

MIPI CSI-2 Implementation In FPGAs

[Adam Taylor] always has interesting FPGA posts and his latest is no exception. He wanted to use a Zynq for image processing. Makes sense. You can do the high-speed parallel parts in the FPGA fabric and do higher-level processing on the built-in CPU. The problem is, of course, you need to get the video data into the system. [Adam] elected to use the Mobile Industry Processor Interface (MIPI) Camera Serial Interface Issue 2 (CSI-2).

This high-speed serial interface is optimized for data flowing in one direction. The camera, or the master, sends a number of bits (at least one) serially with one clock. To increase speed, data transfers on both rising and falling clock edges. The slave also has a pretty standard I2C master to send commands to the camera which, for the purposes of I2C, is the slave.

Continue reading “MIPI CSI-2 Implementation In FPGAs”

Hackaday Links Column Banner

Hackaday Links: Remember, Remember

Buckle up, buttercup because this is the last weekly Hackaday Links post you’re getting for two weeks. Why? We have a thing next weekend. The Hackaday Superconference is November 11th and 12th (and also the 10th, because there’s a pre-game party), and it’s going to be the best hardware con you’ve ever seen. Don’t have a ticket? Too bad! But we’ll have something for our Internet denizens too.

So, you’re not going to the Hackaday Supercon but you’d like to hang out with like-minded people? GOOD NEWS! Barnes & Noble is having their third annual Mini Maker Faire on November 11th and 12th. Which Barnes & Noble? A lot of them. Our reports tell us this tends to be geared more towards the younger kids, but there are some cool people doing demonstrations. Worst case scenario? You can pick up a copy of 2600.

PoC || GTFO 0x16 is out! Pastor Laphroaig Races The Runtime Relinker And Other True Tales Of Cleverness And Craft! This PDF is a Shell Script That Runs a Python Webserver That Serves a Scala-Based JavaScript Compiler With an HTML5 Hex Viewer; or, Reverse Engineer Your Own Damn Polyglot.

In, ‘Oh, wow, this is going to be stupid’ news, I received an interesting product announcement this week. It’s a USB C power bank with an integrated hand warmer. Just think: you can recharge your phone on the go, warm your hands in the dead of winter, and hope your random battery pack from China doesn’t explode in your pocket. I’m not linking to this because it’s that dumb.

You can now cross-compile ARM with GCC in Visual Studio.

The iPhone X is out, and that means two things. There are far too many YouTube videos of people waiting in line for a phone (and not the good kind), and iFixit did a teardown. This thing is glorious. There are two batteries and a crazy double-milled PCB stack with strange and weird mezzanine connectors. The main board for the iPhone X is completely unrepairable, but it’s a work of engineering art. No word yet on reusing the mini-Kinect in the iPhone X.

Speaking of irreparable computers, the Commodore 64 is not. [Drygol] recently came across a C64 that was apparently the engine controller for a monster truck found on the bottom of the ocean. This thing was trashed, filled with rust and corrosion, and the power button just fell off. Prior to cleaning, [Drygol] soldered a new power button, bowered it up, and it worked. The crappiest C64 was repairable. A bit of cleaning, painting the case, and the installation of an SD2IEC brought this computer back to life, ready for another thirty years of retrogaming and BASIC.

The Zynq from Xilinx is one of the most interesting parts in recent memory. It’s a dual-core ARM Cortex A9 combined with an FPGA with a little more than a million reconfigurable gates. It’s been turned into a synth, a quadcopter, all of British radio, and it’s a Pynq dev board. Now there’s a new part in the Zynq family, an RFSoC that combines the general ARM/FPGA format with some RF wizardry. It’s designed for 5G wireless and radar (!), and one of those parts we can’t wait to see in use.

Do you keep blowing stuff up when attaching a USB to UART adapter to a board? Never fear, because here’s one with galvanic isolation. This is done with a neat digital isolator from Maxim

The Linux FPGA

It was never unusual to have a CPU and an FPGA together. After all, each has different strengths and weaknesses. However, newer devices like the Xilinx Zynq have both a CPU and an FPGA in the same package. That means your design has to span hardware, FPGA configurations, and software. [Mitchell Orsucci] was using a Zynq device on a ArtyZ7-20 board and decided he wanted to use Linux to operate the ARM processor and provide user-space tools to interface with the FPGA and reconfigure it dynamically.

This sounds like a big project and it certainly isn’t trivial by any means. However, the Xilinx tools do a lot of the heavy lifting, including setting up the Linux kernel and a suitable root file system. The bulk of [Mitchell’s] work was in developing user space tools for Linux programs to interact with the FPGA hardware. You can see a short video demo below.

Continue reading “The Linux FPGA”

Open Source Digital Cinema

Years in the making, Apertus has released 25 beta developer kits for AXIOM–their open source digital cinema camera. This isn’t your point-and-shoot digital camera. The original proof of concept from 2013 had a Zynq processor (a Zedboard), a super 35 4K image sensor, and a Nikon F-Mount.

The device today is modular with several options. For example, there is an HDMI output module, but  DisplayPort, 4K HDMI, and USB 3.0 options are in development. You can see several sample videos taken with the device, below.

Continue reading “Open Source Digital Cinema”

MATLAB And Simulink For Zynq

Although we see a lot of MATLAB use in industry and in academia, it isn’t as popular in the hacker community. That’s probably due to the cost. If you’ve ever wondered why companies will pay over $2000 for the base product, you might enjoy the video of a webinar covering using MATLAB and Simulink (a companion product) to program the CPU and FPGA on a Zynq Zedboard. Not interested because of the price? If you aren’t using it for commercial purposes, it isn’t as bad as you think.

MathWorks is one of those companies that likes to market by virtually giving away products to students with the hope that they’ll adopt the same tools when they land jobs in industry. Their flagship product, MATLAB, is well-entrenched in the labs and offices of big corporations. We’ve often thought that MATLAB is sort of what FORTRAN would look like if it had been developed in the last 20 years instead of 60 years ago. It is true that a base license for MATLAB is over $2000. However, if you aren’t using it for commercial purposes, and you can’t score a student license, you can get a personal license of MATLAB for about $150. The extra modules are also similarly reduced in price. If you are a student, the price drops to about $100, although many schools have licenses students can use at no cost to them.

If you watch the video from [Noam Levine], you’ll see you get your money’s worth. If you are wanting to configure the FPGA directly, this isn’t for you. But if you just want to accelerate a program by pushing DSP or other algorithms that can benefit from hardware assistance, MATLAB makes it very easy.

Continue reading “MATLAB And Simulink For Zynq”