Hi,
I'm trying to use ULP for counting pulse from GPIO.
Button on the pcb board is connect to GPIO34, so I changed variable gpio_num from GPIO_NUM_0 to GPIO_NUM_34 and I wake up the ESP with using timer in five seconds periods.
I do nothing when the program is executing but I get the number of pulse in e.g. equals to 3562.
What pulses are count in this case?
ULP Pulse Counting Example
Re: ULP Pulse Counting Example
Gpio34 has no internal pull resistor so it floats and you are measuring noise
Re: ULP Pulse Counting Example
In case with GPIO_NUM_0 is the same problem.
So, what I need to do is set internal pull on the GPIO_NUM_0 pin?
So, what I need to do is set internal pull on the GPIO_NUM_0 pin?
Re: ULP Pulse Counting Example
OK, it is working when I use esp_sleep_enable_ulp_wakeup() function but I need to use function called esp_sleep_enable_timer_wakeup( 6000000 ). The ESP wakes up but doesn't count the pulse from the button.
Re: ULP Pulse Counting Example
Is this uses to count only total number of pulses? Not used to measure timing of each pulse ? Correct?
Regards,
Ritesh Prajapati
Ritesh Prajapati
Re: ULP Pulse Counting Example
If I would to use two GPIOs in the same time what I need two modify in the .S file?
Re: ULP Pulse Counting Example
Hi WiFive,
Would you please check my last question and provide your valuable feedback for same?
Regards,
Ritesh Prajapati
Ritesh Prajapati