Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

108
Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee

Transcript of Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

Page 1: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

Briefing for EE2001 Design Project

AY 2008-2009

Special Term

EE2001 Committee

Page 2: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 2

Outline

• Aims and Objectives• Learning Objectives• Learning Outcomes• Project Guidelines & Assessment Criteria• Project Theme – Healthcare Systems• Project Proposals• Project Implementation Schedule• EE2001 Committee Members

Page 3: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 3

Aims and Objectives

• This module aims at providing students with design and hands-on experience in developing electronic circuits and systems involving both hardware digital and analog techniques together with software programming.

• System integration between various sub-systems involving hardware and software components is an important objective of this module.

Page 4: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 4

Learning Objectives

Core Technical Skills

• Microcontroller programming (S/W)• Analog and digital hardware

electronic circuits design (H/W) • H/W & S/W system integration• PCB design• System debugging• Production specifications

development• Project documentation

Page 5: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 5

Learning Objectives (cntd.)

Soft skills

• Project planning & scheduling

• Team work

• Peer feedback

• Project presentation skills

Page 6: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 6

Learning Methodologies• Project-based learning

Learning is achieved by actual participation and implementation of an electronic project with hands on experience both in H/W, S/W and system integration.

Students are encouraged to explore and do beyond what has been taught in the core modules.

• Collaborative and team-based learning The project is done in group with all members in

the group having individual as well as team based goals and do collaborative learning.

Page 7: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 7

Team and Individual Roles• Team Responsibility

Developing system specifications Project planning and progress review System integration Final system working demonstration and presentation

• Individual Responsibility Responsible for the design and implementation of the sub-

system Developing sub-system specifications Software, hardware and PCB design Maintaining project design portfolio Giving peer feedback Sub-system working demonstration/presentation

Page 8: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 8

Learning Outcomes• At the completion of the module, the students

should be able to: Formulate technical and performance specifications

for a system from loosely defined requirements. Carry out top-down design approach of the system

based on the technical and performance specifications given.

Carry out systematic design of the sub-systems from a system level design point of view.

Formulate and execute design for interconnections of various sub-systems.

Make trade-offs between function, cost, size, and user-friendliness.

Page 9: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 9

Learning Outcomes (cntd.) Make design decisions for various functions to be

implemented e.g. whether to implement in hardware or software, choice of design method, choice of components or programming language etc.

Use of engineering tools and apply skills such as soldering, PCB design software etc.

Apply design methods, bread-board testing or programming as appropriate, perform tests, and debugging.

Work as a member of a team to realize a complete electronic system.

Apply principles of project management such as time-scheduling, work scheduling and resource management while carrying out the project.

Page 10: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 10

Assessments

• Assessment Methodology CA1 – 20% (Week 2) CA2 – 40% (Week 4) Final examination – 40% (Week 6 )

• Assessment Contributions: Individual – 50% Team – 50%

Page 11: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 14

Examples of EE2001 Project Smart Home System

Some Ideas:Some Ideas:• Security Security • SafetySafety• AutomationAutomation• Ambience controlAmbience control• Elderly careElderly care• Pet and plant carePet and plant care• EntertainmentEntertainment• ConnectivityConnectivity

Page 12: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 15

Examples of EE2001 Project: Intelligent Airport

ubiquitous systems with high level of computational power

high-quality service to passengers

stringent levels of safety and security

efficient processing of commercial goods and luggage

high quality information systems

airport transportation systems

Page 13: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 16

Healthcare Systems (AY 2008-09)

• What is the most amazing result civilization has achieved, possibly the greatest achievement in the last century relating to human beings? “Life Expectancy”

• It used to be 47 years in industrialized countries in the early 1900s and now in 2000s it is around 80 years – with women in an advantageous position.

Page 14: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 17

Increased Life Expectancy - Active Ageing

• Increase in the life expectancy is represented by the conditions in which aging takes place which were inconceivable for the past generations such as level of education, the health status and economic resources.

