Pre-class Assignment
Complete participation activities for 12.1-12.3.
Announcements
- Assessment 1 grading in progress (expected by next lecture)
- Lab 3 is out and will be due Wednesday March 18th
- You will continue using the same breadboards. You do not need to disassemble your board unless you need space. Please do not throw out any supplies (other than “consumables” like wire/resistors/capacitors/electrodes).
- Do not forget to complete Challenge Activity 10.4.1 and 12.3.1 (introduced today) before the end of Lab 3
- Office hours signup
Learning Objectives and Outcomes
In this lecture, you will...
By the end of this lecture, you should be able to...
- choose the appropriate period for the stoplight state machine
- implement the state machine without including waiting transitions
Lecture Content
- seatbelt example from L11
12.4
12.7
Exercise 4: Hooking up the Ultrasonic Sensor (2 pts)
- Current Implementation of Lab 3 ultrasonic sensor code
- Another approach for handling waiting
<aside>
💡 It will be up to you to decide how to handle the ultrasonic sensor data in lab 3. You may use the “waiting” approach or create a state machine for the ultrasonic sensor. With either option, be careful such that your stoplight state machine is able to tick on time.
</aside>