Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using an Arduino UNO, please create a C program AND build the circuit schematic for the above. Thank you. Goal: Two buttons function as 'alarm

image text in transcribed

Using an Arduino UNO, please create a C program AND build the circuit schematic for the above. Thank you.

Goal: Two buttons function as 'alarm conditions When both buttons are pressed together briefly (envision them as stand-ins for a pressure and a temperature sensor on a chemical reactor) then a red warning LED comes on and the green 'normal operations' LED goes off. The third button functions as an override for the alarm (envision the alarm goes on due to too high pressure and temperature at the same time, and then technicians come in to fix the issue and they want to turn the alarm off). So when the third button is pressed briefly the red LED goes off again and the green LED comes on to indicate that the alarm has been reset. Set-up: Buttons: Connect three buttons to digital pins of the Arduino. The buttons need to connect the pins to ground. Program the pins to be inputs with internal pull-up resistorsusing the pinMode) statement this results in the pins being logic HIGH when the buttons are not pressed, and logic LOW when the buttons are pressed. LEDs: Connect a green and a red LED to two digital pins and program the pins to be outputs. Make sure you put 220k resistors in series with the LEDs to limit the current. Programming:Read out the buttons in the loop and use conditional statements and Boolean operators to evaluate the situation and control the LEDs

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

IBM Db2 11 1 Certification Guide Explore Techniques To Master Database Programming And Administration Tasks In IBM Db2

Authors: Mohankumar Saraswatipura ,Robert Collins

1st Edition

1788626915, 978-1788626910

More Books

Students also viewed these Databases questions