Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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,

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle 11G SQL

Authors: Joan Casteel

2nd Edition

1133947360, 978-1133947363

More Books