打印
[Atmel]

LED step-up converter with ATtiny85

[复制链接]
1005|0
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
Idea

Build a cheap and simple full software controlled step-up (boost) converter to drive a LED string of 10 LEDs. LEDs are used as string to light up a acrylic engraved plate placed in a holder (also made out 5 layers of lasered black acrylic glas). Step up is from 5V to about 30V, current regulated to about 20mA.


Circuit
Poti is for software features only. Current is measured by voltage at 10 Ohm resitor feedback to uC ADC3. Standard components like 1N4148 and BC817-40 are good enough for delivering 20mA output current (software limit here, more might be possible). Coil is a standard 100uH coil, but should be able to withstand 250mA as coil current is at least LED-current times boost-factor. Boost-factor is about 6 (30V LED vs 5V input).

Software
The software is just a small Arduino file, it needs the ATtin85 hardware lib from here to run on an ATtiny85. PWM is operated at 100kHz and duty cycle is adjusted adaptive in function 'regulate' according the desired brightness and the current measured. Main loop does set the brightness according first half of trimmer setting or does brightness up and down for second half of trimmer setting for a little effect.

LEDStepUp.zip (397.47 KB)

相关帖子

发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

个人签名:http://shop34182318.taobao.com/ http://shop562064536.taobao.com

2399

主题

6963

帖子

68

粉丝