Top Banner
Raz Zur Raz Zur Instructor: Boaz Instructor: Boaz Mizrahi Mizrahi Developing a Developing a Control Card Control Card Based on I2C Based on I2C Bus Bus 22.04.0 22.04.0 4 4 Final Final Presentation Presentation
18

Raz Zur

Jan 03, 2016

Download

Documents

galena-moses

Developing a Control Card Based on I2C Bus. Final Presentation. Raz Zur. Instructor: Boaz Mizrahi. 22.04.04. Presentation Contents:. Introduction – Project's Purposes. General Background. Block Division. Hardware and Blocks Specifications. Software Structure. - PowerPoint PPT Presentation
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Raz Zur

Raz ZurRaz Zur

Instructor: Boaz Mizrahi Instructor: Boaz Mizrahi

Developing a Developing a Control Card Control Card

Based on I2C BusBased on I2C Bus

22.04.0422.04.04

Final Presentation Final Presentation

Page 2: Raz Zur

Presentation ContentsPresentation 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.

Page 3: Raz Zur

Introduction–Project's PurposesIntroduction–Project's Purposes::

II22C BUSC BUS

יחידתיחידתשליטהשליטה

LED ControlLED Control

Serial EEPROMSerial EEPROM

Intrusion AlertIntrusion AlertFans ControlFans ControlKey PadKey Pad LCDLCD DisplayDisplay

Temp. SensorTemp. Sensor

• Building a monitoring and control card, to be Building a monitoring and control card, to be installed in a stand-alone system. installed in a stand-alone system.• The card will perform a few routines that The card will perform a few routines that monitor and control the system, according to the monitor and control the system, according to the output of sensors that are installed in the system. output of sensors that are installed in the system.• The communication between the devices of the The communication between the devices of the card will be implemented using the I2C serial card will be implemented using the I2C serial communication protocol. communication protocol.

Page 4: Raz Zur

General BackgroundGeneral Background::•Today's world of technologyToday's world of technology requires monitoring and control. requires monitoring and control.•One of the better solutionsOne of the better solutions – building a "monitoring" system – building a "monitoring" system apart from, and parallel to the "original" system.apart from, and parallel to the "original" system.•The advantagesThe advantages – system resources, development and – system resources, development and maintenance, simplicity.maintenance, simplicity.•The ideaThe idea – maximum monitoring and control with minimum – maximum monitoring and control with minimum interference.interference.•ImplementationImplementation – with a serial protocol. – with a serial protocol.•Technological solutionTechnological solution – the I2C serial communication protocol. – the I2C serial communication protocol.

•I2CI2C - Short for Inter-IC, a type of bus designed by Philips - Short for Inter-IC, a type of bus designed by Philips Semiconductors in the early 1980s, which is used Semiconductors in the early 1980s, which is used to connect integrated circuits (ICs).to connect integrated circuits (ICs).

Page 5: Raz Zur

Blocks Division:Blocks Division:

• The POWER Block:The POWER Block:Power supply.Power supply.

• TheThe CONTROLCONTROL Block:Block:The “Brain” – the control unit.The “Brain” – the control unit.

• TheThe SENSESENSE Block: Block:Temperature sensing, fans control, and intrusion Temperature sensing, fans control, and intrusion

sensing. sensing. • TheThe MMIMMI Block: Block:

User interface – display unit, keypad, and LEDsUser interface – display unit, keypad, and LEDs.. • TheThe EEPROMEEPROM Block: Block:

Designated memory. Designated memory.

Page 6: Raz Zur

Hardware and Blocks Hardware and Blocks Specifications:Specifications:

The POWER block:The POWER block:

• Voltages supplyVoltages supply – entrance voltage 12V, lowering to – entrance voltage 12V, lowering to 3.3V and 5V, using regulators (LM1085). 3.3V and 5V, using regulators (LM1085).

• ProtectionsProtections – diode bridge (DF005M) for – diode bridge (DF005M) for protection against inverted voltage, and a fuse for protection against inverted voltage, and a fuse for protection against shortcut current. protection against shortcut current.

• Noise reductionNoise reduction – capacitors and coils circuits. – capacitors and coils circuits.

Page 7: Raz Zur

The CONTROL block:The CONTROL block:

• MicroprocessorMicroprocessor - PIC18F252, the I2C - PIC18F252, the I2C master. master.

• 4MHz oscillator4MHz oscillator – clock frequency for the – clock frequency for the microprocessor. microprocessor.

• Voltage translatorVoltage translator – between 3.3V and 5V. – between 3.3V and 5V.• MAX232MAX232 – a-synchronic communication with – a-synchronic communication with

an outer computer. an outer computer.

Hardware and Blocks Hardware and Blocks Specifications:Specifications:

Page 8: Raz Zur

The SENSE block:The SENSE block:

• LM75LM75 – a device with I2C interface, which is a – a device with I2C interface, which is a temperature sensor with 0.5 °C resolution. temperature sensor with 0.5 °C resolution.

