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

Using an Arduino as a logic analyzer

8th article in Hanging Plotter
SoftwareEmbeddedEsp32
2020-4-1

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
Selecting the arduino board in pulseview

a graph showing jittery up down results
It's a wonder the stepper was spinning at all

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.

PreviousNext
Featured Projects
GeneratorHandwheel Repair
Company Info
About UsContactAffiliate DisclosurePrivacy Policy
Specific Solutions LLC
Portland, OR