ME 477 Embedded Computing in Electromechanical Systems

This course is an introduction to microprocessor-based measurement and control of mechatronic systems. Topics include processor architecture, computer memory, C programming, hardware and software interfaces, and communications. Emphasis is placed on hardware and software interface design for real-time measurement, control, and user interface.

This course is an introduction to microprocessor-based measurement and control of mechatronic systems. Topics include processor architecture, computer memory, C programming, hardware and software interfaces, and communications. Emphasis is placed on hardware and software interface design for real-time measurement, control, and user interface.

General information

Discord

Everyone is required to join the messaging service called "Discord." We'll use it to communicate with each other during the semester. The Discord server you need to join is called drico. That's an invitation link. Be sure to join the channel #477-577.

Textbooks

(PGD) Picone, Garbini, Devine. An Introduction to Real-Time Computing for Mechanical Engineers: A Lab-Based Approach. The MIT Press. 2024.

An Introduction to Real-Time Computing for Mechanical Engineers: A Lab-Based Approach

(KR) Any introduction to the C programming language. For example, Kernighan, B. W. and Ritchie, D. M., The C Programming Language. Prentice Hall, 2nd Ed. 1988.

The C Programming Language

(PH) Patterson, David A. and Hennessy, John L. Computer Organization and Design: The Hardware Software Interface ARM Edition. Morgan Kaufmann Publishers, 2016.

Computer Organization and Design: The Hardware Software Interface ARM Edition

(RW) Derek Rowell and David N. Wormley. System Dynamics: An Introduction. Prentice Hall, 1997.

System Dynamics: An Introduction.

(Ni) Norman S. Nise. Control Systems Engineering. Seventh Edition. Wiley, 2015.

Control Systems Engineering.

Companion Website and Lecture Videos

The book has a companion website that includes lecture videos: rtcbook.org. We will be using a "flipped-classroom" style for this course. Before coming to class , please watch the videos corresponding to the chapter of the book that appears on the schedule for that week.

Schedule

The following schedule is tentative.

tentative
day lectures week due
Introduction to real-time and embedded computing
Syllabus
Course structure
1
Chapter 0 Getting Started (through 0.3) 2
Chapter 0 Getting Started 3 Lab 0
Chapter 1 Real-time computing fundamentals and programming the high-level user interface 4 Lab 1
Chapter 2 Efficient design and programming the midlevel User Interface 5 Lab 2
Chapter 3 Digital communication, signals, and programming the low-level user interface 6 Lab 3
Chapter 4 Motor control, finite-state machines, and waiting for real-time computing 7
Chapter 4 Motor control, finite-state machines, and waiting for real-time computing 8 Lab 4
Chapter 5 Real-time scheduling with threads and interrupts, digital circuits, and mechanical switches (through 5.4) 9
Chapter 5 Real-time scheduling with threads and interrupts, digital circuits, and mechanical switches 10 Lab 5
Chapter 6 Digital realization of dynamic systems (through 6.4) 11
Chapter 6 Digital realization of dynamic systems 12 Lab 6
Chapter 7 Closed-loop motor velocity control with a digital controller (through 7.4) 13
Chapter 7 Closed-loop motor velocity control with a digital controller 14 Lab 7
Chapter 8 PID Motor Position Control and Path Planning (through 8.4) 15
Chapter 8 PID Motor Position Control and Path Planning 16 Lab 8 and Graduate Projects
Day Date Topics Reading Due

Laboratory exercises and reports

