Search found 4 matches
- Sat Apr 03, 2021 5:15 pm
- Forum: ESP-IDF
- Topic: LEDC and PCNT on same GPIO
- Replies: 5
- Views: 5929
Re: LEDC and PCNT on same GPIO
Hi frankgigeur, this is the code I am using. Note: I am also using the ISR handler on the PCNT, but it should also work without. On first glance I don't see a lot of difference between your and my code... Please let me know if you figured out, what it was. Initialization: ledc_timer_config_t ledc_ti...
- Sat Dec 26, 2020 5:18 pm
- Forum: ESP-IDF
- Topic: LEDC and PCNT on same GPIO
- Replies: 5
- Views: 5929
Re: LEDC and PCNT on same GPIO
Hi, thanks for the hint! I finally got it working. The trick is to set the GPIO, as you suggested, to GPIO_MODE_INPUT_OUTPUT. But I also had to setup the GPIO matrix again for the LEDC functionality which was probably lost when LEDC was first configured on the GPIO, but then PCNT was configured on t...
- Sat Nov 14, 2020 9:45 am
- Forum: ESP-IDF
- Topic: LEDC and PCNT on same GPIO
- Replies: 5
- Views: 5929
LEDC and PCNT on same GPIO
Hi, I'm using the LEDC module to sent signals to a stepper control board (A4988). To figure out how many steps the motor has received I'm using the PCNT module on a different GPIO. Currently these two pins are wired together externally. What I would like to do now is to use only one pin instead of t...
- Sat Jan 20, 2018 9:51 pm
- Forum: Hardware
- Topic: ESP32 GPIO state at power-on
- Replies: 2
- Views: 9248
ESP32 GPIO state at power-on
Hi, I have a relay connected to two of my ESP32 GPIO ports 26 and 27. The relay is one of these arduino suitable relays (see e.g. http://arduino-info.wikispaces.com/ArduinoPower ). During normal operation everything works nicely, but during power-on of the ESP32 the two GPIO ports are high, and the ...