An open API service indexing awesome lists of open source software.

https://github.com/jcbernack/esp-ulp-adc-bug

MWE to reproduce bad ADC samples taken by the ULP
https://github.com/jcbernack/esp-ulp-adc-bug

esp-idf esp32

Last synced: 14 days ago
JSON representation

MWE to reproduce bad ADC samples taken by the ULP

Awesome Lists containing this project

README

          

# esp-ulp-adc-bug

This is a minimal working example for a bug which occurs when taking continuous ADC measurements from a ULP program. The ADC measurements give the maximum possible readings during wake up of the main chip, i.e. with 12-bit measurements the results will be 2^12-1=4095.

Make sure to connect PIN 32 to GND, so the good measurements will be around zero.

## Typical output

```
I (99) main: initial boot
I (99) main: starting ULP program
I (99) main: resetting counters
I (99) main: entering deep sleep

I (99) main: samples taken 502
I (99) main: first bad sample at 495
I (99) main: number of bad samples 6
I (99) main: resetting counters
I (99) main: entering deep sleep
```