Search found 6 matches

by smah80
Sun Sep 05, 2021 6:21 pm
Forum: ESP32 Arduino
Topic: PCNT (Pulse Counter) example (arduino ide)
Replies: 5
Views: 12880

Re: PCNT (Pulse Counter) example (arduino ide)

Yes I looked at it, but I am not able to understand it properly.

could you please provide a sample program for arduino ide in which I can connect a encoder using PCNT along with hardware pin schematic?
by smah80
Fri Sep 03, 2021 12:59 pm
Forum: ESP32 Arduino
Topic: PCNT (Pulse Counter) example (arduino ide)
Replies: 5
Views: 12880

Re: PCNT (Pulse Counter) example (arduino ide)

Any help in this regard?
by smah80
Sun Jul 18, 2021 7:22 am
Forum: General Discussion
Topic: ESP32 crash on reading ADS1115 on interrupt
Replies: 4
Views: 4593

Re: ESP32 crash on reading ADS1115 on interrupt

hi, I fixed that crashing issue, that was because the ADS1115 library not worked on ISR. I pull out it from ISR and put in main loop, so it start working. But still have problem, that encoder is now missing the pulses while going to read the ADC. here is my complete code. I want it to read encoder u...
by smah80
Sun Jul 18, 2021 7:16 am
Forum: ESP32 Arduino
Topic: PCNT (Pulse Counter) example (arduino ide)
Replies: 5
Views: 12880

Re: PCNT (Pulse Counter) example (arduino ide)

Hi, I am also looking for a similar solution where I can count pulses for quadrature encoder running on 1500RPM. I also found some code and look at the description on ESP-IDF of PCNT, but not able to understand how to connect my A,B,Z pulses encoder with it. Also feel difficult to understand tasks. ...
by smah80
Fri Jul 09, 2021 8:20 pm
Forum: General Discussion
Topic: ESP32 crash on reading ADS1115 on interrupt
Replies: 4
Views: 4593

Re: ESP32 crash on reading ADS1115 on interrupt

I am trying to work on a balancing system, that need to read signals (in form of voltage) and at the same time I should be able to read the encoder value (degree). FreeRtos is something that seems be able to do it by using ESP32 multi-core feature, but as I am not familiar with it. currently this is...
by smah80
Sun May 02, 2021 10:26 am
Forum: General Discussion
Topic: ESP32 crash on reading ADS1115 on interrupt
Replies: 4
Views: 4593

ESP32 crash on reading ADS1115 on interrupt

Hi, I am using ADS1115 and reading its trying to read its value based on interrupt. but it get crashed when trying to read the following line. void ICACHE_RAM_ATTR encoder_isr() { adc0 = ads.readADC_SingleEnded(0); // Crashed here.[adc0 is volatile int16_t]; voltage = ads.computeVolts(adc0); } here ...