WordPress database error: [Table './meandr_base/anzpz_usermeta' is marked as crashed and last (automatic?) repair failed]
SELECT user_id, meta_key, meta_value FROM anzpz_usermeta WHERE user_id IN (1) ORDER BY umeta_id ASC

0

Microcontroller in led lamp

Lamp circuit is shown in figure. At field transistor VT1, droß village L1, diode and capacitor C4 VD1 assembled converter, control pulses for which produces microcontroller DD1. With rolling contact podstroennogo resistor R1 is removed and served on ADC input of the microcontroller part stresses Research Institute of nutrition for its control. Right-click the SB1 include lantern and adjust the brightness of its light. Five LEDs Dov EL1-EL5 included consecutively. To open them, voltage 3.7 v, coming through the diode Here when the converter is not working (micro controller DD1 is in sleep mode), this is clearly inadequate, so disabling power LEDs.

Если нет ограничений по габаритам платы, вместо микроконтроллера ATtiny13A-SU можно установить ATtiny13A-PU, а примененный в ори­гинале малогабаритный дроссель LQH43CN221K типоразмера 1812 для поверхностного монтажа заменим на RLB0712 с проволочными выводами. Его индуктивность может находиться в пределах 100…220 мкГн. Вместо диода MBR0540 подойдёт отечественный КД212А, а вместо полевого транзистора BSS13LT1G – 2N7002 или IRLR2905.

Программа микроконтроллера обес­печивает регулирование яркости свече­ния светодиодов, быстрое и отложен­ное автоматическое выключение фона­ря, индикацию недопустимого пониже­ния питающего напряжения. Таймер Т0 генерирует управляющие импульсы в режиме быстрой ШИМ. К неинверти­рующему входу встроенного в микро­контроллер аналогового компаратора подключён внутренний источник образ­цового напряжения, а на его инверти­рующий вход контролируемое напря­жение поступает с входа ADCЗ через входной коммутатор АЦП. Состояние выхода компаратора программа микро­контроллера определяет, читая разряд АСО регистра ACSR. Если АСО=0, то на­пряжение питания в норме. При АСО=1 оно ниже допустимого, регулирование яркости запрещено, через 15 с микро­контроллер перейдет в режим “сна”.

Timers used implementation lamp off programmatically and represent three-and four-byte schjotchi Ki. dekrementiruemye by interruptions from the timer 0. The original number in the meter is equal to the required delay you off in seconds multiplied by its frequency — 37500 route boards governing impulses in the Highlanders. One tie measures serves to quickly turn off the lamp and works only when the maximum brightness mini LEDs. It you support — from 15, after which the program turns off LEDs and microcontroller POWER DOWN mode with minimum consumption of energy use. Another timer Rabo melts since lamp and you turns it after 10 min. This prevents premature times row supply batteries if lamp is switched off at the time.

При нажатии на кнопку SB1 выклю­ченного фонаря микроконтроллер вы­ходит из “спящего” состояния и про­грамма включает светодиоды с мини­мальной яркостью. Нажатиями на кнопку можно повысить яркость до необходимой. Предусмотрено семь её градаций. Достигнув максимума, яр­кость скачком уменьшается до мини­мальной и процесс повторяется. По мере разрядки источника питания его напряжение понижается, соответствен­но уменьшается яркость свечения фо­наря. В тот момент, когда напряжение станет меньше порога срабатывания компаратора, яркость скачком понизит­ся до минимальной, а через 15 с фо­нарь выключится. Однако за это время можно нажатиями на кнопку установить уровень яркости, меньший того, при котором произошел “сброс”. Вследст­вие уменьшения нагрузки питающее напряжение вновь станет больше поро­га срабатывания компаратора и фонарь сможет проработать ещё некоторое время.

In the attached to this article FONAR-2M.asm is the source code of a program in Assembly language. Available at the beginning of the definition

#define Li_Ion

indicates that the program has for the microcontroller used lamp from lithium-ion batteries with a nominal voltage regulator in 3.7. If zakommentroaat is defined, by putting a semicolon in front of it, the program will change the value of some constants, and she 100 no suitable for lamp supply Xia from two galvanic cells with a total voltage of 3 v. To save the reader from unnecessary hassle, attached the results broadcast both application options: FONAR-2M.hex and FONAR_2M_3V.hex, respectively. Micro controller configuration in both cases programmes mirujut under the table.In the schema change has a "first step-up gotchathat leads to unpleasant consequences. Disruption of industry representative pulses (SHI-modulator in Mick rokontrollere) leads to Burnout transistor VT1. damaged and droß SEL L1. Therefore, the first inclusion of the converter is recommended about harassing without transistor VT1, con liruja the availability of the output pulses RVO microcontroller oscillogra POF. You must then install cadaver Tomb store and adjust the trimpot R1 tension soon tion protection from over-discharging the supply item or their Lantern batteries.

When you apply the lithium battery the regulator LIR18650 or similar with a nominal voltage of 3.7 in its minimum voltage is approximately 2.75 in. This proposal will need to apply to voltage conclusions of Pete tion lamp from laboratory sources Nick or, for example, from two partially exhausted of galvanic elements. Preliminary engine podstroechnogo resistor R1 must be installed to the top Polo scheme. Include food, move those engine in the reverse direction by checking the button presses SB1 ability to change brightness. When it becomes impossible, the wording is finished. This should about izojti at a voltage between the movement and the lower output schema podstroechnogo resistor of about 1.1 in.

Регулировку фонаря, предназна­ченного для питания от гальваниче­ской батареи, с загруженными в про­граммную память кодами из файла FОNАR_ 2М_3V.hех производят анало­гично. Но во время его регулировки напряжение питания должно быть 2…2,2 В. Понятно, что в этом случае защищается не батарея, а само устройство от непредсказуемых дей­ствий микроконтроллера при даль­нейшем снижении напряжения пита­ния.

Коэффициент полезного действия преобразователя — не менее 75 %, по­требляемый ток при максимальной яр­кости свечения светодиодов — 150 мА, ток через светодиоды — не более 30 мА. В “спящем” режиме фонарь потребляет ток 8 мкА, причём его основной потре­битель — подстроечный резистор R1.

Download the file to the project

Author: N. SALIMOV, Revda, Sverdlovsk region.

admin

Leave a Reply

Your email address will not be published. Required fields are marked *