Can anyone recommend a low cost or DIY buildable logic analyzer?

Mostly, it would be for debugging serial protocols (SPI, I2C, RS232) at low voltages.

link|improve this question
feedback

15 Answers

up vote 32 down vote accepted

The Bus Pirate is probably your best bet - open source software and hardware, easy to build if you don't mind SMT, cheap if you buy it assembled ($30 shipped worldwide).

http://code.google.com/p/the-bus-pirate/

Lots of variants, with a lot of people supporting it:

http://www.google.com/search?q=bus+pirate

The bus pirate is mostly useful for serial work, though it can do some small amount of simple logic analyzer functions. If you need to do a lot of logic analyzer work, this product looks very nice:

http://dangerousprototypes.com/open-logic-sniffer/

Open source, but has very good capabilities. Very inexpensive, though.

link|improve this answer
The OLS appeals. To self-build though, it looks so complex I'd probably need another one to debug it :) – Joby Taffey Mar 25 '10 at 0:51
2  
@Joby - probably. But it's only $50 assembled, so it's not that big a hit. – Adam Davis Mar 25 '10 at 3:15
2  
Oh, man, that's cool. I didn't even know I needed one until now! And it works as an AVR programmer, too. – Clinton Blackmore Mar 29 '10 at 18:31
Open source? Where can I find the schematic PCB? – 0x2A31 Jun 5 '10 at 23:00
3  
feedback

Not sure if this matches your definition of low-cost but the Saleae Logic Pod is around $150. Eight channels and works well for decoding SPI and I2C. Haven't tried any other protocols.

The software is OK but the interface seems a little strange compared to an oscilloscope or real logic analyzer. On the website there was mention of an API definition so that you could write your software interface or scripted data collection. I haven't had time to look into this any further.

Not sure if the levels go negative for true RS232 work.

link|improve this answer
I haven't seen real RS232 in years, thankfully. The API idea appeals – Joby Taffey Mar 25 '10 at 0:47
1  
Do you mean the Saleae Logic Pod? saleae.com/logic – Coleman Jun 15 '10 at 17:54
That's the one. Sorry about the misspelling. Since March I have used the pod quite a bit to debug a uSD library. The device is worth the money but the software interface is awkward. I am not sure if other devices in the price range are any better. If I used this tool a lot I would look into writing my own interface. – jluciani Jun 16 '10 at 2:30
I use it almost daily for working with half-duplex RS-485. Personally, I like the interface compared to others in the price range. A different scope I've used is the USBee line of devices, but they're pricier for similar functionality. FWIW, they've migrated to more of a Saleae interface recently. – Coleman Jun 16 '10 at 15:06
The device is not RS232 level compatible. It uses 3.3V internally, but is 5V compatible so it'll work with most digital circuits. Not sure how far down it can go though, it would be nice to use it with 2.5V or even 1.8V stuff too. – trygvis Mar 21 '11 at 14:26
show 2 more comments
feedback

There is the Sump.org logic analyser, using a low-cost ($99) Digilent Spartan 3 board.

For slow stuff like I2C and SPI, you could use a Microchip PICkit 2 ($35). It comes with three-channel logic analyser software.

link|improve this answer
2  
Sump-spin-off: seeedstudio.com/depot/… (~43USD) – 0x2A31 Jun 18 '10 at 15:17
is sump.org outdated? There haven't been any recent updates. I'm wondering because I have the Spartan 3E starter board and would like to get some use out of it, and sump seems like a good option. But the port for the 3E hasn't been updated in a couple of years. EDIT -- ok, google is my friend: skippari.net/projects/?p=187 – Dave Jan 4 '11 at 14:31
feedback

As far as actual logic analyzers go (versus something like the Bus Pirate), I wrote a basic comparison of (relatively) inexpensive ones:

Comparison of PC-based logic analyzers

One thing to note about sampling speed, a rule of thumb is you generally need at least 4x your data rate in order to get an accurate reading, and up to 10x is better. So if you want to monitor a 8MHz signal (which you can easily generate from an inexpensive AVR in SPI for example), you'd want a 32-80MHz sampling rate analyzer. This only applies when capturing in 'async' mode. If you are capturing in 'synchronous' mode (eg with a clock signal), then your sampling rate only needs to match the rate of the clock signal. So for example in that case, 8MHz synchronous sampling would be enough to capture a 8MHz SPI signal (since it has a dedicated clock signal).

link|improve this answer
feedback

I stumbled across this at www.seeedstudio.com

Open Workbench Logic Sniffer (pre-order only)

I really don't know anything about it beyond their description. It might be worth looking into.

