23
LOGO Multiple Electronic Device Remote Control Mr. Suwich Chaivatmalakul st111207 CSIM Mr. Phattarachai Chaimongkol st111231 CSIM Mr. Worawit Panpanyatep st111453 CSIM Mr. Thanakorn Piroonsith st111643 CSIM

LOGO Programming Languages and Compilers Multiple Electronic Device Remote Control Mr. Suwich Chaivatmalakul st111207 CSIM Mr. Phattarachai Chaimongkol

Embed Size (px)

DESCRIPTION

Abstract ● Are you tired? ●Most regular electronic devices are controlled manually or has its own remote control. ●If this continues, what will happen?

Citation preview

Page 1: LOGO Programming Languages and Compilers Multiple Electronic Device Remote Control Mr. Suwich Chaivatmalakul st111207 CSIM Mr. Phattarachai Chaimongkol

LOGO

Programming Languages and Compilers

Multiple Electronic Device Remote ControlMr. Suwich Chaivatmalakul st111207 CSIM

Mr. Phattarachai Chaimongkol st111231 CSIMMr. Worawit Panpanyatep st111453 CSIMMr. Thanakorn Piroonsith st111643 CSIM

Page 2: LOGO Programming Languages and Compilers Multiple Electronic Device Remote Control Mr. Suwich Chaivatmalakul st111207 CSIM Mr. Phattarachai Chaimongkol

Contents

Abstract

Sample language

Sample User Interface

Demo

[Image Info] www.wizdata.co.kr - Note to customers : This image has been licensed to be used within this PowerPoint template only. You may not extract the image for any other use.

Questions and Answers

Page 3: LOGO Programming Languages and Compilers Multiple Electronic Device Remote Control Mr. Suwich Chaivatmalakul st111207 CSIM Mr. Phattarachai Chaimongkol

Abstract ● Are you tired?

● Most regular electronic devices are controlled manually or has its own remote control.

● If this continues, what will happen?

Page 4: LOGO Programming Languages and Compilers Multiple Electronic Device Remote Control Mr. Suwich Chaivatmalakul st111207 CSIM Mr. Phattarachai Chaimongkol

One day, sooner or later…

Page 5: LOGO Programming Languages and Compilers Multiple Electronic Device Remote Control Mr. Suwich Chaivatmalakul st111207 CSIM Mr. Phattarachai Chaimongkol

Abstract (Cont.)● Make life easier

● One remote for all

Page 6: LOGO Programming Languages and Compilers Multiple Electronic Device Remote Control Mr. Suwich Chaivatmalakul st111207 CSIM Mr. Phattarachai Chaimongkol

What capabilities of that?

● Programmability

● Simplicity

● Practicality

Page 7: LOGO Programming Languages and Compilers Multiple Electronic Device Remote Control Mr. Suwich Chaivatmalakul st111207 CSIM Mr. Phattarachai Chaimongkol

Who is our target objective?● Electricity Generating Authority of Thailand

(EGAT)

Page 8: LOGO Programming Languages and Compilers Multiple Electronic Device Remote Control Mr. Suwich Chaivatmalakul st111207 CSIM Mr. Phattarachai Chaimongkol

Who is our target objective?● Home user

Page 9: LOGO Programming Languages and Compilers Multiple Electronic Device Remote Control Mr. Suwich Chaivatmalakul st111207 CSIM Mr. Phattarachai Chaimongkol

Software Architecture

Page 10: LOGO Programming Languages and Compilers Multiple Electronic Device Remote Control Mr. Suwich Chaivatmalakul st111207 CSIM Mr. Phattarachai Chaimongkol

Activity diagram

Page 11: LOGO Programming Languages and Compilers Multiple Electronic Device Remote Control Mr. Suwich Chaivatmalakul st111207 CSIM Mr. Phattarachai Chaimongkol

Language Grammar1. <device_assign> := <device> <number> =

<device_name> <number> <watt>goal ::=

2. elec_cost3. device_assign_list4. button_assign_list5. timer_assign_list6. function_list7. stmt_list

Page 12: LOGO Programming Languages and Compilers Multiple Electronic Device Remote Control Mr. Suwich Chaivatmalakul st111207 CSIM Mr. Phattarachai Chaimongkol

Language Grammar (Cont.)8. device_assign_list ::=9. device_assign_list device_assign10. | device_assign 11. device_assign ::= DEVICE NUMBER EQUAL

