Search found 731 matches: ADC

Searched query: adc

by monkey
Mon Aug 10, 2020 11:12 pm
Forum: General Discussion
Topic: How to get Deep Sleep current < 10 uA
Replies: 0
Views: 60

How to get Deep Sleep current < 10 uA

I'm working on a high volume application reliant on achieving ultra low power. I am not seeing the current I expect in my design. To debug this, I've written a completely cut down app to do nothing except go to sleep. See code below. ULP is disabled in configuration. I've soldered up a custom PCB wi...
by didiercoyman
Fri Aug 07, 2020 7:02 am
Forum: ESP IoT Solution
Topic: How to build the esp32 azure iot kit example?
Replies: 0
Views: 267

How to build the esp32 azure iot kit example?

Hi, I am new to IDF and struggle to build the azure iot kit example on Windows 10. I have installed the IDF 4.0.1 as per the documentation and were able to build the "hello world" example. I have tried to follow the instruction in https://github.com/espressif/esp-iot-solution/blob/master/README.md#e...
by wjxway
Wed Aug 05, 2020 11:30 am
Forum: General Discussion
Topic: Reduce time between two consecutive SPI transfers
Replies: 11
Views: 410

Re: Reduce time between two consecutive SPI transfers

Whoops, I initially imagined you wanted to set up an ADC. A DAC may be even easier. Effectively, I2S allows you to set up a continuous SPI-like stream of data, read from a memory buffer without any CPU interference; the only thing the CPU needs to ...
by wjxway
Wed Aug 05, 2020 8:58 am
Forum: General Discussion
Topic: Reduce time between two consecutive SPI transfers
Replies: 11
Views: 410

Re: Reduce time between two consecutive SPI transfers

Whoops, I initially imagined you wanted to set up an ADC. A DAC may be even easier. Effectively, I2S allows you to set up a continuous SPI-like stream of data, read from a memory buffer without any CPU interference; the only thing the CPU needs to ...
by ESP_Sprite
Wed Aug 05, 2020 8:34 am
Forum: General Discussion
Topic: Reduce time between two consecutive SPI transfers
Replies: 11
Views: 410

Re: Reduce time between two consecutive SPI transfers

Whoops, I initially imagined you wanted to set up an ADC. A DAC may be even easier. Effectively, I2S allows you to set up a continuous SPI-like stream of data, read from a memory buffer without any CPU interference; the only thing the CPU needs to ...
by noweare
Sun Aug 02, 2020 3:01 am
Forum: ESP32 Arduino
Topic: analogSetCycles, analogSetSamples
Replies: 1
Views: 1148

Re: analogSetCycles, analogSetSamples

... should be to take a number of samples and average the result but I don't really know. One thing I know is if I use analogSetSamples in my code my adc return widely varying values. For,example if I slowly move the potentiometer to lower values I get higher and lower values back from the adc. I ...
by Scott.Bonomi
Wed Jul 22, 2020 12:22 am
Forum: ESP32 IDF
Topic: IDF 4.2 basic example fails
Replies: 2
Views: 356

IDF 4.2 basic example fails

After Zipping my 4.0 configuration I cloned from https://github.com/espressif/esp-idf/tree/release/v4.2 as I have read in the forum it works with Eclipse and JTAG. After getting it and running install, I copied the basic ethernet example up to the esp-idf root and told idf to build it. I even chose ...
by NemethS
Tue Jul 21, 2020 11:23 am
Forum: ESP32 Arduino
Topic: Esp32 HID gamepad project
Replies: 0
Views: 332

Esp32 HID gamepad project

... #include <BLEServer.h> #include "BLE2902.h" #include "BLEHIDDevice.h" #include "HIDTypes.h" #include "HIDKeyboardTypes.h" #include <driver/adc.h> BLEHIDDevice* hid; BLECharacteristic* input; BLECharacteristic* output; #define NUM_BUTTONS 8 // you don't need to change this value #define ...
by knightridar
Sat Jul 18, 2020 11:42 pm
Forum: ESP32 Arduino
Topic: ESP32 Deep Sleep, using millis in Arduino IDE, and then trying to do something in between
Replies: 5
Views: 1885

Re: ESP32 Deep Sleep, using millis in Arduino IDE, and then trying to do something in between

... reading. I'm taking 64 samples (multisampling or smoothing) https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/peripherals/adc.html 64 x 5 sensors = 320 readings According to ESP_Puff sampling frequency for ESP32 ADC is 6khz https://esp32.com/viewtopic.php?t=1075 So 1/T ...
by slavendam
Sat Jul 18, 2020 6:16 pm
Forum: General Discussion
Topic: ADC causes Serial2 stops
Replies: 2
Views: 450

Re: ADC causes Serial2 stops

... way. Here it is :) When I change line "batt = analogRead(34);" with "batt = 0;" (no analogRead) everything works fine. #include "esp32-hal-adc.h" #include <NMEAGPS.h> int batt; int last_batt = 0; float lat=0.0, lng = 0.0; int alt=0; #define SERIAL_PORT_HARDWARE_OPEN Serial2 #include <GPSport.h> ...

Go to advanced search