CSCE 236: Embedded Systems
Spring 2014

Instructor

Dr. Carrick Detweiler
Computer Science and Engineering
220 Schorr Center
carrick _at_ cse.unl.edu
Office Hours:
Wednesday 9:30-10:30am, schedule online, and by appointment.

Teaching Assistant

Graduate TA: Sreeja Banerjee
Undergraduate TA: Courtney Ingersoll
Undergraduate TA: Paul Kubitschek
Office Hours:
Sreeja Banerjee: Thursday, 2:30-3:30pm (SRC, Avery Hall)
Courtney Ingersoll: Thursday, 9:30-10:30am (223 Schorr Center)
Paul Kubitschek: Wednesday, 2:00-3:00pm (223 Schorr Center)

Course Information

Lecture: Monday, Wednesday, Friday 8:30-9:20am in Avery 110

For detailed information on this course please see the course syllabus in html or pdf format.

Course Description

Embedded Systems are everywhere. Every time you look at your watch, answer the phone, take a picture, or turn on the TV you are interacting with an embedded system. Embedded systems are also found in cars, airplanes, and robots. They far outnumber traditional computers (which also contain embedded processors) and it is estimated that there will be thousands of embedded devices per person by 2015 (Lisa Su, CTO Freescale Semiconductor, 2008). Learning to design and program embedded systems is a critical skill that is necessary for many industry and scientific jobs.

In this course you will learn the basics of designing, interfacing, configuring, and programming embedded systems. We will make use of the Arduino platform, which is an inexpensive, popular embedded system used by hobbyists, researchers, and in industry, to implement the techniques learned in class. By the end of the course you will have mastered the basics of embedded system design and programming. This course will help to prepare you for cutting edge careers in industry and research.

Datasheets and other useful documents

Assignments

See the course schedule below for reading assignments and the general topics covered in the course. Unless otherwise noted, assignments are due at the start of class on the due date.

Assignment Due Date
Course Survey Tues, Jan 14th, 5pm
HW 1 (pdf,code) Start of class, Friday, Jan 24
Pre-Lab 1 (pdf,html*) Start of class, Friday, Jan 31
Lab 1 (pdf,html*) Friday, Jan 31
HW 2 (pdf) Start of class, Wednesday, Feb 5
Pre-Lab 2 (pdf,html*,code) Start of class, Monday, Feb 10
Lab 2 (pdf,html*) Monday, Feb 10
HW 3 (pdf,code) Start of class, Friday, Feb 14
Lab 3 (pdf,html*,manual delay,pwm) Wednesday, Feb 19
Individual checkoffs due Feb 28 before class
HW 4 (pdf,code) Start of class, Friday, March 7
Lab 4 (pdf,html*) Friday, Feb 28
Project 1 (pdf) Checkpoint, Friday, March 14 (in class)
Competition, Friday, March 21 (Schorr 2nd floor, 8:30-10:30)
Written report, Wednesday, April 2 start of class
Lab 5 (pdf,html*,blink irq) Wednesday, April 2
HW 5 (pdf) Start of class, Friday, April 11
Lab 6 (pdf,html*)
VCNL4000 Ranger Info:
Sparkfun, Datasheet, Application Note, Sample Code
Wednesday, April 9
Project 2 (pdf) Checkpoint Wall Following: Friday, April 18 in class
Checkpoint Obstacle Avoidance: Friday, April 25 in class
Competition: Monday and Tuesday, April 28 and 30 in class
Presentation: Friday, May 2nd in class (videos emailed by 8:00am)
Written Report and Survey: Friday, May 2 at 4pm
For assignments that require electronic code submission, you can do so at: http://cse.unl.edu/~cse236/handin.
*Note html versions of assignments may lack some formatting or pictures found in the pdf version.

Course Books

W. Wolf, Computers as Components, Second Edition: Principles of Embedded Computing System Design, 2nd ed. Morgan Kaufmann, 2008.
Available in the book store or purchase online. Readings from this book are specified in the format Wx.x, where x.x indicates the chapter and subsection.

David Russell, Introduction to Embedded Systems, 2010.
Available for free download when on the UNL campus. Good reference for embedded C programming. Do not print out this book, it is less expensive to order a printed copy than to print it yourself. Readings from this book are specified in the format Rx.x, where x.x indicates the chapter and subsection. Note: this book is specifically designed for the Arduino platform, but there are some differences between the version of the Arduino used in the book and the version we are using in class. So be careful!

Edward Lee and Sanjit Seshia, Introduction to Embedded Systems, A Cyber-Physical Systems Approach, 2011.
Available for free download. Do not print out this book, it is less expensive to order a printed copy than to print it yourself. There are no specific readings from this book, but it is a good reference for those interested in exploring some subjects further.

Brian W. Kernighan and Dennis M. Ritchie, C Programming Language (2nd Edition), 1988. ISBN: 0131103628
Learn C The Hard Way, Zed Shaw
A wiki-style C "text book" alternative
Another online C text book
C Frequently Asked Questions from the days of Usenet
Suggested references for those with little prior C programming experience. There are no specific readings from these, but they are good references (thanks to Dr. Bourke for some of these references).

Course Schedule

Below is an approximate schedule of course topics. These are subject to change, assignments will be announced in class. Readings are recommended and will be added as the semester progresses, so make sure to check back often; however, the best resource for this course is attending class and taking good notes. The course is roughly broken into regular class lectures on Monday and Wednesday and then lab-style lectures on Fridays where a Labture is specified. Typically during labtures there will be a short topic-specific lecture followed by a hands-on, small group, in class lab assignment.

Week Class Topics Labture Reading
Week 1, Jan 13 course intro, c programming R2.1, R2.2, R2.4
Week 2, Jan 20 (NO CLASS Monday) embedded system design, arduino intro, basic circuit diagrams R2.5, R2.6, R2.7, R2.8, W1.1, W1.2
Week 3, Jan 27 instruction sets, registers and mem access, digital I/O LEDs and buttons W2.1, W2.2, R6.*
Week 4, Feb 3 timers, debugging timers and I/O W3.1, R7.*
Week 5, Feb 10 debugging, pulse width modulation (PWM) servos R4.*
Week 6, Feb 17 PWM, review test 1(tentative)
Week 7, Feb 24 analog to digital converters (A2D) analog sensors R8.*
Week 8, March 3 CPU bus, communication protocols (UART, SPI, RS485) W4.1, R10.1 to R10.1.3
Week 9, March 10 interrupts interrupts, communication
Week 10, March 17 project 1 competition W3.1.4, W3.2, R9.*
NO CLASS SPRING BREAK
Week 11, March 31 I2C, peripherals, sensors I2C R10.1.2
Week 12, April 7 Embedded Operating Systems i2c W6.1, W6.2, W6.3
Week 13, April 14 embedded systems applications, review test 2(tentative)
Week 14, April 21 power management, embedded algorithms, program optimization Project checkpoint W5.5, W5.6, W5.7
Week 15, April 28 final project competition final project competition