M E 597D – Advanced Mechatronics

http://www.mne.psu.edu/brennan/ME597D/ (M.S. Word version here)

 

Spring 2007

M W F 10:10P - 11:00P

320 Reber, Advanced Mechatronics Lab

Door Code: __ __ __

 

 

Instructor:      Dr. Sean Brennan                                          Email:   sbrennan@psu.edu

                        Office:  318 Leonhard Building              Phone:  (814) 863-2430

                        Office hours:  MWF 11:30 am – 12:30 pm, and by appointment.

                       

                        Adam Dean (student tankbot expert) (cell) (814) 441-2375

 

Textbook:       (none, but see references below).

Prerequisite:  ME 440 or equivalent, basic familiarity with circuits

What is Novel about this Class: Lab Based – lots of hardware, Problem-Based Learning, Unstructured

What is Hard about this Class: Lab Based – lots of hardware, Problem-Based Learning, Unstructured

References:   

§         Scott Edwards, Programming and Customizing the Basic Stamp Computer, McGraw-Hill.  1998.  (This is a very basic text but a  good starting place for students completely unfamiliar with circuits and programming)

§         Charles Fraser and John Miller, Electro-Mechanical Engineering, An Integrated Approach.  IEEE Press, New York.  (This book is a general overview of mechatronics, and has a great discussion of electrical motors)

§         Bolton, W., Mechatronics: Electronic Control Systems in Mechanical  Engineering, Addison Wesley Longman, Edinburgh  Gate, England, 1995.

§         Horowitz, P., Hill, W., , 2nd ed., Cambridge University Press, New York, 1989.   (This is the de-facto standard book on electronics, and one everyone should own if they plan to do extended work in this area)

§         Rulph Chassaing, DSP Applications Using C and the TMS320C6x DSK, Topics in Digital Signal Processing.  Wiley Interscience.  2002.  (Good book for DSP algorithms and basics)

§         Tamal Bose, Digital Signal and Image Processing.  Wiley Interscience, 2004.

§         David G. Alciatore and Michael Histand.  Introduction to Mechatronics and Measurement Systems, 2nd Edition.  McGraw-Hill, Boston, 2003.  (I like their discussion of semiconductor electronics)

 

Other Useful Resources:

                        Website for Introduction to Mechatronics and Measurement Systems, by David G. Alciatore and Michael B. Histand, Department of Mechanical Engineering, Colorado State University. http://www.engr.colostate.edu/~dga/mechatronics/

 

Class Topics:  This class will facilitate hands-on investigation and learning of mechatronic systems via a problem-based approach.  The course material will consist of lectures, lab activities, and major projects focused on the myriad areas of mechatronics. These will be separated into five areas:

                       

1.      Programming Real-Time Systems

2.      Signal Interfaces (A/D and D/A, signals, etc.)

3.      Hardware Interfaces (Actuators and Sensors)

4.      System Modeling and Control

5.      Human to Hardware Interfaces

 

Due Dates:     Homework assignments are due 2 weeks after the assignment is given.

                        Lab prelabs are due the start of each lab. No late submissions allowed.

                        Lab checkoffs are due by the second class meeting after the lab begins (e.g. you have three lab periods to complete the assignment).

 

Final Project (Last 6 weeks of class): A major project will be expected of the students at the completion of the semester demonstrating a mechatronic systems integration showing mastery in the following areas:

-         Programming

-         Circuit fabrication

-         Sensor and hardware interfacing

-         Control systems and/or signal processing

-         GUI design and presentation

The projects can be conducted in teams, with a topic chosen at the beginning of each semester. Tentatively, the following idea is being considered: The class constructs 2 entries into the 15th Annual Intelligent Ground Vehicle Competition, http://www.igvc.org/ . These entries compete against each other in a mock-course at the end of the semester, and also go on to compete at the national level.

 

Grading:         In accordance with the policy of this University, all students are encouraged to attend every class period.  The lecture content will follow the laboratory assignments in an obvious manner, so failure to attend a lecture will be a severe handicap in the lab.  The final project should represent the entire content of the class and is representative of a final exam grade.

                       

                                    Check-off on all labs                                         20%

                                    Homework and Pre-labs                                   40%

                                    Final Project                                                     30%

                                    Quizzes                                                            10%

 

Policy on cheating (University policy statement)

