July 10, 2013, Day 3:

Peter Tsun

Physics Teacher at Newtown High School since 2007.

Today we learned how to use push-button switches correctly with a microcontroller. We attended a lecture that gave an overview of switches and capacitors.Throughout the lecture, we asked many questions to understand how switches and capacitors operate and how to interface them with a microcontroller. Next, we performed experiments to read input from a push-button switch using a microcontroller. The highlight today is a project in which we developed the circuitry and program so that a microcontroller can keep track of number of students in a school building (by counting entering and exiting students). The corresponding program is shown in the enclosed picture and was written by Kelly and Alexa. Another enclosed picture shows a circuit to control two LEDs, one using a digital signal (on-off) and the other using an analog signal (to control LED brightness).

Image description

Image description