Upload Code
loading-left
loading loading loading
loading-right

Loading

Profile
No self-introduction
codes (2)
STM32 encoder mode history
no vote
Each timer of STM32 has a quadrature encoder input interface, Ti1, Ti2fp1 is generated by Ti2 input filtering and edge detection. Ti2fp2 is connected to the encoder module. By configuring the working mode of the encoder, the forward / reverse counting can be performed on the encoder. The encoder uses a and B two-phase signals, but I only need to count Ti1 signal (the first line). I just found this error. Originally, I counted both signals, causing the code disk to turn to one More than 100 pulses (100 line photoelectric encoder) are obtained. Through the STM32 encoder module, we can easily calculate the operation of the encoder by comparing the two level signals
Tiyi666
2018-03-27
1
1
Number of STM32 dual channel acquisition pulses
no vote
TIM2 was used in this experiment_ Ch1 and tim3_ Ch1 to do input capture, we will capture the number of pulses on the two channels, and print them out through the serial port. It can capture two pulses at the same time. There is no technical content, but it is also helpful for Xiaobai
Tiyi666
2018-03-25
0
1
No more~