DIY logic analyzers

In Internet there seems to be many plans for DIY logic analyzers:
Open source logic analyzer
OpenBench Logic Sniffer
Openbench Logic Sniffer
SUMP FPGA Based Logic Analyzer
FLASH – PLAICE: Programmer, Logic Analyzer and In-Circuit Emulator Project
A logic analyzer using the PC’s parallel port
A logic analyzer using the PC’s parallel port
MiniLA – logic analyzer SW & HW
The “Sump” Logic Analyzer (video demo)
Prototype: Openbench Logic Sniffer logic analyzer

There seems to be many open hardware projects, but what is lacking is good software for them. Some logic analyzer use SUMP PC Client and there is also Java Logic Analyzer Client project (jlac).

I would like to see on this Open Source world is some kind of common format logic analyzer data presentation and maybe common API for accessing the information. In this way it would be easy to write all kinds of applications that decode data and hardware that captures the data independently. It would be easy to integrate different things easily. This would benefit everyone. I would want something like what Wireshark did for network traffic analyzing.

First I though maybe I need to start some of my own code to start this if there is nothing else. For presenting logic data with timestamps one format that come to my mind was Comtrade. Comtrade is a standard for common format for electric power systems transient data exchange. It allows storing many channels of time stamped analogue and digital data. The data is normally in CSV format, so it would be easy to use. There are some standard sample rates but maybe we could use also other rates. Time stamping work at least to microsecond resolution. There are many Comtrade viewing programs, both free and commercial.

Another project that looked interesting was Comedi. The Comedi project develops open-source drivers, tools, and libraries for data acquisition. Comedi is a free software project that develops drivers, tools, and libraries for various forms of data acquisition: reading and writing of analog signals; reading and writing of digital inputs/outputs; pulse and frequency counting; pulse generation; reading encoders; etc. Comedi is a collection of drivers for a variety of common data acquisition plug-in boards in Linux.

I did not go to the trouble of writing my own code for a while. Then about half year ago I saw announcement of Sigrok: An Open Source Logic Analyzer. The sigrok project aims at creating a portable, cross-platform, Free/Libre/Open-Source signal analysis software suite (client) that supports various device types. This was what I was thinking of the end results should be. I start to follow how this project will succeed in their aims. Looks interesting at this point.

