title: Creating a library for setting various program parameters using an incremental encoder
title: Ð²ÑÐ¿ÑÑÐºÐ½Ð°Ñ ÐºÐ²Ð°Ð»Ð¸ÑÐ¸ÐºÐ°ÑÐ¸Ð¾Ð½Ð½Ð°Ñ ÑÐ°Ð±Ð¾ÑÐ° Ð¼Ð°Ð³Ð¸ÑÑÑÐ°
titleType: Subtitle
title: Ð¡Ð¾Ð·Ð´Ð°Ð½Ð¸Ðµ Ð±Ð¸Ð±Ð»Ð¸Ð¾ÑÐµÐºÐ¸ Ð´Ð»Ñ ÑÑÑÐ°Ð½Ð¾Ð²ÐºÐ¸ ÑÐ°Ð·Ð»Ð¸ÑÐ½ÑÑ Ð¿Ð°ÑÐ°Ð¼ÐµÑÑÐ¾Ð² Ð¿ÑÐ¾Ð³ÑÐ°Ð¼Ð¼Ñ Ñ Ð¿Ð¾Ð¼Ð¾ÑÑÑ Ð¸Ð½ÐºÑÐµÐ¼ÐµÐ½ÑÐ°Ð»ÑÐ½Ð¾Ð³Ð¾ ÑÐ½ÐºÐ¾Ð´ÐµÑÐ°
Creators: name: Ð¡ÑÐ½Ñ Ð§Ð¶ÑÐ½Ð´ÑÐ½Ñ
Publisher: name: Ð¡Ð°Ð½ÐºÑ-ÐÐµÑÐµÑÐ±ÑÑÐ³ÑÐºÐ¸Ð¹ Ð¿Ð¾Ð»Ð¸ÑÐµÑÐ½Ð¸ÑÐµÑÐºÐ¸Ð¹ ÑÐ½Ð¸Ð²ÐµÑÑÐ¸ÑÐµÑ ÐÐµÑÑÐ° ÐÐµÐ»Ð¸ÐºÐ¾Ð³Ð¾
Year: 2023
Subjects: Ð¡Ð¸Ð³Ð½Ð°Ð»Ñ
ÑÐ½ÐºÐ¾Ð´ÐµÑ
Ð¸Ð·Ð¼ÐµÐ½ÐµÐ½Ð¸Ðµ Ð¿ÐµÑÐµÐ¼ÐµÐ½Ð½ÑÑ
encoder
change variables