• LM87LM87 – a device with I2C interface, which – a device with I2C interface, which includes D/A for control of the fan speed, includes D/A for control of the fan speed, measurement of the fan speed, intrusion alert, measurement of the fan speed, intrusion alert, entrances for far temperature sensors, and entrances for far temperature sensors, and measurement of voltages in the card. measurement of voltages in the card.

Hardware and Blocks Hardware and Blocks Specifications:Specifications:

Page 9: Raz Zur

The MMI block:The MMI block:

• LCD screenLCD screen – LK12-162, Display unit with I2C – LK12-162, Display unit with I2C interface. interface.

• KeypadKeypad..• PCA9553PCA9553 – a device with I2C interface for LEDs – a device with I2C interface for LEDs

control. control.

Hardware and Blocks Hardware and Blocks Specifications:Specifications:

Page 10: Raz Zur

EEPROM block:EEPROM block:

• Designated memoryDesignated memory – FM24C16U, serial – FM24C16U, serial EEPROM with I2C interface. EEPROM with I2C interface.

Hardware and Blocks Hardware and Blocks Specifications:Specifications:

Page 11: Raz Zur

Software Structure:Software Structure:The I2C protocol:The I2C protocol:

Bus speed: 100KHzBus speed: 100KHz..Devices are addressed completely by software.Devices are addressed completely by software.The maximum allowable capacitanceThe maximum allowable capacitanceis 400 pF (is 400 pF (about 20 to 30 devices)..

Page 12: Raz Zur

Software Structure:Software Structure:The I2C protocol:The I2C protocol:

Page 13: Raz Zur

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:Software Structure:

YESNO

Inner loop: sensing the system's data, and control accordingly

StartSystem initialization

Has a key been

pressed?

NO

Is it an exit key?YES

Page 14: Raz Zur

• Main screen: Main screen: Displaying choices menu – temperature, voltages, fan Displaying choices menu – temperature, voltages, fan speed and intrusion alert.speed and intrusion alert.

• Temperature screen: Temperature screen: Displaying temperature, and an option of setting a Displaying temperature, and an option of setting a temperature threshold through the terminal of an outer temperature threshold through the terminal of an outer computer (the new threshold will be saved in the computer (the new threshold will be saved in the

EEPROM).EEPROM).• Voltages reading screen: Voltages reading screen:

Displaying the voltages in the card – 3.3V, 5V and 10.5V.Displaying the voltages in the card – 3.3V, 5V and 10.5V.• Fan speed screen: Fan speed screen:

Display the fan speed.Display the fan speed.• Intrusion alert screen:Intrusion alert screen:

Display option of turning off intrusion alert.Display option of turning off intrusion alert.• Finish screen: Finish screen:

"Press RESET or shut down the system"."Press RESET or shut down the system".

Software Structure:Software Structure:

Page 15: Raz Zur

• Green light: Green light: Flickering slowlyFlickering slowly – the system is functioning properly, and in the main loop. – the system is functioning properly, and in the main loop. Off Off – the system exited the main loop by the user.– the system exited the main loop by the user.

• Red light: Red light: Flickering fastFlickering fast – the system sensed an intrusion, intrusion alert has been set – 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). (a message is being sent over and over to the terminal of the outer computer). Off Off – intrusion alert is off.– intrusion alert is off.

• Yellow light: Yellow light: On On – the temperature is above the threshold set by the user.– the temperature is above the threshold set by the user. Off Off – the temperature is below the threshold set by the user.– the temperature is below the threshold set by the user.

• Bright Green light: Bright Green light: Flickering fastFlickering fast – the system is communicating with the terminal of the outer – the system is communicating with the terminal of the outer computer (waiting for a new temperature threshold from the user). computer (waiting for a new temperature threshold from the user). Off Off – the system finished communicating with the terminal (the system sends – the system finished communicating with the terminal (the system sends update messages on every change in the system's state). update messages on every change in the system's state).

Software Structure:Software Structure:

Page 16: Raz Zur

Working according to ScheduleWorking according to ScheduleDone in part A according to the targets: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 Programming software for user settings by connecting

to a terminal of an outer computer. to a terminal of an outer computer.• Programming the main software and integrating Programming the main software and integrating

between all the modules. between all the modules.

Done in part B according to the targets:Done in part B according to the targets:

Page 17: Raz Zur

Summary and Conclusions:Summary and Conclusions:

Building a technological project according to defined Building a technological project according to defined stages, from the idea to a final product, while having stages, from the idea to a final product, while having targets – a unique enriching experience in various targets – a unique enriching experience in various fields: technological, academic, professional and fields: technological, academic, professional and interpersonalinterpersonal..

Thanks to the lab's staff, and a special thanks to the Thanks to the lab's staff, and a special thanks to the instructor.instructor.

Page 18: Raz Zur

Presenting the ProjectPresenting the Project