15 Comments

  1. ADT San Antonio says:

    I’ve read some just right stuff here. Definitely price bookmarking for revisiting. I surprise how much attempt you put to create such a excellent informative web site.

    Reply
  2. Tomi Engdahl says:

    Turning the Stellaris Launchpad into a logic analyzer
    http://hackaday.com/2013/01/27/turning-the-stellaris-launchpad-into-a-logic-analyzer/

    If you have a Stellaris Launchpad sitting around, have a go at using it as a logic analyzer

    This build turns the Launchpad into a 10 MHz, 8-channel logic analyzer with a 16 kB buffer comparable with just about every piece of software thanks to the SUMP protocol.

    Reply
  3. Open Logic Sniffer software and hardware « Tomi Engdahl’s ePanorama blog says:

    [...] (I have not yet tested it with real hardware). The software seem to be considerably getter than some other free logic analyzer software I have checked over years. Logic Sniffer Java client is worth to check out if you are looking for [...]

    Reply
  4. Tomi Engdahl says:

    Comtrade (IEEE Std C37.111-1999) is a common format for electric power systems transient data exchange. It allows storing many channels of time stamped analogue and digital data.

    The time stamp has a base unit of microseconds. The elapsed time from the Þrst data sample in a data Þle to the sample marked by any time stamp Þeld in that data Þle is the product of the time stamp for that data sample and the time multiplier in the confguration file (timestamp ´ * timemult).

    timemult is the multiplication factor for the time differential (timestamp). It is real numeric value. Typically it is integer (for example 1000 for timestamps in milliseconds).

    That timemult can also be in standard floating point notation, meaning more accurate than microsecond time stamps are possible (for example nanoseconds with value 0.001)

    Reply
  5. boost alexa, like, view says:

    I have been browsing on-line more than three hours lately, but I never discovered any attention-grabbing article like yours. It’s lovely price sufficient for me. In my opinion, if all site owners and bloggers made good content material as you probably did, the web can be a lot more helpful than ever before.

    Reply
  6. Tomi Engdahl says:

    ProduinoCY7C68013A-56 USB Logic Analyzer Development Board for Arduino – Blue + Black
    http://dx.com/p/produinocy7c68013a-56-usb-logic-analyzer-development-board-for-arduino-blue-black-290156#.UuYFbLSxVaQ

    CY7C68013A-56 chipset: Low-power version; Enhanced 51-core; 16KB program data areas; 48MHz frequency

    All GPIO are lead out through 2.4mm pin header
    Achieve logic analyzer functions with certain firmware

    Reply
  7. Tomi Engdahl says:

    Quite interesting hack:

    Turning An Analog Scope Into A Logic Analyzer
    http://hackaday.com/2014/04/09/turning-an-analog-scope-into-a-logic-analyzer/

    Reply
  8. Tomi Engdahl says:

    mishmash1 – sdramThing3.0 Logic Analyzer
    http://hackaday.io/project/4159-mishmash1-sdramthing30-logic-analyzer

    An AVR, a 128MB SDRAM DIMM, an old laptop LCD, and 3 TTL chips make for a 16MS/s multi-channel logic-analyzer interface for an analog ‘scope

    Reply
  9. Tomi Engdahl says:

    SDRAM Logic Analyzer Uses An AVR And A Dirty Trick
    http://hackaday.com/2016/03/15/sdram-logic-analyzer-uses-an-avr-and-a-dirty-trick/

    We often see “logic analyzer” projects which are little more than microcontrollers reading data as fast as they can, sending it to a PC, and then plotting the results. Depending on how fast the microcontroller is, these projects range from adequate to not very useful.

    At first glance, [esot.eric’s] logic analyzer project has an AVR in it, so it ought to be on the low end of the scale. Then you look at the specs: 32 channels at 30 megasamples per second. How does that work with an AVR in it?

    The answer lies in the selection of components. The analyzer uses a 128MB SDRAM DIMM (like an older PC might use for main memory). That makes sense; the Arduino can’t store much data internally. However, it isn’t the storage capacity that makes this choice critical. It seems [esot.eric] has a way to make the RAM “free run”.

    The idea is to use the Arduino (or other host microcontroller) to set up the memory. Some of the memory’s output bits feedback to the address and data lines. Then the microcontroller steps aside and the SDRAM clocks samples into its memory by itself at the prevailing clock rate for the memory.

    sdramThing4.5 “Logic Analyzer”
    https://hackaday.io/project/4159-sdramthing45-logic-analyzer

    An AVR, 128MB SDRAM DIMM, old laptop LCD, and a handful of TTL chips — 30+MS/s 32-channel logic-analyzer interface for an analog ‘scope

    sdramThing4.5 makes it possible to free-run the SDRAM at speeds far-greater than the processor (looking toward 133MHz!).
    Once it’s loaded with the initial set of commands, it can be physically disconnected from the MCU and continue doing its thing.

    This sample/repeat process is made-possible by sdramThing’s “Free-Running” mode. This mode takes advantage of the SDRAM’s synchronous nature to allow it to control itself.

    It’s entirely plausible, with a bit of work, to get sampling up to (and exceeding) the SDRAM’s rated clock-speed of 133MHz (133MS/s). But currently, I’ll be happy to get it working at 40MS/s, as my attempts at decoupling the SDRAM clock from the AVR clock have been slow-in-progress.

    Reply
  10. Tomi Engdahl says:

    Hackaday Prize Entry: The Cheapest Logic Analyzer
    http://hackaday.com/2016/07/19/hackaday-prize-entry-the-cheapest-logic-analyzer/

    There are piles of old 128MB and 256MB sticks of RAM sitting around in supply closets and in parts bins. For his Hackaday Prize project, [esot.eric] is turning these obsolete sticks of RAM into something useful – a big, fast logic analyzer. It’s cheap, and simple enough that it can be built on a breadboard.

    This project is based on [esot.eric]’s earlier AVR logic analyzer project that used a slow AVR to measure 32 channels of logic at 30 megasamples per second.

    sdramThingZero – 133MS/s 32-bit Logic Analyzer
    https://hackaday.io/project/10119-sdramthingzero-133mss-32-bit-logic-analyzer

    Add an old SDRAM DIMM to your SBC for a 133MS/s 32-bit Logic Analyzer, add ADCs for a Scope…

    Reply
  11. Tomi Engdahl says:

    When You Need a Scope, You Need a Scope
    http://hackaday.com/2016/08/04/when-you-need-a-scope-you-need-a-scope/

    Sometimes there’s just no substitute for the right diagnostic tool. [Ankit] was trying to port some I2C code from an Arduino platform to an ARM chip. When the latter code wasn’t working, he got clever and wrote a small sketch for the Arduino which would echo each byte that came across I2C out to the serial line. The bytes all looked right, yet the OLED still wasn’t working.

    ankitdaf/i2c_snoop.ino
    Created 15 days ago
    https://gist.github.com/ankitdaf/ba7b1326f4d909763effa27201704115

    Time to bring out the right tool for the job: a logic analyzer or oscilloscope. Once he did that, the problem was obvious

    Reply
  12. Tomi Engdahl says:

    sdramThingZero – 133MS/s 32-bit Logic Analyzer
    https://hackaday.io/project/10119-sdramthingzero-133mss-32-bit-logic-analyzer

    Add an old SDRAM DIMM to your SBC for a 133MS/s 32-bit Logic Analyzer, add ADCs for a Scope…

    Yes, it likely seems a bit ridiculous to add an old SDRAM DIMM to today’s single-board computers with their whopping e.g. 512MB of onboard DDR2, but believe it or not THERE’S GOOD REASON!!!

    Turn your SBC into a logic analyzer, data-logger, or an oscilloscope… You’ll see! Read the Details!

    This is a re-envisioning of its “father”, sdramThing4.5:
    https://hackaday.io/project/4159-sdramthing45-logic-analyzer

    This new revision is more of a peripheral (rather than a complete system) which can be attached to microcontrollers, single-board computers, or even a PC’s parallel-port.

    The UI, datalogger, etc. can then be programmed in any language available on the host.

    Reply
  13. Tomi Engdahl says:

    An Open Source 96 MSPS Logic Analyzer For $22
    http://hackaday.com/2016/10/26/an-open-source-96-msps-logic-analyzer-for-22/

    If you are in the market for an inexpensive USB logic analyser you have a several choices, but few of them deliver much in the way of performance. There are kits from China for a few dollars using microcontrollers at their heart, but they fail to deliver significant sample rates. If you require more, you will have to pay for it.

    It is therefore rather interesting to see [kevinhub88]’s SUMP2 project, an open source logic analyser with a claimed 96 MSPS sample rate using an off-the-shelf Lattice iCEstick FPGA evaluation board that only costs about $20. It talks to a host computer via USB using the established SUMP protocol, so its software front-end comes from the sump.org logic analyser project.

    Reply
  14. Tomi Engdahl says:

    $22 FPGA-Based Logic Analyzer Packs a Punch
    http://www.eetimes.com/author.asp?section_id=216&doc_id=1330689&

    The FPGA-based SUMP2 logic analyzer is useful for large FPGA development, but is also able to scale way down to work on a $22 Lattice iCEstick FPGA+USB board.

    Kevin’s latest project is the open source SUMP2 Logic Analyzer — an FPGA-based tool that is useful for large FPGA development, but that is also able to scale way down to work on a $22 Lattice iCEstick FPGA+USB board.

    The SUMP2 Logic Analyzer offers 96 MSPS at 16-bits LVCMOS with real-time hardware compression, and the SUMP2 section on the Black Mesa Labs website provides everything you need to get you up and running (apart from the $22 Lattice iCEstick).

    So, a big thanks to Kevin for making the SUMP2 available to the community.

    SUMP2 – 96 MSPS Logic Analyzer for $22
    https://blackmesalabs.wordpress.com/2016/10/24/sump2-96-msps-logic-analyzer-for-22/

    Reply
  15. Tomi Engdahl says:

    sdramThingZero – 133MS/s 32-bit Logic Analyzer
    Add an old SDRAM DIMM to your SBC for a 133MS/s 32-bit Logic Analyzer, add ADCs for a Scope…
    https://hackaday.io/project/10119-sdramthingzero-133mss-32-bit-logic-analyzer

    Yes, it likely seems a bit ridiculous to add an old SDRAM DIMM to today’s single-board computers with their whopping e.g. 512MB of onboard DDR2, but believe it or not THERE’S GOOD REASON!!!

    Turn your SBC into a logic analyzer, data-logger, or an oscilloscope… You’ll see! Read the Details!

    This is a re-envisioning of its “father”, sdramThing4.5:
    https://hackaday.io/project/4159-sdramthing45-logic-analyzer

    Reply

Leave a Comment

Your email address will not be published. Required fields are marked *

*

*