# Beginner's logic analyzer?

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.

-

## locked by Kortuk♦Jul 24 '12 at 7:54

This question exists because it has historical significance, but it is not considered a good, on-topic question for this site, so please do not use it as evidence that you can ask similar questions here. This question and its answers are frozen and cannot be changed. More info: help center.

Shopping questions are closed! –  Leon Heller Oct 4 '12 at 10:22

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. - The OLS appeals. To self-build though, it looks so complex I'd probably need another one to debug it :) – Toby Jaffey Mar 25 '10 at 0:51 @Joby - probably. But it's only$50 assembled, so it's not that big a hit. –  Adam Davis Mar 25 '10 at 3:15
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? –  hhh Jun 5 '10 at 23:00

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. - I haven't seen real RS232 in years, thankfully. The API idea appeals – Toby Jaffey Mar 25 '10 at 0:47 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 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. - Sump-spin-off: seeedstudio.com/depot/… (~43USD) – hhh 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 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). - 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. - 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 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.

-
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. –  Connor Wolf Aug 28 '10 at 5:53

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

-
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

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

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

-
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

For a logic analyser, I highly recommend the Saleae Logic.

There are two versions with 8 or 16 input channels. It can sample upto 24MHz or 50MHz depending on which one you buy. And the software can interpret the signals, allowing you to easily read I2C, SPI, CAN etc.

This has saved me, probably, hundreds of hours of my life. They aren't that expensive, especially considering how much time they save you. And the software works on Windows, Mac and Linux. Data can be exported to a a file, and there's even an API so you can write your own software for it if you really want.

-
Only 18 more for 10 k rep! (I hope you spent the hundreds of saved hours of your life in a useful way :-)) –  stevenvh Oct 4 '12 at 8:09
@stevenvh - No I basically wasted all that time on, er, something else. –  Rocketmagnet Oct 4 '12 at 8:10
looks slick but a bit pricey @ 150. How about Open Logic Analyzer? –  Ankit Oct 4 '12 at 11:45
@Ankit - It's good, but only has a small memory. The Saleae Logic uses the PC memory, and can happily hold 10 billion samples. Cheaper though. It depends how much you value your time. –  Rocketmagnet Oct 4 '12 at 13:19
@Rocketmagnet. On its page it says 16K sample depth @ 8 channels. So that means while using all the 8 channels I can capture 16K clock cycles per channel ? also whats the diff b/w async mode and sync mode? sorry for sounding like such a tool but I'm new to all this! –  Ankit Oct 4 '12 at 16:44

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

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

-

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

-

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

-

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

-
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! –  Toby Jaffey Jun 13 '10 at 20:15
The software is now classed as "mature" and it's all a lot easier. –  Toby Jaffey 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 '12 at 22:17

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. - 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.

-