Search found 12 matches

by mezzynine
Sun Sep 26, 2021 2:09 pm
Forum: General Discussion
Topic: touch_pad_config vs touch_pad_set_thresh? No difference?
Replies: 1
Views: 2295

Re: touch_pad_config vs touch_pad_set_thresh? No difference?

The answer, from o-marshmallow (https://github.com/o-marshmallow) on the ESP32 IDF github: About touch_pad_thresh, its goal is to modify the threshold at runtime, whereas touch_pad_config is used for initialization. It does more than setting the threshold. https://github.com/espressif/esp-idf/issues...
by mezzynine
Sun Sep 26, 2021 1:53 pm
Forum: General Discussion
Topic: touch_pad_config vs touch_pad_set_thresh? No difference?
Replies: 1
Views: 2295

touch_pad_config vs touch_pad_set_thresh? No difference?

Hi, what's the difference between touch_pad_config() and touch_pad_set_thresh()? They take the same parameters:

Code: Select all

esp_err_t touch_pad_config(touch_pad_t touch_num, uint16_t threshold)

esp_err_t touch_pad_set_thresh(touch_pad_t touch_num, uint16_t threshold)
by mezzynine
Sun Sep 26, 2021 1:24 pm
Forum: General Discussion
Topic: sleep + touchpad + Arduino mix. Is ISR needed?
Replies: 0
Views: 1817

sleep + touchpad + Arduino mix. Is ISR needed?

Hi, I'm running a mix of Arduino and ESP32 native API code. The touchpad wakes the ESP32 from deep sleep by using esp_sleep_enable_touchpad_wakeup() . And then setup() (Arduino) is executed. It works. I need the mix because the wake must be on TOUCH_TRIGGER_ABOVE, which Arduino doesn't have, and I a...
by mezzynine
Wed Sep 22, 2021 1:45 am
Forum: General Discussion
Topic: Touch Enabled Deep Sleep Power is too high; please help
Replies: 7
Views: 10552

Re: Touch Enabled Deep Sleep Power is too high; please help

hi, did you ever get a response for this? what are good parameters for touch_pad_get_meas_time() that would make current consumption low? I did play with the measure timing and duty cycle and now have a responsive touch sensor on both inputs with only 10uA current. May I ask what values you are now ...
by mezzynine
Wed Sep 08, 2021 7:17 pm
Forum: General Discussion
Topic: Getting Timer IRQ when touch pad measure is done
Replies: 4
Views: 7325

Re: Getting Timer IRQ when touch pad measure is done

hi, did you ever figure this out, interrupt on going from touch to non-touch?
WiFive wrote:
Fri Feb 03, 2017 5:12 am
Yes that is a good question how to get an interrupt when pad goes from touched to not-touched. Seems like SENS_TOUCH_OUT_SEL can be flipped but affects all pads not just one.
by mezzynine
Wed Sep 08, 2021 7:13 pm
Forum: ESP IoT Solution
Topic: interrupt on going touch TO release? reverse?
Replies: 0
Views: 8511

interrupt on going touch TO release? reverse?

hi, is there a way to generate an interrupt on a touch *release*, i.e. only when the capacitance decreases by a certain amount? the only way i can do it now is to poll the sensor, which wastes battery power. i know an interrupt can be generated when the capacitance is increased by touching. i need t...
by mezzynine
Fri Aug 13, 2021 9:26 pm
Forum: General Discussion
Topic: Use ULP to blink LED
Replies: 3
Views: 6486

Re: Use ULP to blink LED

I got it to blink with the following. My LED is on RTC_GPIO6 (RTC_GPIO_OUT_DATA_S+6), same as GPIO25 (see https://www.programmersought.com/article/40455220487/ ). The code is taken from https://codingfield.com/en/2019/01/15/ulp-esp32-un-exemple-simple/ . loop1: WRITE_RTC_REG(RTC_GPIO_OUT_REG,RTC_GPI...
by mezzynine
Thu Aug 12, 2021 2:18 am
Forum: Hardware
Topic: Touch read current, RTC ADC current from ULP, sample code?
Replies: 0
Views: 2894

Touch read current, RTC ADC current from ULP, sample code?

Hi, Is there any info on how much current touch pad reading draws and how long it takes? I need the ULP to wake every 4 secs and do a touch read (not a touch trigger). Also any info on how much RTC ADC SAR consumes when used by the ADC, and how long it takes? i'm not finding this anywhere. the close...
by mezzynine
Thu Aug 12, 2021 12:50 am
Forum: General Discussion
Topic: Touch sensor read with ULP?
Replies: 3
Views: 5449

Re: Touch sensor read with ULP?

hi, is there a sample using a .S file? the HULP example uses the C-macro library, which is hard to make work on Windows. Besides, I have other .s code already implemented. thanks!
by mezzynine
Sun Jul 25, 2021 11:54 pm
Forum: General Discussion
Topic: Touch sensor read with ULP?
Replies: 3
Views: 5449

Re: Touch sensor read with ULP?

try https://github.com/boarchuz/HULP/blob/m ... lp_touch.h
the library also has an example.