一、課程說明(Course Description)



We use C/C++ in this course with ARM mbed library to write control codes for an embedded Cortex M4 board.
And we show through hands-on practice labs on interfacing with different sensors and actuators, and
eventually building a smart IoT device. Starting with basic digital and analog inputs and outputs, we build an
arbitrary wave generator and analyzer. Also we demo how to display captured information on a full-color LCD.
Several serial protocols are then introduced including UART, SPI and I2C. Remote procedure calls with serial
protocols are applied to send control messages between PC and M4. Besides wired control, we use Zigbee
for low power wireless messaging. IoT applications based on Ethernet (WiFi) will also be demonstrated.
Finally, we use a Boe Bot car platform to integrate all components.



二、教科書(Textbooks)

Fast and Effective embedded Systems Design: Applying the ARM mbed (Second Edition), 2016, by Rob
Toulson and Tim Wilmshurst, Newnes.

三、參考書籍(References)

embedded System Interfacing 1st Edition, Design for the Internet-of-Things (IoT) and Cyber-Physical
Systems (CPS), by Marilyn Wolf, Morgan Kaufmann, 2019

四、教學方式 (Teaching Method)

One-hour lecture and two-hour lab per week

五、教學進度(Syllabus)



















































































































週次 課程內容
01 Course overview

Mbed Lab 1 mbed Introduction
02 Mbed Lab 2 Digital Input and Output


Mbed Lab 3 Analog Output

03 Mbed Lab 4 Analog Input
04 Mbed Lab 5 Liquid Crystal Displays
05 Mbed Lab 6 Interrupts, Timers, Tasks and RTOS
06 Mbed Lab 7 Serial Communication
07 Mbed Lab 8 Audio Synthesis on mbed
08 Midterm
09 Mbed Lab 9 Serial RPC
10 Mbed Lab 10 Wifi and MQTT (Sports day)
11 Mbed Lab 10 Wifi and MQTT (Only TA session)
12 Mbed Lab 11 XBee
13 Mbed Lab 12 Servos, encoder and ping
14 Mbed Lab 13 BOE BOT Car
15 Final Project preparation
16 Final Project Demo


六、成績考核(Evaluation)

* Homework 40%

* Midterm Exam 30%

* Final project and demo 30%

七、可連結之網頁位址

http://www1.ee.nthu.edu.tw/ee240500/