device_name NUMBER WATT 12.device_name ::= ID 13.button_assign_list ::=14. button_assign_list button_assign15. | button_assign16.button_assign ::=17. BUTTON NUMBER EQUAL stmt_list

Page 13: LOGO Programming Languages and Compilers Multiple Electronic Device Remote Control Mr. Suwich Chaivatmalakul st111207 CSIM Mr. Phattarachai Chaimongkol

Language Grammar (Cont.)18.stmt_list ::=19. stmt_list stmt20. | stmt 21.stmt ::=22. action_stmt SEMI23. | if_stmt 24. if_stmt ::=25. IF LPAREN cond_stmt_list RPAREN THEN LBRACE

stmt_list RBRACE26. | IF LPAREN cond_stmt_list RPAREN THEN

LBRACE stmt_list RBRACE ELSE LBRACE stmt_list RBRACE

Page 14: LOGO Programming Languages and Compilers Multiple Electronic Device Remote Control Mr. Suwich Chaivatmalakul st111207 CSIM Mr. Phattarachai Chaimongkol

Language Grammar (Cont.)27.cond_stmt_list ::=28. cond_stmt_list cond_op cond_stmt29. | cond_stmt 30.cond_op ::=31. AND32. | OR 33.cond_stmt ::=34. device_name IS ON35. | device_name IS OFF36. | TOTAL_WATT compare_op NUMBER

Page 15: LOGO Programming Languages and Compilers Multiple Electronic Device Remote Control Mr. Suwich Chaivatmalakul st111207 CSIM Mr. Phattarachai Chaimongkol

Language Grammar (Cont.)37.compare_op ::=38. EQUAL39. | LT40. | GT41. | LT_EQUAL42. | GT_EQUAL 43.action_stmt ::=44. TURN ON device_name45. | TURN OFF device_name

Page 16: LOGO Programming Languages and Compilers Multiple Electronic Device Remote Control Mr. Suwich Chaivatmalakul st111207 CSIM Mr. Phattarachai Chaimongkol

Language Grammar (Cont.)46. timer_assign_list ::=47. timer_assign_list timer_assign48. | timer_assign 49. timer_assign ::=50. TIMER NUMBER EQUAL timer_cmd 51. timer_cmd ::=52. action_stmt AT TIME timer_day 53. timer_day ::=54. ON day_list | EVERYDAY | EVERY day_list 55.day_list ::=56. day_list DAY | DAY

Page 17: LOGO Programming Languages and Compilers Multiple Electronic Device Remote Control Mr. Suwich Chaivatmalakul st111207 CSIM Mr. Phattarachai Chaimongkol

Language Grammar (Cont.)57. function_list ::=58. function_list func_stmt59. | func_stmt 60. func_stmt ::=61. FUNCTION ID LBRACE stmt_list RBRACE 62.elec_cost ::=63. NUMBER BAHT PER WATT_HOUR

Page 18: LOGO Programming Languages and Compilers Multiple Electronic Device Remote Control Mr. Suwich Chaivatmalakul st111207 CSIM Mr. Phattarachai Chaimongkol

Application User Interface

Page 19: LOGO Programming Languages and Compilers Multiple Electronic Device Remote Control Mr. Suwich Chaivatmalakul st111207 CSIM Mr. Phattarachai Chaimongkol

Application User Interface (Cont.)

Page 20: LOGO Programming Languages and Compilers Multiple Electronic Device Remote Control Mr. Suwich Chaivatmalakul st111207 CSIM Mr. Phattarachai Chaimongkol

Application User Interface (Cont.)

Page 21: LOGO Programming Languages and Compilers Multiple Electronic Device Remote Control Mr. Suwich Chaivatmalakul st111207 CSIM Mr. Phattarachai Chaimongkol

Application User Interface (Cont.)

Page 22: LOGO Programming Languages and Compilers Multiple Electronic Device Remote Control Mr. Suwich Chaivatmalakul st111207 CSIM Mr. Phattarachai Chaimongkol

Application User Interface (Cont.)

Page 23: LOGO Programming Languages and Compilers Multiple Electronic Device Remote Control Mr. Suwich Chaivatmalakul st111207 CSIM Mr. Phattarachai Chaimongkol

LOGOQuestion? & Answer!

Thank You!