Translations:Buzzer/3/en: различия между версиями

Материал из Wiren Board
(Новая страница: «Exporting port to sysfs: <pre> echo 2 > /sys/class/pwm/pwmchip0/export </pre>»)
 
 
Строка 1: Строка 1:
Exporting port to sysfs:
In the context of buzzer control, we are interested in 2 PWM parameters:
<pre>
* Duty cycle - affects the volume of the sound. Usually, it is considered as a percentage of the signal period.
echo 2 > /sys/class/pwm/pwmchip0/export
* PWM frequency (frequency) - affects the pitch (the higher the frequency, the higher the sound). The unit that is the reciprocal of the signal period.
</pre>

Текущая версия на 20:46, 22 сентября 2022

Определение сообщения (Buzzer)
В контексте управления зуммером, нас интересуют 2 параметра PWM:
*Коэффициент заполнения (duty cycle) - влияет на громкость звука. Обычно, считается в процентном соотношении от периода сигнала.
*Частота PWM (frequency) - влияет на высоту звука (чем выше частота, тем выше и звук). Единица, обратная периоду сигнала.

In the context of buzzer control, we are interested in 2 PWM parameters:

  • Duty cycle - affects the volume of the sound. Usually, it is considered as a percentage of the signal period.
  • PWM frequency (frequency) - affects the pitch (the higher the frequency, the higher the sound). The unit that is the reciprocal of the signal period.