link|improve this answer
1  
It's based on the sump.org design I mentioned earlier. – Leon Heller Mar 28 '10 at 13:02
I've got one of these. The only real complaint I have is that you have to be really careful with your settings - if you set it up incorrectly (the software has NO idea what the limits on the board's buffer really are), you get garbage results with no warning. Otherwise it works like a charm. – Michael Kohne Dec 23 '10 at 2:28
feedback

A little more expensive ($389) than the ones mentioned so far, but very capable:

Logicport by Intronix

34 channels Adjustable logic threshold (+6V to -6V) I2C, SPI, RS232 and CAN interpreters

plus the software can be run in demo mode before you buy it.

link|improve this answer
1  
I have one, they're excellent. Also, they have hardware compression, so you can get ~30 sec of sampling on two data lines, if the bus is quiescent for a while between packets. – Fake Name Aug 28 '10 at 5:53
feedback

The pickit2 has a simple logic analyzer (as well as a programmer for pic uC's and a UART tool)

link|improve this answer
Check out pk2-la if you're running linux + PICkit2 – Marty Aug 26 '10 at 19:41
This is true, but there are some quite nasty limits: It has only 3 (?) available channels and can only capture a small amount of data. The pickit 2 however is a nice tool overall, even it is only a crappy logic analyzer. – 0x6d64 Nov 25 '11 at 8:53
feedback

Scanalogic 2 is, well, less expensive than many other logic analyzer, but it's worth the 59€ i think

http://www.ikalogic.com/scanalogic2/

link|improve this answer
Absolutely. I really get a lot of use out of mine. Much easier to use for beginners than the Bus Pirate. – tronixstuff Oct 10 '10 at 7:35
feedback

The scanalogic is a simple but nice 4 channel logic analyzer.

http://www.ikalogic.com/scanalogic_home.php

link|improve this answer
feedback

What is also interesting is the open sourcing of the software to run the devices.

The bus pirate is on the list and coming along if you look at the commits for SiGrok

http://sigrok.org/wiki/Main_Page

link|improve this answer
feedback

I use a BusBee. The hardware/software is very simple to use and it can log a lot of data. Works on many different protocols, but I typically use it for I2C.

http://www.usbee.com/busbee.html

link|improve this answer
feedback

Open Workbench Logic Sniffer

I bought it and it works great, I'm not sure if they are still preorder but I think it is exactly what you're asking about. :D

link|improve this answer
I bought two, neither worked. Though, there's now a new firmware which uses SPI rather than rs232-ttl from the FPGA to PIC. But, the support from the forums is excellent. Not for the faint hearted! – Joby Taffey Jun 13 '10 at 20:15
The software is now classed as "mature" and it's all a lot easier. – Joby Taffey Oct 10 '10 at 0:10
I have both the Open Workbench Logic Sniffer and the Saleae Logic16. The Saleae is a better choice for most microcontroller development work. The Saleae streams data over USB rather than storing it. This means there is no limit on sample depth. The OWLS never seems to show enough data, although careful triggering can usually show events of interest. Saleae is less hassle to use, for sure. OWLS is a better choice for 50-150MHz signals, or sampling synchronously with an external clock. – markrages Jan 17 at 22:17
feedback

I use the logic analyser from saleae (http://www.saleae.com/home/). It's very good and works fine. It's priced at US$ 149.00.

link|improve this answer
feedback

This answer is rather late for the original question, but a new product, and an excellent little device is the Gabotronics xminilab, ref:

http://www.gabotronics.com/development-boards/xmega-xminilab.htm

It is an analogue, two channel 'scope, a waveform generator, and an eight channel logic analyser/protocol sniffer (it shows not only the waveforms, but also the hex values on the channels). Sample rate is 2 MSPS, so it is only good for about 200kHz, but its cost at about $69 means you get all these features in one cheap package.

I have no connection with the firm except as the owner of a couple of the xminilab's smaller brother; the xprotolab, claimed to be the world's smallest ..., with a tiny screen, a novelty and fun, but you need the bigger screen of the xminilab for serious work.

link|improve this answer
feedback

Please also take a look at our LA-08, an 8-channel logic analyzer with I2C master and I2C SPI UART decoders. LA-08 is priced at $99. http://www.ideofy.com/la-08_en

LA-08 (comparing to similar products) has the following features:
(1) Faster sampling rate. LA-08 can do 30MSPS @ 8-channel, 60MSPS and 96MSPS @ 4 and 2-channel, respectively. Faster sampling rates allow you to measure time more accurately, as well as to deal with signals of higher speed.
(2) Wide input voltage range. LA-08 takes input signal from +16V down to -0.7V, and remains undamaged even if -5V is applied to input pin(s).
(3) I2C Controller. LA-08's built-in I2C controller allows you to send commands to i2c slaves. This is useful when debugging I2C related issues.

With the low price and the adquate features, we consider LA-08 fit the beginner's needs for a logic analyzer.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.