fish001

[Verified] ATtiny13 encoder speed dimming module

 
Overview

As of the release date (July 3, 2022), no similar projects have been found on oshwhub, which can be regarded as filling the gap.

1.Design principle

As we all know, it is not difficult to use a sliding rheostat to adjust the speed of the ne555, but what about the encoder?

The principle of the encoder is to convert displacement into a periodic electrical signal, and then convert this electrical signal into counting pulses, and use the number of pulses to represent the size of the displacement.

Based on the particularity of the signal, the NE555 is no longer useful at this time and requires a microcontroller.

 

2. Component selection

Most of these products on the market use STM8 series microcontrollers, but our scenario does not require complex functions, only speed adjustment.

So I found the ATtiny 13A which is extremely cheap and supports Arduino.

The MOS tube is SI2308, with a continuous drain current of 2A, which can be replaced according to your actual needs.

The LDO is 78L05 with a maximum input voltage of 30V, which can meet the needs of most situations.

 

3. Programming

The program is written using Arduino IDE, and the burning file is attached.

 

4.Circuit characteristics

Output 75Hz square wave drive MOS tube duty cycle adjustment range 0%-100%

After a short press of the switch, the fan runs at full speed. Short press again to turn it off. Turn the encoder to the right to accelerate.

5. Physical picture

Don't scold me. There's nothing I can do if the board isn't tinned.


The video allows you to intuitively feel the fan speed adjustment and how bad the test version will be without the anti-bounce circuit (the official version has the anti-jitter circuit)

参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-07-02 06:28:27
  • NAT source code
  • Recruitment Brochure of a Changsha Electronics Co., Ltd.
  • AD7280 cannot be adjusted
  • Ideas on practical charging solutions for electric vehicles
  • [EEWORLD 20th Community Star] Money-Saving October Star Announced
  • How to burn the program into NXP's LPC1820FET100?

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号