description: Ð¢ÐµÐ¼Ð° Ð²ÑÐ¿ÑÑÐºÐ½Ð¾Ð¹ ÐºÐ²Ð°Ð»Ð¸ÑÐ¸ÐºÐ°ÑÐ¸Ð¾Ð½Ð½Ð¾Ð¹ ÑÐ°Ð±Ð¾ÑÑ: "Ð¡Ð¾Ð·Ð´Ð°Ð½Ð¸Ðµ Ð±Ð¸Ð±Ð»Ð¸Ð¾ÑÐµÐºÐ¸ Ð½Ð°ÑÑÑÐ¾Ð¹ÐºÐ¸ ÑÐ°Ð·Ð»Ð¸ÑÐ½ÑÑ Ð¿Ð°ÑÐ°Ð¼ÐµÑÑÐ¾Ð² Ð¿ÑÐ¾Ð³ÑÐ°Ð¼Ð¼Ñ Ñ Ð¿Ð¾Ð¼Ð¾ÑÑÑ Ð¸Ð½ÐºÑÐµÐ¼ÐµÐ½ÑÐ½Ð¾Ð³Ð¾ ÑÐ½ÐºÐ¾Ð´ÐµÑÐ°". ÐÐ±ÑÐµÐºÑÐ¾Ð¼ Ð´Ð°Ð½Ð½Ð¾Ð¹ ÑÑÐ°ÑÑÐ¸ ÑÐ²Ð»ÑÐµÑÑÑ ÐºÐ¾Ð´Ð¸ÑÐ¾Ð²ÑÐ¸Ðº. Ð¦ÐµÐ»ÑÑ ÑÑÐ¾Ð¹ ÑÑÐ°ÑÑÐ¸ ÑÐ²Ð»ÑÐµÑÑÑ Ð¾Ð±ÑÑÐ¶Ð´ÐµÐ½Ð¸Ðµ ÑÐ¾Ð·Ð´Ð°Ð½Ð¸Ñ Ð±Ð¸Ð±Ð»Ð¸Ð¾ÑÐµÐºÐ¸ ÑÑÐ½ÐºÑÐ¸Ð¹ Ð´Ð»Ñ ÑÑÑÐ°Ð½Ð¾Ð²ÐºÐ¸ ÑÐ°Ð·Ð»Ð¸ÑÐ½ÑÑ Ð¿ÐµÑÐµÐ¼ÐµÐ½Ð½ÑÑ Ð¿Ð°ÑÐ°Ð¼ÐµÑÑÐ¾Ð² Ð´Ð»Ñ Ð¸Ð½ÐºÑÐµÐ¼ÐµÐ½ÑÐ°Ð»ÑÐ½Ð¾Ð³Ð¾ ÑÐ½ÐºÐ¾Ð´ÐµÑÐ°. ÐÑÐ¿Ð¾Ð»ÑÐ·ÑÐ¹ÑÐµ Ð¼Ð¸ÐºÑÐ¾ÐºÐ¾Ð½ÑÑÐ¾Ð»Ð»ÐµÑ Ð´Ð»Ñ ÑÑÐ¸ÑÑÐ²Ð°Ð½Ð¸Ñ ÑÐ¸Ð³Ð½Ð°Ð»Ð° Ð²ÑÐ°ÑÐµÐ½Ð¸Ñ Ð¸Ð½ÐºÑÐµÐ¼ÐµÐ½ÑÐ°Ð»ÑÐ½Ð¾Ð³Ð¾ ÑÐ½ÐºÐ¾Ð´ÐµÑÐ°, Ð° Ð·Ð°ÑÐµÐ¼ Ð¾Ð¿ÑÐµÐ´ÐµÐ»Ð¸ÑÐµ Ð½Ð°Ð¿ÑÐ°Ð²Ð»ÐµÐ½Ð¸Ðµ Ð²ÑÐ°ÑÐµÐ½Ð¸Ñ ÑÐ½ÐºÐ¾Ð´ÐµÑÐ°, Ð° Ð·Ð°ÑÐµÐ¼ Ð¸Ð·Ð¼ÐµÐ½Ð¸ÑÐµ Ð·Ð½Ð°ÑÐµÐ½Ð¸Ðµ Ð¿ÐµÑÐµÐ¼ÐµÐ½Ð½Ð¾Ð¹ Ð¿Ð°ÑÐ°Ð¼ÐµÑÑÐ° Ð²Ð²ÐµÑÑ Ð¸Ð»Ð¸ Ð²Ð½Ð¸Ð· Ð¸ Ð¿ÑÐµÐ´ÑÑÐ°Ð²ÑÑÐµ ÐµÐ³Ð¾ Ð² Ð²Ð¸Ð´Ðµ Ð±Ð¸Ð±Ð»Ð¸Ð¾ÑÐµÐºÐ¸ ÑÑÐ½ÐºÑÐ¸Ð¹. Ð­ÑÐ° ÑÐ°Ð±Ð¾ÑÐ° Ð¿Ð¾ÑÐ²ÑÑÐµÐ½Ð° Ð¸ÑÐ¿Ð¾Ð»ÑÐ·Ð¾Ð²Ð°Ð½Ð¸Ñ Ð¸Ð½ÑÐµÑÑÐµÐ¹ÑÐ° TIM STM32F407VG Ð´Ð»Ñ ÑÑÐ¸ÑÑÐ²Ð°Ð½Ð¸Ñ ÑÐ¸Ð³Ð½Ð°Ð»Ð¾Ð², Ð²ÑÐ²Ð¾Ð´Ð¸Ð¼ÑÑ ÐºÐ¾Ð½ÑÐ°ÐºÑÐ°Ð¼Ð¸ A Ð¸ B, ÐºÐ¾Ð³Ð´Ð° Ð²Ð½ÐµÑÐ½Ð¸Ð¹ ÑÐ½ÐºÐ¾Ð´ÐµÑ PEC16 Ð²ÑÐ°ÑÐ°ÐµÑÑÑ. Ð Ð¾ÑÑÐ¸Ð»ÑÑÑÐ¾Ð²Ð°ÑÑ Ð´ÑÐ¾Ð¶Ð°Ð½Ð¸Ðµ ÐºÐ¾Ð½ÑÐ°ÐºÑÐ° Ð¿ÑÐ¸ Ð²ÑÐ°ÑÐµÐ½Ð¸Ð¸ ÑÐ½ÐºÐ¾Ð´ÐµÑÐ°, Ð½Ð°Ð¿Ð¸ÑÐ°ÑÑ Ð¿ÑÐ¾Ð³ÑÐ°Ð¼Ð¼Ñ, ÐºÐ¾ÑÐ¾ÑÐ°Ñ Ð¿ÑÐ¸Ð½Ð¸Ð¼Ð°ÐµÑ ÑÐµÐºÑÑÐµÐµ Ð·Ð½Ð°ÑÐµÐ½Ð¸Ðµ Ð¸ Ð¼Ð°ÐºÑÐ¸Ð¼Ð°Ð»ÑÐ½Ð¾Ðµ Ð·Ð½Ð°ÑÐµÐ½Ð¸Ðµ Ð¿ÐµÑÐµÐ¼ÐµÐ½Ð½Ð¾Ð¹ Ð² ÐºÐ°ÑÐµÑÑÐ²Ðµ Ð²ÑÐ¾Ð´Ð½ÑÑ Ð´Ð°Ð½Ð½ÑÑ, Ð° Ð·Ð°ÑÐµÐ¼ ÑÑÐ´Ð¸ÑÑ Ð¾ Ð½Ð°Ð¿ÑÐ°Ð²Ð»ÐµÐ½Ð¸Ð¸ Ð²ÑÐ°ÑÐµÐ½Ð¸Ñ ÑÐ½ÐºÐ¾Ð´ÐµÑÐ° Ð² ÑÐ¾Ð¾ÑÐ²ÐµÑÑÑÐ²Ð¸Ð¸ Ñ ÑÐ¸Ð³Ð½Ð°Ð»Ð¾Ð¼ ÑÑÐµÐ½Ð¸Ñ, ÑÑÐ¾Ð±Ñ Ð¸Ð·Ð¼ÐµÐ½Ð¸ÑÑ ÐµÐ³Ð¾, ÑÐ²ÐµÐ»Ð¸ÑÐ¸ÑÑ Ð¸Ð»Ð¸ ÑÐ¼ÐµÐ½ÑÑÐ¸ÑÑ Ð·Ð½Ð°ÑÐµÐ½Ð¸Ðµ Ð¿ÐµÑÐµÐ¼ÐµÐ½Ð½Ð¾Ð¹. Ð¸ Ð¿ÑÐµÐ´ÑÑÐ°Ð²Ð¸ÑÑ ÐµÐ³Ð¾ ÐºÐ°Ðº Ð±Ð¸Ð±Ð»Ð¸Ð¾ÑÐµÐºÑ ÑÑÐ½ÐºÑÐ¸Ð¹.
description: The subject of the graduate qualification work is "Create a library for setting different program parameters using an incremental encoder". The object of this paper is Encoder. The goal of this paper is discussing toÂ  create a library of functions for setting various parameter variables for an incremental encoder. Use the microcontroller to read the rotation signal of the incremental encoder, and then judge the rotation direction of the encoder, and then change the value of the parameter variable upward or downward, and present it in the form of a function library. This work is about using of the TIM interface of the STM32F407VG to read the signals output by the A pin and the B pin when the external encoder PEC16 rotates. And filter out the jitter of the contact when the encoder rotates, write a program that takes the current value and maximum value of a variable as input, and then judge the direction of the encoder rotation according to the read signal, so as to change it up or down the value of the variable. and present it as a library of functions.