Home
Handheld Device to Control Intelligent Lighting System
Contents
1. The letters on the GLCD have been displayed via glowing different combination of pixels 7 Some of the pages are as follows 5 1 Page 1 Floor Screen The top most box displays a welcome message along with the name of the handheld device This page displays the number of floors 3 floors here and a box at the bottom asks the user to choose the desired floor refer figure 5 F1 F2 and F3 are the names used for Floor 1 Floor 2 and Floor 3 respectively The black border around F1 indicates that floor 1 has been selected Figure 5 Floor Screen 5 2 Page 2 Room Screen The top most box would display the floor number that has been selected This page displays the total number of rooms available on this floor 3 rooms here A box at the bottom again asks the user to select the desired room refer figure 6 R1 R2 and R3 are the names used for Room 1 Room 2 and Room 3 respectively The black border around R1 indicates that Room 1 has been selected International Journal of Computer Applications 0975 8887 Volume 65 No 7 March 2013 Figure 6 Room Screen 5 3 Page 3 LED Panel Screen This page contains information about how many LED panels are there in a room The top most columns display the exact path of the panel i e floor and room information The bottom most box asks the user to select its desired panel P1 P2 and P3 are the names used for LED Panel 1 Panel 2 and Panel 3 respectively refer figure 7 The b
2. contrast this pin is given a logic high e Register Select The pin P0 7 of the uC has been connected to the RS pin of the GLCD refer figure 3 and figure 4 This pin is kept high to display data and low for instruction code e Read Write The pin P0 6 of the uC has been connected to the R W pin of the GLCD refer figure 3 and figure 4 This pin is kept low to write to the register of the GLCD while it is kept high to read from the register of the GLCD e Enable The pin P0 5 of the uC has been connected to the EN pin of the GLCD refer figure 3 and figure 4 When this pin is kept high it reads data while it writes data at high to low transition falling edge e Reset The pin P0 2 of the uC has been connected to the RST pin of the GLCD refer figure 3 and figure 4 When this pin is applied with a high signal the uC gets resets and again starts from beginning position 5 0 V a LPC2148 Reset z aag PPP RP Pe a ee ee eee we T al Figure 4 Basic Interfacing of GLCD LCD Driving Voltage V pin of the GLCD is connected to pin 1 of 10K potentiometer refer figure 4 This is the output voltage that would drive the GLCD 40 Backlight Controls LED and LED pins of the GLCD refer figure 4 are connected to V and Gnd respectively This will control the backlight of GLCD 5 PAGE FORMATION FOR EMBEDDED USER INTERFACE The project here consists of pages with different information displayed on them
3. control the various panels installed in various rooms in various floors Graphical LCD is used to display floors and rooms in a building having panels installed After selection of panel action to be taken is shown on the page and now user is required to select one Programming of LPC2148 will be done using a Serial interface which is a USB to RS232 convertor as ARM header board has RS232 interface because of IBM PC standards 5 2 therefore for programming purposes it has to be used to connect it to computer Power supply unit is a 5 volt D C supply via an adaptor to GLCD and ARM board 2 6 3 ARCHITECTURE OF GRAPHIC LCD 128x64 The 128x64 GLCD is divided into two equal halves with each half being controlled by a separate KSO108 controller 6 Such GLCDs using KS0108 controller involve paging scheme 1 e whole GLCD is divided equally into pages The paging scheme of the graphical GLCD can be easily understood from figure 2 128x64 GLCD implies 128 columns and 64 rows In total there are 128x64 1024 pixels 39 II MI 128x64 LCD is divided equally into two halves Each half is controlled by a separate controller and consists of 8 pages In figure 2 CS stands for Controller Select Each page consists of 8 rows and 64 columns So two horizontal pages make 128 64x2 columns and 8 vertical pages make 64 rows 8x8 Let s assume that a single pixel on top left of the graphic LCD needs to be glowed For t
4. using serial monitoring software With the help of command packets handheld device can perform various operations viz status check status toggle timer setting intensity level and disconnect With the help of this device panel selection from different rooms on different floors in a building can be done just by sending panel selection command With this design a universal handheld device has been developed which can perform various controlling operations on interior LED lighting system remotely 12 REFERENCES 1 Youjin Kim Insu Kim Tae gyu Kang Seong hee Park Analysis of IP based Control Networks for LED Lighting Fixture Communication New Trends in Information Science and Service Science NISS May 2010 307 312 2 Domingo Azucena N Castro Herber T J Pajarillo B Visaya Ballesil Reyes J A Hizon J R High Level Implementation of an ARM7 Microprocessor with Multicore Capabilities TENCON 2007 2007 IEEE Region 10 Conference Oct 2007 1 4 B Zhu Zhao you Dai Sheng hui Embedded LED Lighting Control System Research and Implementation Computer Science and Information Technology Aug 2009 553 557 International Journal of Computer Applications 0975 8887 Volume 65 No 7 March 2013 4 Toshiaki Fujii Fumlo Takeuchi Hisao Yamada Kazuo Kawasaki Akira Saitoh Tsuneyo Sumita DOT MATRIX LCD MODULE FOR GRAPHIC DISPLAY 64 x 320 dots IEEE Transactions on Consumer Electronics Vol C
5. 013 e Timer Intensity bits These six bits TO T1 T2 T3 T4 7 SAMPLE PACKETS AND ANALYSIS and T5 have been used for setting the timer or controlling the intensity of Panel Through some of the following sample codes it can be demonstrated how some of the commands are sent in two packets packet 1 and packet 2 and analysed by the central server 6 3 FUNCTIONS OF COMMAND AND 71 EXAMPLE 1 ACTION BYTE e PACKET 1 e 1 BYTE CS1 CS0 Fi_ FO Ri RO Pi PO FUNCTION ECST1 080 1 RO TERR HUNCHIONS lig 0s dee ee 0 ae os Check status on or In this packet CS1 and CSO are 0 which means that the status ott is being checked or the operation of switching on off of the ienei panel is being performed ADDRESS OF change F1 is 0 and FO is 1 which states that the panel is on 1 floor of FLOOR ROOM PANEL the building RI is 1 and RO is O states that the panel is in Room no 2 Total P1 is 1 and PO is O states that we are accessing Panel no 2 Disconnect Figure 11 Command Combinations e PACKET 2 e When CS0 0 AND CS1 0 SSI ss See srl ee eee a ed 2 BYTE can be In this packet A1 is 0 AO is 1 and TO is 1 which means panel Se a 0 off ee 7 2 EXAMPLE 2 Fars alo a oe ON SO SN SS on Mpare AA CHON csi CS0 Fi FO Ri RO P1 PO ee Be Oe OE e When CS0 0 AND CS1 1 nd 2 BYTE can be In this packet CS1 is 0 and CSO is 1 which means Timer or Matena A Ren BSE o0jo Timer Vale SetTimer_ Sites
6. E 28 No 3 Aug 1982 196 201 5 LPC214X user manual by NXP founded by Philips 6 Graphics LCD JHD12864E Datasheet 7 Hua Zhou Yang Liu Dimitar Antonov Kolev Jingjing Chen Zonghe Lai and Johan Liu Design for Embedded Chinese Display Smart Card High Density Microsystem Design and Packaging and Component Failure Analysis Jun 2006 152 156 8 Li Minglei Chen Guiying Shang xiaodong Mao huabin Design of LCD Display System for Handheld Devices Based on Linux Electronics Communications and Control CECC Sept 2011 822 825 9 Chandrashekhar Ghule Dr D G Wakde Gurjinder Virdi Neeta R Khodke Design of Portable ARM Processor based ECG Module for 12 lead ECG Data Acquisition and Analysis Biomedical and Pharmaceutical Engineering Dec 2009 1 8 10 Carmine Landi Pietro Merola Giacomo Ianniello ARM Based Energy Management System using Smart Meter and Web Server Instrumentation and Measurement Technology Conference I2MTC 2011 1 5 11 T P Huynh Y K Tan K J Tseng Energy Aware wireless Sensor Network with Ambient Intelligence for Smart LED Lighting System Control IECON 2011 37th Annual Conference on IEEE Industrial Electronics Society Nov 2011 2923 2928 45
7. International Journal of Computer Applications 0975 8887 Volume 65 No 7 March 2013 Handheld Device to Control Intelligent Lighting System Ramandeep Singh Assistant Professor ITM University Gurgaon ABSTRACT With the rise in technology one can accomplish things at a much faster rate and with a touch of a single button Handheld aims at empowering a single user to control various LED panels that have been installed on various floors in various rooms of an educational institution Handheld basically controls and receives information from an intelligent lighting system incorporating a graphic user interface and the touch control technology Not only is it convenient to use but also saves electricity 10 KEYWORDS ARM7 microcontroller LPC2148 Graphical LCD JHD12864E Intelligent Lighting System LED panels GENERAL TERMS Interfacing of GLCD with ARM7 controller Lighting systems Central control Packet design for serial communication 1 INTRODUCTION Handheld devices are very popular in various fields for its features of easy carrying and flexibility A few years ago using black and white LCD for handheld device display was luxury but now TFT true color display is widely used in handset device in accompany with the development of technology 8 In this paper use of a handheld device to control an embedded intelligent lighting system would be discussed All the connections as well as the features have been expla
8. ee 0 1 Intensity Value Set Intensity _ F1 is 0 and FO is 1 which states that the panel is on 1 floor of ao GR A eg aS Si RI is 1 and RO is O states that the panel is in Room no 2 Figure 13 Action P1 is 1 and PO is 1 states that we are accessing Panel no 3 e PACKET 2 e When CS0 1 AND CS1 1 2 BYTE i Ca HR a In this packet Al and AO are 0 which means Timer is being Total ot gi 011011 27 equivalent timer value will be loaded to the Timer of microcontroller 8 FUNCTION DEFINATION Figure 14 Action This section explains various function declarations which we are using as part of our research work in the handheld device FD have been kept for future development i e to introduce Following are the function declaration some more functions in the existing setup 43 e void ctrloff e void displayon e void displayoff e void setcolumn unsigned char y e void setpage unsigned char x e void setstartline unsigned char z e void cliricd 8 1 CONTROL FUNCTIONS e void ctrloff This function is used to provide a low signal to all the control pins i e Register select RS Read Write RW Enable EN Controller Select CS1 CS2 e void displayon This function is used to glow the LCD s backlight without affecting the internal status and displays ram data e void displayoff This function is used to off the LCD display backlight without affecting the inter
9. his the row would be set along with the column which will calculate the starting address reference from GLCD manual After making CS1 at logic high and giving as 00000001 using the data bus a single pixel will glow on the display Controller CS 1 CS 0 Controller CS 0 CS 1 64 bits Page 4 Page 4 Page 5 Page 5 Page 6 Page 6 N e a Sa e a 64 bits 64 bits Figure 2 Paging Scheme aw a O 5 e e W W Pe es ow Ee S amp S tt ae e PST aa eee eaeaSaaom BAR Lu Figure 3 GLC Pin Diagram 4 PIN CONSIDERATION In this project the Port 0 of LPC2148 hereby wC for all the required Graphic LCD GLCD connections has been used The pins used along with their functions are e Data Lines The pins P1 0 to P1 7 of the uC have been assigned as data pins and have been connected to the DBO to DB7 pins of the GLCD refer figure 3 and are used to transfer data from the uC to the GLCD e Controller Select The pins P0 0 and PO 1 of the uC are connected to the CS1 and CS2 pins of the GLCD refer figure 3 The various combinations of these two pins would result in the desired page selection International Journal of Computer Applications 0975 8887 Volume 65 No 7 March 2013 e Contrast Adjustment The 2 pin potentiometer is connected to the V pin of the GLCD refer figure 3 This pin is responsible for the adjustment of contrast of the GLCD In order to achieve sharpest
10. ined This paper explains the basic block diagram along with its connections with the micro controller The main objective of the paper is to discuss this handheld device and explore future possibilities into exploiting this device Also it is not always necessary to have lights at full intensity hence the intensity can also be controlled using this device 11 2 BLOCK DIAGRAM OF HANDHELD RS 232 Protocol Figure 1 Block Diagram Vaibhav Makharia ECE Department ITM University Gurgaon Vaibhav Singhal ECE Department ITM University Gurgaon The ARM7TDMI S_ is a general purpose 32 bit microprocessor which offers high performance and very low power consumption 5 2 The ARM controller has been connected to a Graphic LCD along with a keypad matrix refer figure 1 which constitutes the handheld device ARM has been chosen because of abundant external interface resources 3 The data gets transferred from ARM to GLCD parallel buses 9 The data that is being transferred from the handheld device to the main computer server gets transferred serially and SerialMon Data Monitor software is being used for simulation purpose which has already been installed on the main server From keypad matrix 3 switches are being out of these 3 2 switches have been used for going forward and backward or incrementing and decrementing any values The third switch basically is being used for performing Enter Go operation The server would further
11. lack border around P1 indicates that panel 1 has been selected F1 R1 represents the floor and the room combination that is room on floor 1 Figure 7 Panel Screen 5 4 Page 4 Command Screen This page shows the commands to control the selected LED panel The complete path location of the panel would be displayed in a box at the top refer figure 8 The user can check or change the status set the timer or intensity or totally disconnect the entire system as per his need There are three commands which have been described The user can choose whichever command is desired F1 R1 P1 represents floor that has been selected the room on that floor and the panel in that room that has been selected 41 Figure 8 Command Screen 5 5 Page 5 Command Screen This page shows two commands which gives the option to check the status or on and off the selected panel Figure 9 Command Screen 5 6 Page 6 Status Screen This page would tell the user the current status of the LED panel that has been selected The complete path location of the panel would be displayed in a box at the top refer figure 10 Figure 10 Command Screen International Journal of Computer Applications 0975 8887 Volume 65 No 7 March 2013 6 PACKET FORMAT DESIGNING In order for computer and controller to communicate various methods like DMX over IP serial communication Art Net and the ACN Architecture for Control Netwo
12. le character is made by combination of different hex values given to each column of each page Through this function those combinations are being passed The value of x is the page on which the data has to be passed and y is the column from where we have to start line of the data to be displayed 9 SNAPSHOT OF HANDHELD 9 1 PROJECT Figure 15 Snapshot of Handheld Figure 16 Snapshot of page formation The above figure shows an ARM7 microcontroller a Graphical LCD a USB to serial convertor and power supply 10 COMPARISON WITH CURRENT TECHNOLOGY One can easily argue about the installation of such complex system when the same can be achieved by a normal household switch But the advantage handheld provides is the ease of controlling several panels while being present at a certain place The user simply needs to pass the required command from the handheld which can be read by the server which would perform the desired action 44 Not only does it provide mobility it can also be used for fault detection in the various LED panels Also in an age where conservation of energy is an important aspect Handheld comes as a true innovation aimed at saving energy 11 RESULT Finally a handheld device has been developed that would control an interior LED lighting system Command packets are designed in 8 bit format which will be send from the handheld for controlling and analysis applications These packet formats can be analysed
13. nal status and display ram data e void setcolumn unsigned char y Function is used to select the column to which data has to be written in the LCD screen from the total of 128 columns in 128x64 graphical LCD e void setpage unsigned char x Function is used to select the page to which data has to be given from the total of 8 pages in 128x64 graphical LCD screen e void setstartline unsigned char z This function is used to set the start line from the column where we need to start the first letter of the string This function is generally used to scroll the string on the graphical LCD e void cliricd This function is used to delete the data contained in the LCD ram which is same as shown on the LCD screen 8 2 DATA FUNCTIONS 8 2 1 void Icddata unsigned char value unsigned int limit This function is used to pass the value of the character which needs to display on the GLCD as it is a combination of many pixels together and it can be decided which pixel has to be International Journal of Computer Applications 0975 8887 Volume 65 No 7 March 2013 displayed on graphical LCD So as a keyboard passes ASCII values to the computer similarly user needs to pass some special codes to display characters Through value the data at the first address of that character is passed which has to be displayed on GLCD 8 2 2 void Icdputs unsigned char y unsigned char x unsigned char str In graphical LCD a sing
14. rks 1 are available out of which serial communication by sending the respective bytes is being used 6 1 COMMAND AND SELECTION BYTE PANEL This byte is mainly responsible for the commands that are provided to the GLCD via the uC CS1 CSO Fi FO R1 RO Pi PO MSB LSB e Command bits Two bits CSO and CS1 refer to the command given to the server stating what has to be done with the selected panel CS1 cso e Floor bits These two bits FO and F1 are used to select a floor between the three floors available in the building where the panel is installed z p z e Room bits These two bits RO and R1 are used to select a room between the three rooms available in the previously selected floor where the panel is installed E nn e Panel bits These two bits PO and P1 are used to select the required panel between the three panels available in the selected room on which the given action needs to be performed z p lt FI R1 P1 F0 RO PO FUNCTION o 0 0 Floor Room Panel 0 0 1 Floor Room Panel 1 1 0 Floor Room Panel 2 6 2 ACTION BYTE This byte is the 2 byte which would be sent after the first byte has been received by the server and processed MSB LSB e Action bits Two bits AO and Al are used to communicate to the server what action needs to be performed on the selected panel 42 International Journal of Computer Applications 0975 8887 Volume 65 No 7 March 2
Download Pdf Manuals
Related Search
Related Contents
Controlador GSM22X JVC KW-NT500HDT Specification Sheet Contacts - psn ProForm 831.24813.0 Treadmill User Manual Copyright © All rights reserved.
Failed to retrieve file