Date post: | 12-May-2017 |
Category: |
Documents |
Upload: | roxana-adr-roxana |
View: | 220 times |
Download: | 1 times |
Alewijnse Training Center
2013
Student: Florin VRABIE
ELECTRIC BLINDS
Supervisor: Conf. Dr. Ing. Mircea ILIEV
Content Introduction Developing project Circuit design Wiring diagram Software implementation Conclusions
Introduction
Purpose of this paper is to regulate the amount of light that enters a room, for industrial or household.
Due to technological development in recent years, this type of system, "Electric Blinds" are increasingly common in "smart homes".
The limits of rotation of the blade are pre-programmed, the uppermost and lowest positions are initialized first.
Circuit design The circuit is powered from the main
distribution. Because the network provides 220V AC , a power supply is required to descend and to convert AC voltage to DC.
Software implementationAfter initializing all input variables the main program is next:Test the buttons:start: if (Button(&PORTA, 2, 1, 1)) oldstate = 1; if (oldstate && Button(&PORTA, 2, 1, 0)) { oldstate=0; if (ilumin_set<100) ilumin_set++; }if (Button(&PORTA, 3, 1, 1)) oldstate1 = 1; if (oldstate1 && Button(&PORTA, 3, 1, 0)) { oldstate1=0; if (ilumin_set>0) ilumin_set--; }
The value received from the buttons is converted and shown on the display:
adc_temp=ADC_Read(1); ilumin=adc_temp>>2; ilumin=100-(ilumin*100)/255; bytetostr(ilumin, txt2); Lcd_Out(1,1,"V.reala V.progr"); Lcd_Out(2,3,txt2); bytetostr(ilumin_set, txt2); Lcd_Out(2,11,txt2); adc_temp=ADC_Read(0); cap_cursa=adc_temp>>2;
Software implementation
Conclusion In the various industrial activities we need
lighting control to a certain site, it is necessary to increase comfort in the home or to ensure the achievement of the optimum parameters of photosensitive components.
To design a device using a microcontroller studying lighting and a light sensor, I used a photoresist included in a resistive divider which will provide variable output voltage proportional to the brightness of the photoresist.