• Population is quantitatively ageing and at the same time qualitatively getting younger – today’s senior citizens are far more educated and are aware of their potentials and personal aspirations and less resigned to decline in solitude and willing to actively contribute and play a significant role in society.

Page 15: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 18

President S R Nathan 3rd July 1924 – 84 yrs Old

Aged but still active and contributing significantly to the growth of Singapore

Minister Mentor Lee Kuan Yew16th September 1923 – 84 yrs Old

Page 16: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 19

Demographics of Singapore

No. of residents with age more

than 65 years will increase by 3 fold

Page 17: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 20

Active Aging• The demographic reality of the over 65s who

make almost 20% pose a significant challenges to the health and social care givers.

• Thus, issues related to ageing of the population are becoming more and more necessary to be addressed from different points of view i.e. political, social, clinical and technological.

• Technology can provide important solutions to these issues.

Page 18: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 21

E – Healthcare

I2R

Page 19: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 22

Mobile Healthcare

1) Send raw ECG signals and motion data via

bluetooth

2) Detect abnormalities in

the raw ECG data and inform

relevant authorities

3) Hospitals determines the severity of the data and takes appropriate

actions

Page 20: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 23

Wireless Body Area Network

Page 21: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 24

BCI-based Robotic Rehabilitation for Stroke Patients

Page 22: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 25

Stroke Patients Rehabilitation using MIT’s MANUS – Robotics System

Page 23: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 26

Project Proposals

Students are encouraged to form their own team with three or more members in each group.

Think of some innovative ideas, as it is one of the assessment criteria.

Come up with the project proposal and come and discuss with us for approval.

Ensure that the project requirements are followed as far as possible.

Page 24: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 27

Self-proposed Projects

Students are welcome to propose their own project outside the official theme of “healthcare”.

Ensure that the project requirements are met.

Please try to form your own team with at least two to three members.

Propose the project and come and discuss with us.

Page 25: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 28

Allowed budget

• The budget for each team project is $500. $300 worth of components can be used from

the lab./central store. $200 worth of components can be bought

from outside.

Page 26: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 29

EE2001 CommitteeProject Mentors:

S K PandaM MotaniS K Sahoo

GA -1 GA - 2 GA - 3 GA - 4

Project Supervisor

Krishna Manali

Project Supervisor

Daniel

Project AssistantHenry Tan

Page 27: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 30

Useful Information

• Location: Linear Electronics Lab., E4A-06-03

• Module Web-site: http://www.ece.nus.edu.sg/ee2001/html/

• Any Questions?

Page 28: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 31

Briefing for EE2001 Design Project

AY 2008-2009

Semester – 3

EE2001 Committee

Page 29: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 32

Team and Individual Roles• Team - Consists of 4 members

System Specifications Project Scheduling System Integration Responsible for the final product Final Demonstration and Sales Presentation

• Individual Role Responsible for one subsystem Subsystem Specifications Software, Hardware and PCB design Project Design Portfolio

Page 30: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 33

Assessments

• Assessment Methodology CA1 – 20% (Session 3 - 4) CA2 – 40% (Session 8 - 9) Final Demo – 40% (Sessions 11 - 12)

• Assessment Contributions: Individual – 50% Team – 50%

Page 31: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 34

Project Assessment• Criteria: Functional features, Quality of work, Teamwork• Total 3 CAs

Quiz & Initial System Specs (20%) System Design and Integration (40%) Final Assessment(40%)

Final Product Demo, Sales Pitch Innovation & Contribution

• Final Team marks are distributed according to Peer feedback Student’s motivation and project participation Project Design Portfolio

• Evaluation Below average – < 50% Average – 50-64% Good – 65-80% Very Good – > 80%

Page 32: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 35

Project Assessment

Page 33: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 36

Project Assessment

Page 34: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 37

Project Assessment

