Shop OBEX P1 Docs P2 Docs Learn Events
[Very] Low Cost Logic Analyzer — Parallax Forums

[Very] Low Cost Logic Analyzer

JonnyMacJonnyMac Posts: 9,099
edited 2020-07-03 14:07 in General Discussion
This is one of those devices that was so far below the threshold of pain for a tool purchase that I decided to give it a go.

-- https://www.amazon.com/gp/product/B077LSG5P2

It will work with a nifty piece of cross-platform freeware called PulseView.

-- https://sigrok.org/wiki/Main_Page

I've been putting the combo to work while wringing out my P2 objects. The attached screen shots show work on my SPI and 1-Wire code.



1920 x 1040 - 125K
1920 x 1080 - 192K

Comments

  • jmgjmg Posts: 15,172
    Nicely packaged.

    I think the 24MHz 8 bit Logic Analyzer units pretty much all use the Cypress CY7C68013A, (HS-USB+MCU) and there are many bare modules using this too.
    A nice case is good to have, as it's harder to lose, and harder to damage :)
  • We should be able to do much better with the P2. The Pulseview s/w is cross-platform and the communications protocol between the LA and PC is serial USB. I haven't any time right at the moment to delve into it, but I will.
  • It would be fun to have a background cog spitting out a stream that PulseView understands -- you can't beat the price, and with the builtin decoders it's a nice little tool.
  • JonnyMac wrote: »
    This is one of those devices that was so far below the threshold of pain for a tool purchase that I decided to give it a go.

    -- https://www.amazon.com/gp/product/B077LSG5P2

    It will work with a nifty piece of cross-platform freeware called PulseView.

    -- https://sigrok.org/wiki/Main_Page

    I've been putting the combo to work while wringing out my P2 objects. The attached screen shots show work on my SPI and 1-Wire code.


    Wow! That is a good price. I have a Saleae 8 channel unit that cost more than 10 times that price.

  • It's certainly not going to deliver the same performance as the Saleae, but for students, hobbyists, and experimenters it's a great way to have a tool that will help them learn about and debug their circuits.
  • JonnyMac wrote: »
    It's certainly not going to deliver the same performance as the Saleae, but for students, hobbyists, and experimenters it's a great way to have a tool that will help them learn about and debug their circuits.
    It probably would have been good enough for what I do. As you say, it looks like a good option for students and hobbyists. Good find!

  • There are many on ebay that work off the Saleae name, blatenley. I had bought a knockoff 5 years ago, but I bought a Saleae 16 Pro 3 years ago to keep them running.

    https://www.ebay.com/b/Usb-Logic-Analyzer/97231/bn_7023295615

    I like the fact PulseView is open source and has many decoders. It also supports Saleae so I will give it a try.
  • jmgjmg Posts: 15,172
    edited 2020-07-03 20:45
    .
    We should be able to do much better with the P2. The Pulseview s/w is cross-platform and the communications protocol between the LA and PC is serial USB. I haven't any time right at the moment to delve into it, but I will.

    Yes, P2 can manage faster burst captures, but the Serial USB is not as fast as HS-USB.
    I see examples like this
    https://sigrok.org/wiki/IKALOGIC_ScanaPLUS
    use a RLE scheme, this one has 9 bits of data and 7 bits of length.

    Even that has a high idle bandwidth, so you could use a LEN=0 as a x127 or x100 time-expander, and that drops an idling 200Msps P2 to issuing
    200M/127/2^9 = 3075.78 reports/second, which is an easy 62k baud.

    The UB3 can accept bursts of up to 1536 bytes at 6M.8.n.2, above that, the P2 needs to smooth things to average about half that.
    eg A P2 could capture alternating buffers, of 1ms or 200k/buffer at 200Msps, and the completed buffer would be RLE compressed and sent.

    Somewhere around an average of 250 k Toggles / second 8b wide could be reported, quasi real time, with an edge resolution of 5ns.
    That's enough to capture a Si5351 loading for example, but fully Logic-capturing a P1 loading from EEPROM would be a challenge.
  • JonnyMac wrote: »
    It's certainly not going to deliver the same performance as the Saleae, but for students, hobbyists, and experimenters it's a great way to have a tool that will help them learn about and debug their circuits.

    I've had one of these for several years, it has worked perfectly with the Saleae software. It did rattle when I first got it, opening it revealed a loose ball of solder.

    I paid about $15 for mine. The Saleae hardware is very nice but even at half price ($199) for "Electronic Enthusiasts" it's far too much. When I can buy a dozen of these for the price of one of their units, it becomes a no-brainer.

    I do recognize that Saleae has development expenses for the software. I reached out to them a few years ago about buying a license for the software alone. They weren't interested. I think they're missing an opportunity.
  • Cluso99Cluso99 Posts: 18,069
    wmosscrop wrote: »
    JonnyMac wrote: »
    It's certainly not going to deliver the same performance as the Saleae, but for students, hobbyists, and experimenters it's a great way to have a tool that will help them learn about and debug their circuits.

    I've had one of these for several years, it has worked perfectly with the Saleae software. It did rattle when I first got it, opening it revealed a loose ball of solder.

    I paid about $15 for mine. The Saleae hardware is very nice but even at half price ($199) for "Electronic Enthusiasts" it's far too much. When I can buy a dozen of these for the price of one of their units, it becomes a no-brainer.

    I do recognize that Saleae has development expenses for the software. I reached out to them a few years ago about buying a license for the software alone. They weren't interested. I think they're missing an opportunity.

    The problem is most hobbyists aren't willing to pay a fair price for a commercial product. If some company copies your product and produces it for almost zero margin because they didn't have any development costs, the original company misses out on the volume sales and so takes waaay longer to claw back their development costs. So why would they make their software available on the cheap to support the copied hardware??? Doesn't make commercial sense does it!
  • Cluso99 wrote: »
    wmosscrop wrote: »
    JonnyMac wrote: »
    It's certainly not going to deliver the same performance as the Saleae, but for students, hobbyists, and experimenters it's a great way to have a tool that will help them learn about and debug their circuits.

    I've had one of these for several years, it has worked perfectly with the Saleae software. It did rattle when I first got it, opening it revealed a loose ball of solder.

    I paid about $15 for mine. The Saleae hardware is very nice but even at half price ($199) for "Electronic Enthusiasts" it's far too much. When I can buy a dozen of these for the price of one of their units, it becomes a no-brainer.

    I do recognize that Saleae has development expenses for the software. I reached out to them a few years ago about buying a license for the software alone. They weren't interested. I think they're missing an opportunity.

    The problem is most hobbyists aren't willing to pay a fair price for a commercial product. If some company copies your product and produces it for almost zero margin because they didn't have any development costs, the original company misses out on the volume sales and so takes waaay longer to claw back their development costs. So why would they make their software available on the cheap to support the copied hardware??? Doesn't make commercial sense does it!

    Because now they get no money, when I'm using a open source software product like pulseview
  • Cluso99 wrote: »
    The problem is most hobbyists aren't willing to pay a fair price for a commercial product.
    Aren't willing, or can't justify, for a hobby?
    How much of that $399 (professional) analyzer price is the choice of colors and the fancy case? I don't give a hoot what it looks like as long as it works. Even at $199 (hobbyist) it would be the most expensive piece of equipment purchased for my on-the-cheap hobby. If they had a bare-bones model (no analog, less bandwidth, no test leads, 4 channels, etc.) I'd consider one at about $75 maximum. I just can't justify spending money for features I don't need.
    Cluso99 wrote: »
    So why would they make their software available on the cheap to support the copied hardware???
    They already did.


  • frank freedmanfrank freedman Posts: 1,983
    edited 2020-07-07 22:05
    Selling of licenses would imply support, even if it says no support. To have to support any and all low cost and no name hardware would be a pain and a PR/reputational nightmare. So I get why they would support only a known fully controlled device they make.

    I just watched ebay a bit and jumped on a Discovery2 with all the EE student lab add-ons for under $200 and got a great deal. WaveForms works across multiple platforms. I did buy the scope probe board. Very useful addition. Have not even begun to go deep into the D-2 possibilities yet......

    You could always justify to your SO that a useful tool for your hobby is cheaper than drinking......
  • kwinnkwinn Posts: 8,697
    ......

    You could always justify to your SO that a useful tool for your hobby is cheaper than drinking......

    True, but it doesn't quench a thirst as well ;-)
  • From the "Any ideas for P2 Demo's" Thread
    My idea isn't a code project, it is a tool to demonstrate how using
    the Propeller 2 is easy, and writing Propeller 2 programs can be
    easy too.

    Adapt Sigrok "PulseView" and it's protocol decoders as a free tool
    for students to use with the Propeller 2.

    Combine Sigrok and a flexible standard library.
  • CaptQ and Jon,
    Thanks for alerting us to this very powerful debugging technique.
    From Jon; "It would be fun to have a background cog spitting out a stream that PulseView understands -- you can't beat the price, and with the builtin decoders it's a nice little tool."
    I hope someone can write a note to assist newcomers on implementing PulseView debugging using P1 and P2.
    Perhaps a sample application using a simple, well known cheap device like a DS RTC chip.
  • I used it again to suss out my DMX transmit object while I wait on RS-485 hardware that I can connect to the P2 Eval board. It doesn't have a specific DMX decoder, but the UART decoder can be set to the correct baud rate (250K), and it does detect and display the break condition at the front of every DMX packet. Neat.
    1859 x 726 - 63K
  • JonnyMac wrote: »
    I used it again to suss out my DMX transmit object while I wait on RS-485 hardware that I can connect to the P2 Eval board. It doesn't have a specific DMX decoder, but the UART decoder can be set to the correct baud rate (250K), and it does detect and display the break condition at the front of every DMX packet. Neat.

    Hi, the DMX decoder is called DMX512, maybe that works even better for you.

    As for p2 support - we'd sure be glad to add support for any device but personally I find that emulating common devices is a sane approach as well. In particular, the SUMP protocol and its extensions (e.g. from Pipistrello OLS) are worth a look.

  • Well, I missed that. Still, I was able to see everything that I needed and was confident in my code before connecting to external hardware.
Sign In or Register to comment.