Power rail transience when using SPI on battery

nappleton
Posts: 1
Joined: Wed Mar 11, 2020 11:10 am

Power rail transience when using SPI on battery

Postby nappleton » Wed Mar 11, 2020 12:31 pm

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)

bbfe0a54-e258-4dc7-a4c3-913c2b6b895c.png
Channel 1 (yellow) is the 3.3V rail, Channel 2 (Blue) is the SPI clock.
bbfe0a54-e258-4dc7-a4c3-913c2b6b895c.png (28.85 KiB) Viewed 5057 times

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.
Attachments
20200311_115058.jpg
This is how the power gets into the circuit from battery and USB
20200311_115058.jpg (414.33 KiB) Viewed 5057 times
Scope.png
Zoomed in picture of the noise on the 3.3V rail
Scope.png (63.38 KiB) Viewed 5057 times

User avatar
fasani
Posts: 197
Joined: Wed Jan 30, 2019 12:00 pm
Location: Barcelona
Contact:

Re: Power rail transience when using SPI on battery

Postby fasani » Mon Jun 22, 2020 8:53 am

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.
epdiy collaborator | http://fasani.de Fan of Espressif MCUs and electronic design

ESP_Sprite
Posts: 9739
Joined: Thu Nov 26, 2015 4:08 am

Re: Power rail transience when using SPI on battery

Postby ESP_Sprite » Mon Jun 22, 2020 9:06 am

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 102 guests