Pre-class Assignment
Complete participation activities for 11.1 and 11.2.
Announcements
- Lab 2 is due today
- Talk to me ASAP if you are having issues finishing the lab
- Lab 3 is out and will be due Thursday March 7th
- 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).
- If you want to work in a different group from your current group, let me know ASAP
- I’m generally happy to give people extensions until after break, but the lab is designed for you to not have to work over break 🙂
- Do not forget to complete Challenge Activity 10.4.1 before the end of Lab 3
- Office hours signup
Learning Objectives and Outcomes
In this lecture, you will...
- listen to a lecture on lab 3 and work on in class exercises on implementing state machines
By the end of this lecture, you should be able to...
- complete a good chunk of lab 3 (exercise 1, exercise 3-6), and start on exercise 2
Lecture Content
Introduction to Lab 3
See Lab 3: Stoplight State Machine
Key points:
- You will be building a state machine to implement a stoplight
- This will involve a detailed state machine design and implementation, along with an implementation of a basic sensing scheme using ultrasonic sensors
- The state machine is the meat of the lab and hardest part; you’ll have enough to start now but you may find looking ahead at the chapter 12 sections helpful. You can also choose to do the LEDs and ultrasonic sensors first or if you get stuck on the state machine.
- Advice for state machine: work on it in a modular fashion. Get the basics to work first (responding to inputs), and then add more complex tasks like transitioning the stoplights and enforcing safety requirements.
Mealy vs. Moore State Machines