Page 35: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 38

Let’s Brainstorm

• Have you been to a hospital? Use your creativity to improve the experience for: Patients? Doctors? Visitors?

• What kind of sensors could you put on the body to measure biomedical signals?

• How can we help people to age in a healthy and active manner?

• How can we encourage people of all ages to exercise safely and effectively?

Page 36: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 39

Technical Details EE2001 Design Project

S.K. Sahoo

Page 37: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 40

Introduction to the module

Page 38: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 41

What exactly does this module entail?• You will do an embedded system

project consisting of: microcontroller programming (software) electronic circuits (hardware)

• It involves conceiving(C), designing(D), implementing(I) and operating(O) such a system

Page 39: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 42

Some projects done earlier

Autonomous Guided Vehicle (AGV) AGV Central Controller

Page 40: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 43

Some projects done earlier

Wearable Personal Health monitor and tracker

Page 41: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 44

Some projects done earlier

The intelligent baby cot

Page 42: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 45

Visualize the road ahead

Start

Deciding what to do – initial specifications for the system

Do hardware design and prototyping on bread board

Transferring hardware to PCB (Printed Circuit Board)

Software development, integration with hardware

Build the model of the complete system

End

Final specification report and demo

Page 43: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 46

Decide what to do: Initial System Specifications Report

Page 44: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 47

Breadboard Prototyping

Finalize the circuit schematics Get the components, patch and test the circuits

Page 45: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 48

Printed Circuit Board

Draw the PCB artwork, solder the components on to the PCB and test it.

Page 46: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 49

Software Development

Process Flow Chart C Code

Page 47: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 50

Software Development and integration with Hardware

Programmer PIC Development board with Hardware

Page 48: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 51

Build Model of complete system

Page 49: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 52

Final Report and Demo

Page 50: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 53

Seniors speak

Page 51: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 54

Seniors speak:Which part of the module they like• Freedom and creativity

• Satisfaction that what you build can work

• Brainstorming and working with new people

• Building the model

• Practical use of concepts learnt in theory

Page 52: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 55

Seniors speak:Which part is most difficult• Time requirement

• Initial phase of planning

• Integration and Design

• Debugging everything

• Programming PIC

• Making the model to fit all the PCB

Page 53: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 56

Seniors speak:Those taking this module must

• start early, don’t do last minute

• revise programming

• remember that it is actually doable, though difficult

• do self-learning and info searching

Page 54: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 57

Familiarization labs

Page 55: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 58

Familiarization Labs

Objective:

To familiarize with basic tools and skills needed for the project

1. Basic Familiarization Lab – Lab 1

2. Advanced Familiarization Lab – Lab 2

Page 56: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 59

Basic Familiarization Lab – Session 1• To solder and learn about the PIC

development board• To learn about IAR EWPic IE used for

editing and compiling PIC programs• To learn about the WinPic800

programmer• To learn about the lab equipment like

power supply, signal generator and oscilloscope

Page 57: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 60

Advanced Familiarization Lab – Week2

1. Basic design steps for developing smart features

2. How to use the PIC datasheet

3. PIC microcontroller programming in C starting from sample programs

Page 58: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 61

The first deliverable from you

Page 59: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 62

CA1 - Initial System Specifications

• Brainstorm for ideas

• Define Subsystems for individuals

• System block diagram

• GANTT chart

• Submit the Team report for CA1

• Get feedback on your ISS report

Page 60: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 63

What is a subsystem?

• A subset of the system features

• Functionally related

• Each subsystem must involve software-hardware integration and PCB

Page 61: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 64

System Block Diagram

Subsystem1

Function 1

Function 2

:

Function n

Subsystem3

Function 1

Function 2

:

Function n

Subsystem2

Function 1

Function 2

:

Function n

Subsystem3

Function 1

Function 2

:

Function n

Page 62: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 65

A sample GANTT chartPlanning is required as resources are limitedPlanning is required as resources are limited

