10-20-16

Part 1: Today we add a button (input) and the code to control you stoplight circuit.

Adding a button to your stoplight circuit

Adding input and an if/else statement to your stoplight

Part 2: Using your knowledge of circuit building and programing, build and program a stoplight circuit that does the following:

Program sequence:

Green light – waiting for input (the button to be pressed)

The button is pressed and then the light changes to

Yellow light –  on for two seconds then off

Red light – on for three seconds then off

Returns to green light

After you have successfully wired and programmed a working stoplight circuit, bring it to Milstead or Varvil for us to review and grade.

Part 3: Electronic Halloween

 

Leave a Reply

Your email address will not be published. Required fields are marked *