Academic integrity is the pursuit of scholarly activity in an open, honest and responsible manner. The University's Code of Conduct states that all students should act with personal integrity, respect other students' dignity, rights and property, and help create and maintain an environment in which all can succeed through the fruits of their efforts.  Academic integrity includes a commitment not to engage in or tolerate acts of falsification, misrepresentation or deception. Such acts of dishonesty violate the fundamental ethical principles of the University community and compromise the worth of work completed by others. The academic integrity web site for the College of Engineering is at http://www.engr.psu.edu/www/ug/acad_int/students/default.htm (there's an underline in acad_int). 

 

(Cheating issues specific to this class): 

Students are encouraged to work together on homework assignments; however, original solutions are required.  For homework, the threshold of cheating is defined as follows: If the person grading the assignments is able to identify students who have worked together by their solutions or specific aspects of their solution approach, then the solutions are not original!  A homework or other assignment where cheating is found will automatically be given a zero grade

 

Copying of information from websites without proper citation is considered cheating.  Any copying of information without proper citation will result in a zero grade for the assignment.  Particularly blatant copying (i.e. an entire assignment) will result in referral to the college for an honor violation and automatic deduction of a minimum of one letter grade.

 

Useful Links:

This course (and latest syllabus):

http://www.mne.psu.edu/brennan/ME597D%20Mechatronics/

 

AUVSI, the Association for Unmanned Vehicle Systems International,

http://www.auvsi.org/


Website for the Introduction to Mechatronics and Mechatronic Systems,

 http://www.engr.colostate.edu/~dga/mechatronics/

 

Electronics in Meccano,

http://www.eleinmec.com/

 

The Embedded Muse, short newsletters dedicated to embedded systems, great articles!

http://www.ganssle.com/gnewsletter.htm


Parts List for your electronics box:

 

Circuit Ideas

RS232 Display board

Hand-held logic probe

Null/Pass-through serial cable tester

 

Tankbot Final Project Items

CAD Drawings

 

 


ME 597D – Advanced Mechatronics Topic Listing

Class #

Date

Topics
Lesson 0 - code shakeout of amps

Code shakeout of MATLAB serial ports

Assignments Red = Graded

Items Due

1

Wednesday, January 17

Syllabus,

Examples 1, 2, 2b, 3, 4a, b, c,

Final project discussion 1, 2, 3

- Confirm MNE account made…   if not, click the link http://mnelabs.mne.psu.edu/ and select “Apply for an account”,

- read Hake’s paper regarding Problem-Based Learning

- read AUVSI contest rules,

- Do skills assessment for Lesson 4

 

2

Friday, January 19

Re-Introduction To C,

Code examples 1, 2, 3,

Discuss Figlet freeware,

 

TEM Fun:

 Tracking Bugs,

 Redefining C operators

- read about C bitwise manipulators,

- skim style references 1, 2, 3, 4, 5, 6 , 7, 8

- answer questions related to lecture

- start reading CCS C manual

 

3

Monday, January 22

PIC16F877 Setup Instructions,

Discuss examples 1, 2, 3, 4

 

TEM Fun:

The Engineer’s Mind

World’s Last C Bug

- Install PIC and MPLAB on home computer,

- Practice reading datasheets on PIC 16F877 (read this one closely), and version A, and errata, and finally MPLAB ICD,

- Do PIC HW 1 using flash1.c, defs _877.h files

Skill assessments due

4

Wednesday,

January 24

Final Project team formation

 

Documentation of Cooperative Learning
zip file

Team Assignment:

 Forming the team contract

 

Suggested Team Policies and Expectations.doc


Assessment:

Example Individual Assessment Forms

 

Brennan’s overall rating form that will use your rankings

- Practice reading datasheets on 7805 regulator, MatroxOrbital LCD or Parallax Serial LCD or ScottEdwards BPI LCD (whichever you have) 

- Read MPUtheBS Ch1 then do the following

- HW: Implement switch + LED example on p 25 in same reference except using C and  your PIC,

- Answer Q’s 1-6 end of Ch1 in this reference.

- Finally, do PIC HW2 using template.c, defs_877.h files

- Do team assignment (see box at left)

 

5

Friday,

January 26

MATLAB GUI Development

Switchyard example,
Button example,
Simple Save,

Real-Time Plotting

- Robot Interface GUI via Serial Port Example Here

- Simulation challenge discussed

 

6

Monday, January 29

Serial Ports and Network Protocols

ASCII Chart

Final Project Team Assignment Discussion