Page 63: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 66

General procedure for Gantt charts• Breakdown the overall project into the

next largest subprojects.

• Determine the time for each major activity.

• Determine the major activities that must be completed in series.

• Assemble complete schedule.

Page 64: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 67

Printed Circuit Board (PCB)

Page 65: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 68

Guidelines on PCB design

• Transfer design from bread-board to PCB

• Use Altium Designer 6 Software for PCB Design

• Submit the PCB design as a team (maximum size 1 A4)

• Submit PCB designs to the PCB lab by the date assigned for your team

Page 66: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 69

How to learn the PCB design S/W

1. Altium Designer training manual

2. Videos on some common tasks

3. Library has been created for common

components available from lab

4. Technical support from S/W vendor

Page 67: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 70

PCB Submission Dates

• There will be a date by which you must submit PCB design to the PCB lab

Page 68: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 71

System Prototype on PCB

• Solder the components

• Wire up the parts together

• Debug the system on PCB

Page 69: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 72

Final Demo

Page 70: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 73

CA3 – Final Presentation

• Prepare an effective presentation keeping time in view

• Should embed photos and videos of working features in the presentation

• Individual students present their own subsystems

• Demonstrate working prototype

Page 71: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 74

Documentation

Page 72: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 75

1. Initial system and subsystem specs

2. Circuit schematics3. Design calculations4. Subsystem bill of material with cost5. Program flow chart, final source code6. PCB design art work and comments7. Team meeting minutes8. Datasheets and reference documents

9. Final system and subsystem specs10. Weekly Learning Diary/Progress report

Project Design Portfolio – Contents

Page 73: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 76

Example Smart Project

Page 74: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 77

What is a Smart Feature?

•It responds to an event/stimulus, in a desirable way, without human intervention.

Sensing Thinking Acting

Sensor Processor Actuator

Page 75: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 78

Block diagram of a smart feature

Input

Port

Output

PortProcessor

Input Devices

Output Devices

Micro Controller

Sensors, Switches, Pushbuttons

LEDs, LCDs, Motors, Relays

Page 76: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 79

“Divide and Conquer”

• Breaks it into smaller subparts, modules Hardware

Input circuits, input port Output devices, output port

Software Feature1Feature2…

Integration of H/W and S/W

Page 77: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 80

Design steps for any smart system

1. Draw a process flow chart

2. Find the sensors and actuators

3. Patch and test the H/W circuits

4. Assign Microcontroller port/pin

5. Develop the Program

6. Test with the Hardware

7. Debug

H/W

S/W

Page 78: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 81

Advanced Fam lab – Example mini project• Specifications:

• Features to be added to a smart chair:

1. It should monitor person’s weight and issue a warning if it is too much.

2. There should be a blinking light to entertain the person, as long as the seat is occupied.

Page 79: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 82

Step 1: Process Flow chart

Yes

Someone on the chair?

No

Blink=1

Weight > safe limit?

Yes

Warning=1

No

Blink=0Warning=0

START

Blink=0Warning=0

Warning=0

Page 80: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 83

Hardware Development

Page 81: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 84

Step 2: Hardware (Sensors and Actuators)

Inputs :

• Push button (PB) to sense sea occupancy

• Trim pot to simulate a load cell.

Outputs :

• Red LED as visual warning

• Green LED for the blinking light

Page 82: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 85

Step 5: Microcontroller Port Assignment

• PB to be connected to digital input RB0

• Potentiometer to be connected to

analog input channel RA0

• Red LED to digital output RD1

• Blinking LED to digital output RD2

Page 83: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 86

Step 3: Circuit patching and testing

5V

RB0

Push button

4.7k

5V

RA010k potentiometer

LED

100RD1

LED

100RD2

Page 84: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 87

Software Development

Page 85: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 88

What is a Microcontroller

Page 86: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 89

PSP

