AboutCapabilitiesPortfolioExplore
Projects
Hanging Plotter
Android development on NixOS
Using an Arduino as a logic analyzer
First Steps - Pinning an idea down and checking assumptions
Connecting an ESP32 to android with bluetooth
Spinning a Stepper
Driving steppers with the RMT module
Using Nix to write rust on the esp32
Using an ESP32 as a logic analyzer
ESP32 development in NixOS using VSCode
Translating an esp32+esp-idf bluetooth example to rust
Post Print Iterations
Musings on packaging build system via splitting independent libraries
Using a smooth stepper driver on the esp32 in rust
thumbnail

Using an Arduino as a logic analyzer

2020-4-1
2nd article in Hanging Plotter
Project
Hanging Plotter
Capability
Software
Embedded
Skill
Esp 32
Summary:
  • Repurposed an Arduino Uno as a multi-channel logic analyzer to capture and inspect digital signals on ports 8 through 11
  • Set up a reproducible Nix development environment bundling Arduino core and PulseView for consistent signal analysis workflows
  • Used PulseView to diagnose signal jitter and noise on stepper motor control lines, revealing timing quality issues that threatened motor reliability
  • Built a hardware-in-the-loop debugging pipeline by combining Arduino firmware with open-source oscilloscope software

Using an arduino uno as a logic analyzer

shell.nix

{ pkgs ? import <nixpkgs> {} }:
let
  unstable = import <unstable> {};
in
  pkgs.mkShell {
    buildInputs = [
      pkgs.arduino
      unstable.pkgs.pulseview
    ];
    shellHook = ''
set -e
export ARDUINO_DIR=${pkgs.arduino-core}/share/arduino
# Needed to fix hanky borken window not resizing in wayland...
export _JAVA_AWT_WM_NONREPARENTING=1
export PATH="$PATH:$ARDUINO_DIR"
    '';
}
$ git clone https://github.com/gillham/logic_analyzer
$ cd logic_analyzer
$ arduino .

Tools > port > /dev/usbTTY1

Click upload…

arduino ide showing files and successful upload

$ pulseview

a selection dialog selecting arduino in pulseview

a graph showing jittery up down results

After selecting the proper ports 8 9 10 11 this jumbled mess appears

Time to start figuring out why it’s such a mess and how to clean it up.

Previous Next
Featured Work
Welding PositionerSurface Grinder Retrofit
Company Info
About UsContactAffiliate DisclosurePrivacy Policy
Specific Solutions LLC
Portland, OR