Giter Site home page Giter Site logo

blinking-led / logic-analyzer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aster94/logic-analyzer

0.0 0.0 0.0 162 KB

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

License: GNU General Public License v3.0

C++ 50.52% Processing 49.48%

logic-analyzer's Introduction

Logic Analyzer

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

la

Usage

  • Upload UNO.ino, MEGA.ino, STM32F1.ino or ESP8266.ino to your board
  • 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 to see when the MCU is recording, see the code of your board to know where to wire it. 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 the logic analyzer. Enjoy!

Requisites

Donate

If you liked this project and wish to donate you can sent to PayPal

Change Log

06/01/19
  • ESP8266 version by @yoursunny, who also made a few improvements to processing, thanks!
30/08/18
  • MEGA version added by @sancho11 but the processing interface is not compatible for all the pins
29/04/17
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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.