Hi everyone,
Working on a small datalogger project using an ESP32-WROOOM that involves an analog sensor signal being recorded and saved to SD card. Having a big power rail spike issue that has been isolated down to the SPI. Setup is as follows:
1. Core → ESP32-WROOM
2. Power circuitry for USB and battery
3. Peripherals:
a. Sensor (Analog input)
b. ePaper screen (SPI)
c. SD card (SPI)
Note:
This issue only occurs when the setup is powered on a 3.7V 1200mAh LiPo battery.
There is no WiFi or Bluetooth in use.
Circuit has been decoupled with bulk caps.
USB: Stable 3v3 and no power dips/ spikes appear during the record procedure.
BATTERY: When the code enters record mode there are significant power dips on the 3v3 rail that appear to be caused by the SPI (SCLK & MOSI).
The only difference between the power input circuitry is that the battery circuit utilises a power trench mosfet whereas the USB goes through a shottky diode.
The power rail spikes are affecting the 3v3 rail to the extent that the sensor readings are getting completely messed up.
Wondering if anyone has experienced something similar? Sense is that it is a battery/ current limiting issue or something to do with the ESP32.
Power rail transience when using SPI on battery
Power rail transience when using SPI on battery
- Attachments
-
- This is how the power gets into the circuit from battery and USB
- 20200311_115058.jpg (414.33 KiB) Viewed 5051 times
-
- Zoomed in picture of the noise on the 3.3V rail
- Scope.png (63.38 KiB) Viewed 5051 times
Re: Power rail transience when using SPI on battery
Hey there,
This looks like an interesting topic. Sadly I don't have any Oscilloscope in my small studio so I won't be able to reproduce. But does anyone has a hint on what's going on?
Is possible to see your SPI instantiation? PINS used, program, etc.
This looks like an interesting topic. Sadly I don't have any Oscilloscope in my small studio so I won't be able to reproduce. But does anyone has a hint on what's going on?
Is possible to see your SPI instantiation? PINS used, program, etc.
epdiy collaborator | http://fasani.de Fan of Espressif MCUs and electronic design
-
- Posts: 9739
- Joined: Thu Nov 26, 2015 4:08 am
Re: Power rail transience when using SPI on battery
How are you measuring this, can you show a picture of your setup? Are you sure that it's not just the high frequency SCK coupling into your testing equipment somehow?
Who is online
Users browsing this forum: No registered users and 100 guests