How to use the LHT00SU1 Logic Analyzer on Mac OS X

Logic Analyzers can be quite useful to test and analyze hardware. In this short video I explain how to use the cheap LHT00SU1 logic analyzer together with PulseView on Mac OS X to test a new ESP32 development board.

Here is the code used to create the signals

#include <Arduino.h>

uint8_t pins [] = {21, 19, 18, 5, 4, 34, 25, 26};

void setup() {
  Serial.begin(115200);
  for (uint8_t i = 0; i < 7; i++) {
    pinMode(pins[i], OUTPUT);
  }
}

void loop() {
  for (uint8_t pin = 0; pin <= 7; pin++) {
    digitalWrite(pins[pin], HIGH);
    delay(50);
    digitalWrite(pins[pin], LOW);
    delay(50);
  }
  delay(500);
}

And this is the recorded output:

There is one step missing. The area for this is marked. This behavior can be easily explained because GPIO35 (element 5 in the array) is a input-only pin. Therefore no state can be written to it by my program.

Links

Link to LHT00SU1 Logic Analyzer on Banggood (~35USD):
https://www.banggood.com/custlink/DmmY0l4fpW

Link to SigRok/ PulseView Open Source Software:
https://sigrok.org/wiki/Downloads

blank
Posted by Daniel Eichhorn

Daniel Eichhorn is a software engineer and an enthusiastic maker. He loves working on projects related to the Internet of Things, electronics, and embedded software. He owns two 3D printers: a Creality Ender 3 V2 and an Elegoo Mars 3. In 2018, he co-founded ThingPulse along with Marcel Stör. Together, they develop IoT hardware and distribute it to various locations around the world.

Leave a Reply