For each laboratory exercise listed in the schedule, perform the following tasks.

  • Do the assigned reading.
  • Perform the laboratory procedure described in the book.
  • Write and submit to Moodle a lab report and source code.
  • Graduate student responsibilities

    Graduate students have three additional responsibilities: (1) perform a literature search to understand an aspect of each laboratory exercise in greater depth; (2) as part of the introduction to each laboratory report (should be about a page in the standard format), summarize your research, citing least two academic sources; and (3) at the end of the semester, write a detailed research report on an application of embedded or real-time computing, focusing on the embedded or real-time computing aspect of the application.

    Research report for the end of the semester

    Graduate students will write a detailed research report on an application of embedded or real-time computing, focusing on the embedded or real-time computing aspect of the application. The report is due on the Friday of Final Exam week. Submit the report via Moodle.

    The report should be 5–10 pages long, including figures and references. The report should include the following sections:

  • Abstract: A brief summary of the report. About 100 words.
  • Introduction: A brief introduction to the topic and background information. About 1 page.
  • Application: A detailed description of the application. About 1–2 pages.
  • Applied Embedded or Real-Time Computing: A detailed description of the embedded or real-time computing aspect of the application. Include a discussion of the hardware and software used, the design process, and/or challenges. Make extensive use of references to the literature and avoid speculation. About 2–5 pages.
  • Conclusion: A brief summary of the report. About 1 page.
  • References: A list of references used in the report. At least 5 references, including at least 2 academic sources.
  • Laboratory policies

    A laboratory report will be due on Friday of the week it appears on the schedule. These reports will be submitted via Moodle and must be in accordance with the requirements provided here.

    Laboratory procedures should be performed individually , although collaboration is encouraged. That is, discussions of how to accomplish aspects of the lab are great, but everyone should write their own code.

    individually everyone should write their own code

    Laboratory reports should also be prepared individually.

    Homework and report policies

    Homework policies

    When assigned, homework assignments should be submitted on Moodle by the due date that appears on the schedule.

    Working in groups on homework is strongly encouraged, but work turned-in must be one's own.

    Report policies

    Grading policies

    Total grades in the course may be curved, but individual assignments will not be. They will be available on Moodle throughout the semester.

    Assuming no exams are given, the grading breakdown is simple.

    Lab Reports, Code, Assignments 100%

    For graduate students, 10 percent of their grade will depend on their research report.

    Correlation of course & program outcomes

    In keeping with the standards of the Department of Mechanical Engineering, each course is evaluated in terms of its desired outcomes and how these support the desired program outcomes. The following sections document the evaluation of this course.

    Desired course outcomes

    Upon completion of the course, the following course outcomes are desired:

  • students will have a clear and thorough understanding of concepts, principles, and methods of embedded computing in electromechanical systems;
  • students will understand basic computer architecture;
  • students will understand basic C programming;
  • students will be able to program an embedded computer;
  • students will be able to design a basic feedback control system;
  • students will be able to write a clear and thorough report of a laboratory exercise; and
  • students will collaborate to complete laboratory exercises.
  • Desired program outcomes

    In accordance with ABET's student outcomes, our desired program outcomes are that mechanical engineering graduates have:

  • an ability to identify, formulate, and solve complex engineering problems by applying principles of engineering, science, and mathematics
  • an ability to apply engineering design to produce solutions that meet specified needs with consideration of public health, safety, and welfare, as well as global, cultural, social, environmental, and economic factors
  • an ability to communicate effectively with a range of audiences
  • an ability to recognize ethical and professional responsibilities in engineering situations and make informed judgments, which must consider the impact of engineering solutions in global, economic, environmental, and societal contexts
  • an ability to function effectively on a team whose members together provide leadership, create a collaborative and inclusive environment, establish goals, plan tasks, and meet objectives
  • an ability to develop and conduct appropriate experimentation, analyze and interpret data, and use engineering judgment to draw conclusions
  • an ability to acquire and apply new knowledge as needed, using appropriate learning strategies.
  • Correlation of outcomes

    The following table correlates the desired course outcomes with the desired program outcomes they support.

    desired program outcomes
    1 2 3 4 5 6 7
    desired course outcomes 1

    Academic Honesty/Professionalism

    What is Academic Integrity?

    Saint Martin's University is a community of faculty, students and staff engaged in the exchange of ideas in the ongoing pursuit of academic excellence. Essential to our mission is a focused commitment to scholarly values and intellectual integrity, and a respect for the ideas, beliefs and work of others. This commitment extends to all aspects of academic performance. All members are expected to abide by ethical standards both in their conduct and their exercise of responsibility to themselves and toward other members of the community. As an expression of our shared belief in the Benedictine tradition, we support the intellectual, social, emotional, physical and spiritual nurturing of students.

    What is Academic Dishonesty?

    Saint Martin's University defines academic dishonesty as violating the academic integrity of an assignment, test and/or evaluation of any coursework. This dishonest practice occurs when you seek to gain for yourself or another an academic advantage by deception or other dishonest means. You have a responsibility to understand the requirements that apply to particular assessments and to be aware of acceptable academic practice regarding the use of material prepared by others. Therefore, it is your responsibility to be familiar with the policies surrounding academic dishonesty as these may differ from other institutions.

    The Acceptable Use of AI in Coursework

    Any use of technology that misleads a reviewer in assessing the student's mastery of a specific set of skills or knowledge is a type of intellectual dishonesty, that is, a type of cheating. Students who are unsure about the appropriateness of using an artificial intelligence tool (or "AI") must check with the instructor before using it. This includes the use of tools that generate text, images, video, code, and other works. If you are permitted by your instructor to use one or more AI tools in producing your work, you must disclose the use of that tool. You should say which tool you used and how you used it. Then if you use specific AI generated content (text, images, videos, audio, code, and so on) you must cite it in the style (APA, MLA, and so on) specified by your instructor.

    University-Sanctioned Activities

    If you are absent from class due to university-sanctioned activities, such as sports, it is your responsibility to request that the absence be excused; otherwise, the absence will be recorded as unexcused. Absent students are responsible for catching up with the class, and if any assignments are due on the day of the absence, it is your responsibility to turn in the assignments on time (prior to class). Assignments may be submitted as an attachment to the instructor's email address.

    Counseling and Wellness Center

    There may be times, as a college student, when personal stressors interfere with academic performance and daily life. The Counseling and Wellness Center supports students by addressing mental and emotional well-being with FREE and CONFIDENTIAL services. To schedule an appointment, call 360-688-2016, or email counselingcwc@stmartin.edu, or stop by the CWC (1st floor St. Raphael Center). If you would rather not go to the CWC or need support in the evenings and weekends, please consider using the TimelyCare app (timelycare.com/smusaints) to speak with a mental health provider, free, 24/7, from your phone or computer. We are honored to provide individual and group therapy to hundreds of students every year. Please reach out if you feel our services might support your wellness.

    Center for Student Success

    The Center for Student Success offers free academic services for all Saint Martin's students. The Center provides subject-area peer tutoring in science, technology, nursing, engineering, math, business, accounting, economics, world languages and other subjects. At the Writing Center, students meet with writing tutors to discuss their academic, personal, and professional writing. The Advising Center works with students on academic advising, connecting with campus support resources, transition and self-exploration guidance, personalized academic improvement plans, learning workshops, and support for changing majors. Disability Support Services is also located in the Center for any student with a disability who needs accommodations. For more information on the Center for Student Success, or to sign up for a tutoring, advising, or DSS meeting, see the website: https://www.stmartin.edu/directory/offices-departments-directory/center-student-success

    Saints Care

    Saints Care is a student support network bringing together campus partners—faculty, staff, families and students—to foster the success of each student in their navigation of campus life. Faculty, staff, students, and community members are welcome to submit a Saints Care Referral at https://www.stmartin.edu/saints-care for any reason; including, but not limited to:

  • Academic concerns
  • Personal health issues
  • Not attending classes
  • Death or health concerns in the family
  • Behavioral concerns or changes
  • Safety concerns
  • Personal, emotional, or financial issues
  • Substance use concern
  • Disability support or assistance, either short or long term, including medical accommodations
  • Disturbing, distressing, or disruptive behavior or statements
  • Suicide ideations (verbal and/ or written, including class assignments and social media)
  • Aggressive or violent behaviors
  • Stalking, dating or domestic violence
  • Diversity and Inclusion Statement

    Recognizing and embracing diversity is an essential part of academic life and learning. At Saint Martin's, our Catholic mission and Benedictine charism call us to welcome and embrace all who enter our university. We promote the transcendent dignity of the human person and commit ourselves to fostering an inclusive and global learning environment. Our respect for persons means we welcome the similarities and differences that comprise our students, faculty, and staff; we open ourselves to the profound change that different cultures, traditions, and beliefs can have on our practice of community; and we educate students to transform our world for peace and justice. We support our students in their navigation of university life, addressing issues of conflict through the ARC Reporting System (Accountability, Responsibility, and Community) to restore community. Saint Martin's offers multiple offices and resources to promote diversity across campus. The Chief Diversity Officer, Dr. John P. Hopkins, is available at jhopkins@stmartin.edu. All are welcome in the Dignity Center Lounge, located in Harned Hall, 207.

    Religious Accommodation Statement

    Saint Martin's University, in honor of the sacredness of the individual, and being deeply rooted in the Catholic Benedictine tradition of higher education, values the many religious and spiritual practices of our campus community. Saint Martin's University supports our students in their ongoing journey of becoming. In compliance with Washington State Law RCW 28B.137.010, Saint Martin's University reasonably accommodates students for reasons of religious observances.

    Access and Accommodations

    Your experience in this class is important to me. If you have already established accommodations with Disability Support Services (DSS), please communicate your approved accommodations to me at your earliest convenience so we can discuss your needs in this course. If you have not yet established services through DSS, but have a temporary health condition or permanent disability that requires accommodations (conditions include but are not limited to mental health, attention-related, learning, vision, hearing, physical or health impacts), you are welcome to contact DSS at 360-438-4580 or smu.dss@stmartin.edu. DSS offers resources and coordinates reasonable accommodations for students with disabilities and/or temporary health conditions. Reasonable accommodations are established through an interactive process between you, your instructor(s) and DSS. It is the policy and practice of Saint Martin's University to create inclusive and accessible learning environments consistent with federal and state laws.

    Sexual Misconduct/Sexual Harassment Reporting

    Saint Martin's University is committed to providing an environment free from sex discrimination, including sexual harassment and sexual violence. There are Title IX/sexual harassment posters around campus that include the contact information for confidential reporting and formal reporting. Confidential reporting is where you can talk about incidents of sexual harassment and gender-based crimes including sexual assault, stalking, and domestic/relationship violence. Confidential resources include the Counseling and Wellness Center (1st floor St. Raphael Center) or the Student Health Center (Burton Hall 102). These confidential resources can help you without having to report your situation to the formal reporting process via the Interim Dean of Students – Ms. Ann Adams, Title IX Coordinator & Associate VP of Human Resources – Ms. Cynthia Johnson, and/or Public Safety – Ms. Sharon Schnebly unless you request that they make a report. Please be aware that, in compliance with Title IX and under the Saint Martin's University policies, educators must report incidents of sexual harassment and gender-based crimes including sexual assault, stalking, and domestic/relationship violence. I appreciate that you feel comfortable talking with me. No one deserves to experience such behavior. Please know that our conversation is not confidential, but it is private. As someone who cares about your safety and well-being, I want you know that I have a responsibility to tell a member of the Title IX Team (listed above) so that he/she is aware and can provide you with information about options available to you regarding your safety and access to support services