Closed
Description
Hello Everyone
I tried the following example
https://github.com/stm32duino/STM32Examples/blob/master/examples/Peripherals/HardwareTimer/InputCapture/InputCapture.ino
My observations
- I connected a PWM signal (from another circuit) to pin D2 but it doesn't recognize the input.
- If I generate a PWM signal from the STM32 itself and connect it to D2 it works no problem.
- If I add a very small resistor 20 ohms between the STM32 generated PWM signal to D2 , it doesn't work. Frequency is 0
- The PWM signal from another circuit obviously has some resistance. So this could be the reason why its not being detected on the STM32 ?
- If I connect the PWM signal (from another circuit) to Arduino Uno, it works out of the box. No problem.
- If I use the PWM signal (from another circuit) and use digitalRead on the STM32, it prints out 1 and 0 on the Serial correctly on the same D2 pin.
I would appreciate any help. I am new to STM32 family