Question: Objective: Learn how to perform discrete input and output operating in C. Experience with both seven-segment LED and keypad. Requires: E3 module, USB cable, PC,

 Objective: Learn how to perform discrete input and output operating in

Objective: Learn how to perform discrete input and output operating in C. Experience with both seven-segment LED and keypad. Requires: E3 module, USB cable, PC, 3 x 4 keypad, seven-segment LED with resistors on each anode and wires to connect to the E3. Notes Steps/Technical Procedure 1. Write a program that will repeat the following actions a. Light the green LED and wait for a button press b. After the button is released, light just the yellow LED for 1 second c. Then light just the red LED for 1 second d. Finally turn off all LEDs and sound the buzzer with a 1-khz tone for 3 seconds The buzzer on this board is actually just a piezo speaker. To make a tone you must generate a 0 to 5V square wave to the device at the desired frequency. HINTS: Consider what must be done regarding debounce of the switch. Make sure the tone sounds right and is not half or double the desired frequency

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!