attiny-led-switch

1 year ago 98
  • Description
  • Documents
  • BOM
  • Attachments
  • Members
  • Comments

Description

Yet another led strip switch with optical proximity sensor TCRT5000. Very small foot print, low cost and rich capability. Based on attiny85, source code in C. Features:

  • 9.6 x 29 mm, can be placed beside led strip;
  • proximity sensor max work distance about 50mm;
  • source voltage 12V;
  • mosfet switch can control led strip with in series resistor up to 2A;
  • switch on|off by short "press";
  • on|off with fade effect;
  • adjust bright level by long "press";
  • bright controlled by PWM at 490Hz with 16 prefixed levels;
  • standby led, can be disabled via setup procedure;
  • auto power off timer, can be adjusted via setup to 0.5h, 1h, 2h, 4h. You can use attached HEX, or self compile from source (checked with WINAVR). Schema and source code are provided "AS IS", without warranty of any kind.

Documents

Sheet_1

attiny-led-switch

BOM

ID Name Designator Footprint Quantity
1 78L05G-AB3-R U3 SOT-89 1
2 IRLML2502TRPBF Q1 SOT-23(SOT-23-3) 1
3 4,7u C1 0805 1
4 ATTINY85-20SU U1 SOIC-8_208MIL 1
5 330 R1,R2 0805 2
6 20k R3 0805 1
7 2k R4 0805 1
8 10u C2 1206 1
9 LTST-C170GKT LED1 LED_0805 1
10 TCRT5000 . 5000 1

Attachments

Filename Download
main.c
main.hex

Members

Success
The owner does not allow comments in this project now

Comments (0)

goToTop
你现在访问的是EasyEDA海外版,使用建立访问速度更快的国内版 https://lceda.cn(需要重新注册)
如果需要转移工程请在个人中心 - 工程 - 工程高级设置 - 下载工程,下载后在https://lceda.cn/editor 打开保存即可。
有问题联系QQ 3001956291 不再提醒
svg-battery svg-battery-wifi svg-books svg-more svg-paste svg-pencil svg-plant svg-ruler svg-share svg-user svg-logo-cn svg-double-arrow
We use cookies to offer you a better experience. Detailed information on the use of cookies on this website is provided in our Privacy Policy. By using this site, you consent to the use of our cookies.