I've written a very simple program for my ESP32:
void setup(void)
{
pinMode(21, OUTPUT);
}
void loop(void)
{
digitalWrite(21, HIGH);
delayMicroseconds(500);
digitalWrite(21, LOW);
delayMicroseconds(10e6 - 500);
}
So pin 21 should be high for 500 microseconds, every second.
I wanted to measure the signal of pin 21, and this was my setup:
I added the 220 Ω resistor to be sure the pin can not "float", causing noise or false measurement. I tested it with and without resistor, but I don't measure anything. (Only the standard noise of a few mV of course)
My "oscilloscope" is a Fnirsi DSO-510. It's a cheap hobby toy, but actually quite good for the price. I tested the oscilloscope on a function generator that outputted block pulses with a length of 250 microseconds at various frequencies (1 Hz - 150Hz) and voltage levels. I just used the Auto function to get the signal nicely in view and everything worked fine.
There must be something stipid I'm missing. Why don't I see the signal on pin 21 of my ESP32 board?
