1 / 13

Regulator of changing illumination

NATIONAL TECHNICAL UNIVERSITY OF UKRAINE “KPI” INSTRUMENT MAKING FACULTY OPTICAL AND OPTOELECTRONIC DEVICES DEPARTMENT КАФЕДРА. Regulator of changing illumination. Supervised by : Borovitsyi V . N . Kondratenko D . U. General description.

jase
Download Presentation

Regulator of changing illumination

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. NATIONAL TECHNICAL UNIVERSITY OF UKRAINE “KPI” INSTRUMENT MAKING FACULTY OPTICAL AND OPTOELECTRONIC DEVICES DEPARTMENT КАФЕДРА Regulator of changing illumination Supervised by: BorovitsyiV.N. KondratenkoD.U.

  2. General description • Device regulates the illumination depending onthe external level of illumination. LED is used as a light source. Регулятор переменной освещенности

  3. Circuit diagram Регулятор переменной освещенности

  4. Software .include "tn15def.inc" .equ vh =3 .equ vuh1 =0 .equ vuh2 =1 .def tmp =R16 .org 0 rjmp Reset .org 8 rjmp ADC_Complete nop nop Регулятор переменной освещенности

  5. Software Reset: ; Настраиваем порт для работы ldi tmp,0b00000011 out DDRB,tmp out PORTB,tmp ; Выбрали опорное напряжение ; Прижали результат влево ; Напряжение измеряем с вывода ADC2 (PB3) ldi tmp,0b00100010 out ADMUX,tmp ; АЦП включен ; Но не запущен ; Включен режим автозапуска ; Прерывания от АЦП разрешены Регулятор переменной освещенности

  6. Software ; Выбран максимальный делитель входной частоты ldi tmp,0b11101111 out ADCSR,tmp ; Запуск ШИМа ldi tmp,0b01110101 out TCCR1,tmp ldi tmp,255 out OCR1A,tmp ldi tmp,204 out OCR1B,tmp ; Разрешаем прерывания ; ldi tmp,0b00000100 ; out TIMSK,tmp Регулятор переменной освещенности

  7. Software ; Разрешаем прерывания sei ; Основная программа не делает ничего Main: rjmp Main ; Обработка прерывания АЦП ADC_Complete: ; Считали результат (младшими разрядами результата пренебрегаем) in tmp,ADCH out OCR1A,tmp Регулятор переменной освещенности

  8. Software cpi tmp,100 brsh LED_12 ; Если больше или равно переходим... cbi PortB,vuh1 reti LED_12: sbi PortB,vuh1 reti Регулятор переменной освещенности

  9. Developing process... Регулятор переменной освещенности

  10. Results Регулятор переменной освещенности

  11. Demonstration Регулятор переменной освещенности

  12. Thank you for your attention Contact us:National Technical University of Ukraine “KPI”Optical and optoelectronic devices departmentKyiv 03056, prospektPeremogy 37 http://ooep.ntu-kpi.kiev.ua/ Project developed within the limits of subject “Microprocessors and computers” http://ooep.ntu-kpi.kiev.ua/microcontrollers/ Регулятор переменной освещенности

  13. Thank you for your attention Thank you for your attention • Project by: • Chef ShpakovaO.S. • PragrammerNazdravetskyiO. • Soldererand device testerDeykoA.B. Регулятор переменной освещенности

More Related