- Do PIC HW3 on serial ports using this starter code and defs file. To help, here’s the spec sheet for our LCD screen. See also the spec sheet for the MAX 232 chip and a link to a good page on converting RS232 to CMOS

 

7

Wednesday, January 31

Intro to DSP’s and Computer Architecture

Why DSP’s? and DSP Bios

DSP Layout

 

- Scan over document comparing fixed point to floating-point DSPs

 

8

Friday, February 02

DSP Lab 1 – DSP Intro

DaughterCard_LibFuncs.pdf

Rules for 24 hour access

- Read documents to left closely, especially the LibFuncs pdf

Lesson 1 items due

(none)

9

Monday, February 05

Real-Time System Concepts

Computer Hardware

 

TEM Fun:

Dumb Mistakes

- Here’s a link to the DSP Bios Users Guide. It’s impossible to read cold unless you have a real problem or are hard-core, but in times of need it’s a lifesaver!

- Fill in last slide in Real-time concepts lecture.

-  GROUP: GUI specifications handed out, Simulation model, Simulation README file, Example Implementation

 

 

Team: Contracts Due

 

Lesson 2 items due (questions)

10

Wednesday, February 07

Field demo of robot,

 

Machine shop check out

 



- If you are unfamiliar with using MATLAB or Simulink, read tutorials linked here to get started

Team: Final Project Partitioning Due

1. Project flow-through dependencies

2. Partitioning of leaves into 4 tasks

3. Time/person estimates for each task

4. Means of testing/evaluating completion of each “leaf”

 

Lesson 3 items due

(PIC HW1)

11

Friday, February 09

Finish Computer Hardware lecture

 

Modeling of Systems

 Example Active Control

- Do the following homework on Number Representations

Lesson 4 items due

(PIC HW2, questions)

12

Monday, February 12

Interactive learning - Modeling of a tank robot using differential equations / Simulink

 

DSP Lab 2 – Serial Ports

GUI Example

 

Team time for GUI development?

HW: Create an automated cable tester that checks to see if a serial cable is a cross-over or pass through. If it is a cross over, it should light a green LED, pass through should light a red.

Lesson 5 items due

(none)

13

Wednesday, February 14

Class Cancelled - Snow Day

Read example lab on debouncing to see effect of adding a capacitor,

Read the excellent debounce article, as this is probably the best overview of debounce issues I’ve seen.

 

HW: Using your PIC, create an LED interface that counts the number of times a switch (an input pin) bounces after the first closure. Demonstrate this in class.

 

Lesson 6 items due

(PIC HW3)

14

Friday, February 16

Push Buttons and Debouncing

Factoid - High Power Disconnect

TEM Fun:

Power Issues

Embedded Rules of Thumb

HW: Using the code suggested in the debounce article to simultaneously debounce 4 switches. Show that this works by having the LED’s count up by one every time ANY of 4 switches is pressed.

Lesson 7 items due

(none)

15

Monday, February 19

Semaphores and Handshaking, More DSP BIOS.

 

Setting up a timer in a PIC.

 

TEM: Mars Pathfinder - good article on need for good Real Time OS’s.

HW: Using the above code, create a PIC version of a dice, e.g. returns a number randomly from 1 to 6 every time one of 4 buttons is pressed.

Final Project GUI Visualization Interface Due

 

Lesson 8 items due

(none)

16

Wednesday, February 21

Catch up day

 

Lesson 9 items due

(state transition diagram from last slide in that lecture)

17

Friday, February 23

GUI Discussion

Read handout on drawing circuits

Lesson 10 items due

(none)

18

Monday, February 26

DEMO: xPC systems

SITE VISIT: Aerotech motors and controls

Reading: Actuator technologies presentation

 

Read p 192-193 of Chapter 3 on how to expand the number of inputs of a PIC. HW:  If the LS165 chip is available, use it with your PIC to create a “combo lock” wherein, if 6 digital inputs are correct, an LED will light up.

Lesson 11 items due

(none)

19

Wednesday, February 28

Robot Re-Assembly

HW: read pages 205-208 of the above Chapter 3, and create a logic probe using your microprocessor.

Lesson 12 items due

(none)

20

Friday, March 02

Robot Re-Assembly

DSP Lab 3 – Daughter Boards

Final Project Hardware Due

Final Project GUI Simulation Interface Due

 

Team self assessment 1

 

Lesson 13 items due

(none)</