I’m messing around with some vibration sensors like these, and I’ve wired them up as per the suggestions in the link.
I’ve got a basic scope and can see that the devices are operating as expected, there is a very short positive pulse (shorter than seen in the link), but the vibration doesn’t seem to get registered on my ESP32.
My code looks like:
mgos_gpio_set_button_handler(4, MGOS_GPIO_PULL_DOWN, MGOS_GPIO_INT_EDGE_POS, 10, vibration_low_cb, NULL); mgos_gpio_set_button_handler(0, MGOS_GPIO_PULL_DOWN, MGOS_GPIO_INT_EDGE_POS, 10, vibration_high_cb, NULL);
I’ve had a look around and haven’t found anything about using these with ESP32, so I was wondering if there was maybe some other ideas or some way to adjust trigger sensitivity of registering a HIGH on an IO pin.