Presentation is loading. Please wait.

Presentation is loading. Please wait.

Raz Zur Instructor: Boaz Mizrahi Developing a Control Card Based on I2C Bus 22.04.04 Final Presentation.

Similar presentations


Presentation on theme: "Raz Zur Instructor: Boaz Mizrahi Developing a Control Card Based on I2C Bus 22.04.04 Final Presentation."— Presentation transcript:

1

2 Raz Zur Instructor: Boaz Mizrahi Developing a Control Card Based on I2C Bus 22.04.04 Final Presentation

3 Presentation Contents: Introduction – Project's Purposes. Introduction – Project's Purposes. General Background. General Background. Block Division. Block Division. Hardware and Blocks Specifications. Hardware and Blocks Specifications. Software Structure. Software Structure. Working according to Schedule. Working according to Schedule. Summary and Conclusions. Summary and Conclusions.

4 Introduction–Project's Purposes: I 2 C BUS יחידתשליטה LED Control Serial EEPROM Intrusion Alert Fans Control Key Pad LCD Display Temp. Sensor Building a monitoring and control card, to be installed in a stand-alone system. Building a monitoring and control card, to be installed in a stand-alone system. The card will perform a few routines that monitor and control the system, according to the output of sensors that are installed in the system. The card will perform a few routines that monitor and control the system, according to the output of sensors that are installed in the system. The communication between the devices of the card will be implemented using the I2C serial communication protocol. The communication between the devices of the card will be implemented using the I2C serial communication protocol.

5 General Background: Today's world of technology requires monitoring and control.Today's world of technology requires monitoring and control. One of the better solutions – building a "monitoring" system apart from, and parallel to the "original" system.One of the better solutions – building a "monitoring" system apart from, and parallel to the "original" system. The advantages – system resources, development and maintenance, simplicity.The advantages – system resources, development and maintenance, simplicity. The idea – maximum monitoring and control with minimum interference.The idea – maximum monitoring and control with minimum interference. Implementation – with a serial protocol.Implementation – with a serial protocol. Technological solution – the I2C serial communication protocol.Technological solution – the I2C serial communication protocol. I2C - Short for Inter-IC, a type of bus designed by Philips Semiconductors in the early 1980s, which is used to connect integrated circuits (ICs).I2C - Short for Inter-IC, a type of bus designed by Philips Semiconductors in the early 1980s, which is used to connect integrated circuits (ICs).

6 Blocks Division: The POWER Block: Power supply.The POWER Block: Power supply. The CONTROL Block: The “Brain” – the control unit.The CONTROL Block: The “Brain” – the control unit. The SENSE Block: Temperature sensing, fans control, and intrusion sensing.The SENSE Block: Temperature sensing, fans control, and intrusion sensing. The MMI Block: User interface – display unit, keypad, and LEDs.The MMI Block: User interface – display unit, keypad, and LEDs. The EEPROM Block: Designated memory.The EEPROM Block: Designated memory.

7 Hardware and Blocks Specifications: The POWER block: Voltages supply – entrance voltage 12V, lowering to 3.3V and 5V, using regulators (LM1085).Voltages supply – entrance voltage 12V, lowering to 3.3V and 5V, using regulators (LM1085). Protections – diode bridge (DF005M) for protection against inverted voltage, and a fuse for protection against shortcut current.Protections – diode bridge (DF005M) for protection against inverted voltage, and a fuse for protection against shortcut current. Noise reduction – capacitors and coils circuits.Noise reduction – capacitors and coils circuits.

8 The CONTROL block: Microprocessor - PIC18F252, the I2C master.Microprocessor - PIC18F252, the I2C master. 4MHz oscillator – clock frequency for the microprocessor.4MHz oscillator – clock frequency for the microprocessor. Voltage translator – between 3.3V and 5V.Voltage translator – between 3.3V and 5V. MAX232 – a-synchronic communication with an outer computer.MAX232 – a-synchronic communication with an outer computer. Hardware and Blocks Specifications:

9 The SENSE block: LM75 – a device with I2C interface, which is a temperature sensor with 0.5 °C resolution.LM75 – a device with I2C interface, which is a temperature sensor with 0.5 °C resolution. LM87 – a device with I2C interface, which includes D/A for control of the fan speed, measurement of the fan speed, intrusion alert, entrances for far temperature sensors, and measurement of voltages in the card.LM87 – a device with I2C interface, which includes D/A for control of the fan speed, measurement of the fan speed, intrusion alert, entrances for far temperature sensors, and measurement of voltages in the card. Hardware and Blocks Specifications:

