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