16F877

I/O

RAM

PROGRAM

MEMORY

EEPROM

Oscillator

Peripherals USARTRS232

MSSP

I2C, SPI TIMERS

1,2,3

ADC inputs

1,2,3,4,5,6,7,8 CCP

Capture,

Compare,

PWM

8192 words

33 pins

368 bytes

256 bytes

PIC16F877 Core and Peripheral Features

Page 87: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 90

PIC Block Diagram

Page 88: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 91

Step 4: Know the Microcontroller

PIC Datasheet

Page 89: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 92

Step 6: Program the PIC

• Prepare the detailed Flow chart

• Code module by module

Some help:• Refresh C programming knowledge• Complete basic familiarization lab• Use the sample programs to build on• Save a working version before adding more

Page 90: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 93

For each new PIC feature

• Things to look for in the data sheet

Associated Special Function

Registers (SFR)

Values for Configuration bits

Steps to be followed for correct use

Page 91: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 94

Step 7 : Test and Debug

• Ensure ensure that Hardware is working Add debug code e.g. assign some digital input

to some digital outputRD7= RB7;

• Refer the section for the particular feature from PIC datasheet.

• Relook at the Program logic.• Comment out part of the code to focus on

one area.• Be systematic and very patient.

Page 92: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 95

Did you get some idea about the seven steps for developing a smart feature?

Page 93: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 96

Safety

Page 94: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 97

Lab Safety

Page 95: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 98

Safety Quizzes

Pass two online safety quizzes: links for these quizzes are on the EE2001 course website.

Safety Quiz certificates must be submitted on your first day of the lab.

Page 96: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 99

Preparation for first lab

1. Take the two safety quizzes and bring printouts of safety quiz certificates.

2. Submit the Component Issue form to get the Toolbox

3. Come prepared to do soldering the PIC development board

Page 97: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 100

First Day at the lab – solder the development board

Page 98: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 101

Second Day at the lab – complete the advanced Fam lab

1. Follow the instructions and complete the lab.

2. Ensure you understand the PIC C program.

3. Ensure you understand the PIC C program.

Page 99: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 102

Activity Time/Date Checked by

Completed of Safety Quiz

Issued of tool box and components packet

Got soldering approved by lab staff

Completed soldering of Dev. board

Finished Basic Fam. Lab

Finished Advanced Fam. Lab

Understood PIC program of the Fam labs

Had the first group meeting

Submitted the Initial System Specs report to PS

Initial Activity Log

Page 100: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 103

Watch out for Common mistakes!

Page 101: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 104

Common mistakes

• Common electrical GND while integrating two subsystems

• Forgetting that Pin1 of PIC is not connected to the Pin1 of the SIL on the Dev. Board

• Log on to the Lab PC using username ee2001 and password ee2001. Do not log in using NUS ID.

Page 102: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 105

Common mistakes

• SFR ADCON1 is to be configured properly if PORTA is used

• That only CAs are important for this module – no need to show up on other days

• That I can somehow complete it if I spend two nights before the CAs

Page 103: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 106

Recap of what we need to do

Page 104: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 107

Conceive ideas starting from a general theme

Participate in group brain-storming

Organize the ideas and represent in a system block diagram form

Page 105: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 108

Use the PIC C compiler, PIC programmer, PCB Design software

Know the PIC microcontroller

Know some hardware components from their data sheets

Design circuits according to datasheets and theoretical knowledge

Page 106: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 109

Test circuits on bread-board

C programming for PIC

Put H/W and S/W together

Add more features – Debug

Design the PCB for the subsystem

Page 107: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 110

Assemble compete system on PCB

Debug the complete system

Present your project work

Prepare technical documentation

Page 108: Briefing for EE2001 Design Project AY 2008-2009 Special Term EE2001 Committee.

EE2001 Briefing Presentation – 11 May 2009 – LT6 111

Happy Learning !

Thank you.