First thought battery voltage might be too low; battery meters at 3.257 Volts. Current draw 75 mA, seems low for a development board using WiFi.
MPU6050_WLED_with_Deep_Sleep Sketch is interrupt driven; when the wand is in motion; it sends a custom URL to WLED Controller. If there is no motion of the wand; sketch goes to Deep Sleep.
Problem is under battery power (no USB connection) there are no interrupts. Watching the RGB effects, intensity, and color palette with wand movement; nothing changes; with USB Power, RGB effects, intensity, and color palette change with wand movement. When USB Powered I see interrupts triggering motion function; then when touch pad is released, sketch goes into Deep Sleep. This is the way it should work on battery.
Anybody else experienced this issue? How was the issue resolved? Do I need to remove Serial.print statements? Is the 3.257 Volts too low? Board is ESP32 Dev Module v1. Battery feeds a LDO regulator rated at 1 Amp to the +3.3 Volt pin. There is a 1000 uF Capacitor across power supply leads.
Used a USB to Serial adapter to view Serial.print statements; Interrupt are working with battery power. Will try removing Serial.print statements. Removed USB to Serial adapter; no changes of RGB effects, intensity, and color palette with wand motion. Battery has been elimanated as an issue; since USB to Serial adapter, had no power connections to USB.
Good Morning Sara,
You may mark this as resolved.
Apparently, touch threshold needs to be higher on battery than under USB power. Raised threshold to 60 from 40; now observing changing effects, intensity, and color palette while on battery power and with wand in motion.