LED step-up converter with ATtiny85: Unterschied zwischen den Versionen

Aus Hackerspace Ffm
Wechseln zu: Navigation, Suche
(Die Seite wurde neu angelegt: „== 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 acr…“)
 
(Fritzing-Projekt ergänzt)
 
(6 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt)
Zeile 1: Zeile 1:
 
== Idea ==
 
== 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.
 
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.
 +
 +
[[Datei:PlexiglasStand.jpg|400px]]
 +
[[Datei:Led stepup1.jpg|400px]]
 +
 +
[http://youtu.be/oMV0tqm9Ufk See video]
  
 
== Circuit ==
 
== 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).
 
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).
 +
 +
[[Datei:LedStepUpCircuit.jpg|640px]]
 +
 +
[[Media:Software-Konstantstromquelle_web.svg]]
 +
 +
Passendes Fritzing-Projekt von Cheasy: [[Media:LEDStepUp.fzz.zip]]
 +
 +
== Software ==
 +
The software is just a small Arduino file, it needs the ATtin85 hardware lib from [https://github.com/damellis/attiny/archive/master.zip 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.
  
 
== Download ==  
 
== Download ==  
All source files, schematic, Arduino code, LTSpice simulation files etc. included here:
+
All source files, schematic, Arduino code, LTSpice simulation files etc. included here: [[Datei:LEDStepUp.zip]]

Aktuelle Version vom 15. Dezember 2014, 19:46 Uhr

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.

PlexiglasStand.jpg Led stepup1.jpg

See video

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).

LedStepUpCircuit.jpg

Media:Software-Konstantstromquelle_web.svg

Passendes Fritzing-Projekt von Cheasy: Media:LEDStepUp.fzz.zip

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.

Download

All source files, schematic, Arduino code, LTSpice simulation files etc. included here: Datei:LEDStepUp.zip