10 The MMI block: LCD screen – LK12-162, Display unit with I2C interface.LCD screen – LK12-162, Display unit with I2C interface. Keypad.Keypad. PCA9553 – a device with I2C interface for LEDs control.PCA9553 – a device with I2C interface for LEDs control. Hardware and Blocks Specifications:

11 EEPROM block: Designated memory – FM24C16U, serial EEPROM with I2C interface.Designated memory – FM24C16U, serial EEPROM with I2C interface. Hardware and Blocks Specifications:

12 Software Structure: The I2C protocol: Bus speed: 100KHz. Devices are addressed completely by software. The maximum allowable capacitance is 400 pF (. is 400 pF (about 20 to 30 devices).

13 Software Structure: The I2C protocol:

14 Finish: exit or reset the system Outer loop: calling to a routine according to the user's choice from the menus that appear on the display – temperature reading, card's voltages reading, fan speed, setting temperature threshold, turning off intrusion alert, or exiting. Carrying out the routine Software Structure: YES NO Inner loop: sensing the system's data, and control accordingly StartSystem initialization Has a key been pressed? NO Is it an exit key? YES

15 Main screen: Displaying choices menu – temperature, voltages, fan speed and intrusion alert.Main screen: Displaying choices menu – temperature, voltages, fan speed and intrusion alert. Temperature screen: Displaying temperature, and an option of setting a temperature threshold through the terminal of an outer computer (the new threshold will be saved in the EEPROM).Temperature screen: Displaying temperature, and an option of setting a temperature threshold through the terminal of an outer computer (the new threshold will be saved in the EEPROM). Voltages reading screen: Displaying the voltages in the card – 3.3V, 5V and 10.5V.Voltages reading screen: Displaying the voltages in the card – 3.3V, 5V and 10.5V. Fan speed screen: Display the fan speed.Fan speed screen: Display the fan speed. Intrusion alert screen: Display option of turning off intrusion alert.Intrusion alert screen: Display option of turning off intrusion alert. Finish screen: "Press RESET or shut down the system".Finish screen: "Press RESET or shut down the system". Software Structure:

16 Green light: Flickering slowly – the system is functioning properly, and in the main loop. Off – the system exited the main loop by the user. Green light: Flickering slowly – the system is functioning properly, and in the main loop. Off – the system exited the main loop by the user. Red light: Flickering fast – the system sensed an intrusion, intrusion alert has been set (a message is being sent over and over to the terminal of the outer computer). Off – intrusion alert is off. Red light: Flickering fast – the system sensed an intrusion, intrusion alert has been set (a message is being sent over and over to the terminal of the outer computer). Off – intrusion alert is off. Yellow light: On – the temperature is above the threshold set by the user. Off – the temperature is below the threshold set by the user. Yellow light: On – the temperature is above the threshold set by the user. Off – the temperature is below the threshold set by the user. Bright Green light: Flickering fast – the system is communicating with the terminal of the outer computer (waiting for a new temperature threshold from the user). Off – the system finished communicating with the terminal (the system sends update messages on every change in the system's state). Bright Green light: Flickering fast – the system is communicating with the terminal of the outer computer (waiting for a new temperature threshold from the user). Off – the system finished communicating with the terminal (the system sends update messages on every change in the system's state). Software Structure:

17 Working according to Schedule Done in part A according to the targets: Detailed design in ORCAD.Detailed design in ORCAD. Building the card and wiring it with "wire-wrap".Building the card and wiring it with "wire-wrap". Building the full system case.Building the full system case. Writing basic software for the microprocessor (USART).Writing basic software for the microprocessor (USART). Programming software for operating the PCA9553.Programming software for operating the PCA9553. Programming software for operating the LM75.Programming software for operating the LM75. Programming software for operating the EEPROM.Programming software for operating the EEPROM. Programming software for operating the LM87.Programming software for operating the LM87. Programming software for operating the LCD and the keypad.Programming software for operating the LCD and the keypad. Programming software for user settings by connecting to a terminal of an outer computer.Programming software for user settings by connecting to a terminal of an outer computer. Programming the main software and integrating between all the modules.Programming the main software and integrating between all the modules. Done in part B according to the targets:

18 Summary and Conclusions: Building a technological project according to defined stages, from the idea to a final product, while having targets – a unique enriching experience in various fields: technological, academic, professional and interpersonal. Thanks to the lab's staff, and a special thanks to the instructor.

19 Presenting the Project


Download ppt "Raz Zur Instructor: Boaz Mizrahi Developing a Control Card Based on I2C Bus 22.04.04 Final Presentation."

Similar presentations


Ads by Google