Skip to content

Logic Analyzer, for Arduino, other AVR and STM32 with a very nice working processing interface, you could run it also on any Android device.

Notifications You must be signed in to change notification settings

ulrichloose/logic-analyzer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logic Analyzer

A few days ago I needed a logic sniffer since I don't have any I thought to write my own code. It will work on every Arduino board or AVR and STM32. It could be very helpful to debug ISP, I2C and other serial communication where you think that could be an error.

la

Usage

  • upload to your board "UNO.ino" or "MEGA.ino" or "STM32.ino"
  • choose your board and serial port on "processing.pde"
  • run it and have a good debug :D

If you wish you could put a led on the arduino pin A0 to see when the MCU is recording, the number of samples is set to 200 but you could increment it until the memory is full.

To have it faster than possible the loop was reduced to the minimum number of statement and I am doing a lot of optimization! All the calculation are made after saving the data, and during the recording there are stored only the values of the pin that changed and when it happened.

I made a processing sketch to visualize it. Using the bar scroll at the bottom of the graph you could move along the captures or alternatively you could use the wheel of the mouse. With the "Start" button you can begin a new recording. Two divider have been added: one to use millisecond instead of microsecond and the other that work like a kind of "zoom" (to change it move the mouse over this button than use the mouse wheel; decreasing it you will zoom in, increasing zoom out). You are also able to save the current window in a .jpg or .tif file with the "Save" button.

It works on windows and Linux both 32 64 bit and android devices. I added also an Arduino test sketch if you would like to test this logic analyzer. Enjoy!

Change Log

30/08/18
  • MEGA version added by @sancho11, which now is a collaborator
29/04/17
  • added support for STM32
15/12/16
  • improved acquisition code
12/12/16
  • added bar scroll
  • now moving along the capture is far away easier
04/12/16
  • better reducer and save options
  • added the possibility to diplay or not the times
  • corrected a bug when two or more pulse where coincident
28/11/16
  • completely new interface
  • added save function
26/11/16
  • added colors
24/11/16
  • published

About

Logic Analyzer, for Arduino, other AVR and STM32 with a very nice working processing interface, you could run it also on any Android device.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Processing 56.6%
  • C++ 43.4%