I’m still just testing. So bare bones stuff/code. I have two sensors, Hall-effect to detect open/closed valves. Plus a serial communications ultrasonic bottom up level sensor, which only transmits data (automatically) about every 100ms or so. These use a TXS0108 chip to interface the 5V inputs to the 3.2 for the ESP32-C3.
I’m also using a cheap portable o-scope. I just keep it in the RV for quick checking, my “good one” is at home, so I don’t have access to it.
I am seeing what looks like high frequency noise. At a low sweep rate, it just looks like hash/garbage. But at a higher rate, it looks more like high frequency noise (like I said, I can’t really see it). This isn’t just “noise” on a high or a low signal, like power supply noise. This is like the whole pin switching from low to high and low again, at high frequency.
I was beating my brains out, caps, filters, shielded cables, everything I could think of. Then I though I had fixed it. But apparently, if I switch the Hall-effect input on and off, it’ll either start up or go away. Like, random.
I wasn’t even sure it was real, but my Fluke87 is reading about 1.6V on that pin, so it’s real. (and the ESP-NOW message was sending random pin data)
I’m kinda thinking (at this point) that there’s some oscillation going on, on the input. By that I mean, that for some reason, the input circuit (in the esp32) is doing something, like resetting input, output, input… or maybe pullup, pulldown, pullup, pulldown…
I’m turning off the radio when I read the signals, and the noise comes on and stays on, it’s not switching on and off (like with the radio or the serial communication). I am using ESP-NOW, so I need to turn it back on, it’s transmitting just fine.
I’m using:
gpio_set_direction(VALVE_OPEN, GPIO_MODE_INPUT);
gpio_set_pull_mode(VALVE_OPEN, GPIO_PULLUP_ONLY);
(and gpio_get_level(VALVE_OPEN); to read the pins)
to set the pins modes, I’m going to try using GPIO_MODE_FLOATING when I get a chance.
And maybe try just the Arduno pinmode() command to see if that changes anything.
If anybody has any clues or suggestions, it would be much appreciated.