Search found 11 matches

by Piscenois
Wed Nov 06, 2019 7:43 pm
Forum: ESP-IDF
Topic: Button clicked, NEGEDGE interrupt fired multiple times
Replies: 10
Views: 13259

Re: Button clicked, NEGEDGE interrupt fired multiple times

I'm sorry if I was not very clear. I have 4 "normal" buttons and 1 rotary push button (= rotary encoder and push button at the same time). I started speaking about the buttons, I searched solution for them but, when I worried about the rotary encoder, I saw some differences and spoke about it. Final...
by Piscenois
Tue Nov 05, 2019 8:00 pm
Forum: ESP-IDF
Topic: Button clicked, NEGEDGE interrupt fired multiple times
Replies: 10
Views: 13259

Re: Button clicked, NEGEDGE interrupt fired multiple times

Wow! This solution seems extremely elegant! :o Thank you.
by Piscenois
Mon Nov 04, 2019 5:38 pm
Forum: ESP-IDF
Topic: Button clicked, NEGEDGE interrupt fired multiple times
Replies: 10
Views: 13259

Re: Button clicked, NEGEDGE interrupt fired multiple times

Thank you Susan ! I will try timer interrupt ... one more think I need to learn ;) I tried a software timer (with FreeRTOS). With a 20ms period I don't need to debounce. The task check the GPIO level and always get an already stable value. But ... this doesn't work with the rotary button. The 2 sign...
by Piscenois
Sat Nov 02, 2019 7:38 pm
Forum: ESP-IDF
Topic: Button clicked, NEGEDGE interrupt fired multiple times
Replies: 10
Views: 13259

Re: Button clicked, NEGEDGE interrupt fired multiple times

Thank you WiFive ! You must be right. But 10msec filter seems too high, the problem already exists for a 1 millisecond one. After zooming I see very very small peaks with a width about 1-10 usec. With the current filter the rising slope is probably not enough vertical. The capacitor is too high. I'l...
by Piscenois
Sat Nov 02, 2019 3:25 pm
Forum: ESP-IDF
Topic: Button clicked, NEGEDGE interrupt fired multiple times
Replies: 10
Views: 13259

Re: Button clicked, NEGEDGE interrupt fired multiple times

Hi ! I have some precisions. I have logged times of each interrupt. I press the button at 0 usec, 2 falling interrupts occurred 234031 and 234093 usec later (62 usec between the last). Oscilloscope gives a normal shape, without any bounce. I tried other buttons, even a rotary one. Interrupts always ...
by Piscenois
Wed Oct 30, 2019 8:31 pm
Forum: ESP-IDF
Topic: Button clicked, NEGEDGE interrupt fired multiple times
Replies: 10
Views: 13259

Button clicked, NEGEDGE interrupt fired multiple times

Hi ! I try to detect a button click and have adapted code from gpio example : #include <stdio.h> #include <string.h> #include <stdlib.h> #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "freertos/queue.h" #include "driver/gpio.h" #define GPIO_BTN GPIO_NUM_13 #define ESP_INTR_FLAG_D...
by Piscenois
Mon Dec 03, 2018 8:44 am
Forum: ESP32 Arduino
Topic: Voltage measurement with I35
Replies: 7
Views: 10342

Re: Voltage measurement with I35

I just took my multimeter and measured the battery voltage. LiPo are given for 3.7V and I found 3.64V.

Regards.
by Piscenois
Sat Dec 01, 2018 3:51 pm
Forum: ESP32 Arduino
Topic: Voltage measurement with I35
Replies: 7
Views: 10342

Re: Voltage measurement with I35

Thank you for replying :) Tihs is my function to calculate voltage : voltage = 2.0 x 3.64 x measure / 4096.0 (=> 3.64 x measure / 2048 to avoid useless operations) with : - measure = analogRead(_VBAT) - 3.64 = battery voltage I already have other buttons, 4 more, on GPIO 00 - 13 - 32 - 33, and no in...
by Piscenois
Tue Nov 27, 2018 6:18 pm
Forum: ESP32 Arduino
Topic: Voltage measurement with I35
Replies: 7
Views: 10342

Re: Voltage measurement with I35

No one has ever tried to measure the voltage ?
by Piscenois
Fri Nov 09, 2018 9:37 am
Forum: ESP32 Arduino
Topic: Voltage measurement with I35
Replies: 7
Views: 10342

Re: Voltage measurement with I35

I'm not sure it's an Arduino problem. But, why not ?! ;)