ESP8266 Rotary Encoder move servo motor with LCD displaying angle degrees values
Автор: Electricum
Загружено: 2024-12-18
Просмотров: 107
Описание:
Hardware Connections
Rotary Encoder
CLK D6 (GPIO12) Encoder pin for step detection.
DT D7 (GPIO13) Encoder pin for step direction.
SW (Button) D5 (GPIO14) Push button on the encoder (optional).
(VCC) 5V Power supply for the encoder.
GND GND Ground connection.
Servo Motor
Signal D2 (GPIO4) PWM signal for the servo.
VCC External 5V Power supply for the servo.
GND GND Ground connection (shared).
LCD 1602 i2c
SDA D2 (GPIO4) I2C data line.
SCL D1 (GPIO5) I2C clock line.
VCC 5V Power supply.
GND GND Ground connection.
How It Works
Rotary Encoder:
Turning the rotary encoder adjusts the servo angle in real-time.
The angle is constrained between 0° and 180° using constrain().
Servo:
The servo moves to the specified angle whenever the encoder is turned.
LCD Display:
The current angle is displayed in real-time on the LCD.
Code:
https://github.com/ukkokalevala/Rotar...
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: