• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

No interrupt with battery; works with USB Power

Q&A Forum › Category: ESP32 › No interrupt with battery; works with USB Power
0 Vote Up Vote Down
William Lucid asked 2 years ago

Good Afternoon,

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.

Regards,
William

Question Tags: Battery, ESP32, Interrupt
3 Answers
0 Vote Up Vote Down
William Lucid answered 2 years ago

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.

Regards,
William

0 Vote Up Vote Down
William Lucid answered 2 years ago

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.

Regards,
William

0 Vote Up Vote Down
Sara Santos Staff answered 2 years ago

Ok. Great.
Thanks for providing such details about that issue.
I’m glad everything is solved now.
I’ll mark this issue as resolved. If you need further help, you just need to open a new question in our forum.
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.