Debugging USART using Saleae logic probe


Closed Thread
Results 1 to 15 of 15

Hybrid View

  1. #1
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172


    Did you find this post helpful? Yes | No

    Default Re: Debugging USART using Saleae logic probe

    I must have several obsolete remotes lying around in the basement. What exactly do I want to scavenge out of them? Is it only that clear LED-looking-thing that is necessary?

    Robert

  2. #2


    Did you find this post helpful? Yes | No

    Default Re: Debugging USART using Saleae logic probe

    Robert:

    Any of the old remotes would probably work to experiment with for a transmitter. They would all have the related protocol for whatever device they were controlling, but that wouldn't matter, if you just want to prove out the method you use to capture the output on the Saleae. Yes, the LED is part of the transmitter.

    You need a IR receiver as well. Some folks just use a photo transistor, I would recommend a good IR receiver, since they have additional features built in. I am using a TSSOP 32338, but there are a multitude of receivers available.

    Here are a couple of good links on this subject:


    http://learn.adafruit.com/ir-sensor

    http://www.robotshop.com/blog/en/bui...e-decoder-4254

    http://www.pic-tronics.com/IR-Transm...d-Receiver.php

    If you want, I can post a couple of screen shots of my results, first a sample of an actual transmission from a TV remote, and then one of the duplicates using a PIC to output the pattern.

    Ken

  3. #3
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172


    Did you find this post helpful? Yes | No

    Default Re: Debugging USART using Saleae logic probe

    10 years later and I'm still loving my basic Saleae logic probe. It was invaluable to help me figure out what's going on with these encoders.

    - noticed jitter on 2nd circuit on chinesium double encoder when I move other shaft,
    - spent all day going through my code, turned out the 2nd channel is also dropping pulses.

    I can't imagine life without it (top pair at PIC, bottom at encoder pins).

    Name:  Missing pulses.png
Views: 2182
Size:  62.8 KB


    Pulses are inversed because I use a 74HC14 after Bourns debounce to clear up signal.
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  4. #4
    Join Date
    May 2013
    Location
    australia
    Posts
    2,656


    Did you find this post helpful? Yes | No

    Default Re: Debugging USART using Saleae logic probe

    the saleae can just as easily miss pulses as anything else if the sample rate is too low, re's need a high rate i use 12-16 Ms/S to be sure
    Warning I'm not a teacher

  5. #5
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172


    Did you find this post helpful? Yes | No

    Default Re: Debugging USART using Saleae logic probe

    Nah, I just rechecked with a setting as fast as it goes and the encoder is acting up:

    - slight movement of shaft affects other circuit,
    - missing pulses on 2nd circuit.

    I'll have new EC11 PCBs coming in a week (silkscreen of 1st batch is wrong - D'OH! ), I'll test a few other EC11 double-shafts then.

    It's not like I'm lacking tasks and chores to do until then.
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  6. #6
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172


    Did you find this post helpful? Yes | No

    Default Re: Debugging USART using Saleae logic probe

    It seems the USART analyser (Async Serial) has been updated since I last used it - the formatting has changed a bit.

    Again proved invaluable to see if my data was being sent properly.

    I love that feature of right-click on the red line of text, so I can quickly switch from Decimal to ASCII.

    Name:  Logic Probe USART - ASCII.png
Views: 1001
Size:  139.5 KB

    Name:  Logic Probe USART - DECIMAL.png
Views: 945
Size:  123.2 KB
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

Similar Threads

  1. Saleae Logic Probe on sale at microchip.com
    By ScaleRobotics in forum Off Topic
    Replies: 40
    Last Post: - 27th September 2024, 11:26
  2. Kudos to Saleae for service
    By boroko in forum Adverts
    Replies: 1
    Last Post: - 19th May 2012, 14:38
  3. Logic Probe Recommendations
    By retepsnikrep in forum Off Topic
    Replies: 3
    Last Post: - 12th June 2011, 20:35
  4. Replies: 12
    Last Post: - 15th May 2011, 23:06
  5. PH Probe A/D Coverter ?
    By shawn in forum Schematics
    Replies: 10
    Last Post: - 27th August 2008, 10:44

Members who have read this thread : 2

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts