DzQpnU7Q

Digital tube rotary encoder

 
Overview
Real-time adjustment of the servo angle of the Yiweilian light switch via serial port. This is a video demonstration of controlling it. [https://oshwhub.com/liujianqi1688/dan-pian-ji-guan-deng-shen-qi-lan-ren-kai-guan](https://oshwhub.com/liujianqi1688/dan-pian-ji-guan-deng-shen-qi-lan-ren-kai-guan
) The program can be downloaded directly (latest optimization as of November 20, 2024; one servo can be adjusted to three angles, highly recommended).
Below are the parameters for two servos installed on either side of the switch panel for on and off (for reference only). The angle can be fine-tuned according to the site conditions.
 
//The source code and PCB for the above work are publicly available. Search for the username "奇奇爱上单片机" on the "LCSC Open Source Hardware Platform".
//Microcontroller model: STC8G1K08 //1. When burning the program, be sure to select built-in IRC=30MHz. //2. Change the IRC debugging mode to "Do not adjust, use the internal preset frequency". //2. Set the reset pin to the IO port. //3. Uncheck "Erase user EEPROM area when downloading user program".
/*No technical support provided, just sharing for fun.*/ This is an open-source blogger's work; it is for use only and not for commercial purposes. For any questions, please discuss in the comments section below. Designer of this solution: Qiqi ( 
TikTok: The Cutest Mr. Qiqi in the Universe; Kuaishou ID: Qiqi Loves Microcontrollers; Bilibili: Qiqi Loves Microcontrollers); QQ: 1715755109 (For custom microcontroller programs and PCB designs, please add me as a friend and indicate your purpose. Paid design services are available; serious inquiries only). QQ Group: 499067314 (Welcome all microcontroller enthusiasts to join the group; group files and materials are available for free download).
参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2026-03-20 22:56:13

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
community

Robot
development
community

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号