Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Figure Q3(b) shows the circuit diagram setup of a program to execute simple running lights and potentiometer reading. There are FOUR (4) LEDs for running

Figure Q3(b) shows the circuit diagram setup of a program to execute simple running lights and potentiometer reading.

There are FOUR (4) LEDs for running lights are and TWO (2) push buttons for interrupts.

In the running lights task (main program), each LED is turned on for 150ms and turned off for another 150ms, consecutively from LED1 (D1) to LED4 (D4).

On the other hand, push button 1 (PB1) is used to trigger Interrupt Program 1 which is to read potentiometer value and push button 2 (PB2) is used to trigger Interrupt Program 2 which is to turn on all LEDs for 200ms and turn them off afterwards.

Develop the programming code to execute required program.

image text in transcribed

D1 R2 220 DUINO1 LED-RED D2 R3 2 LED-YELLOW D3 R4 220R RESEY LED-GREEN D4 R5 RV1 220R ARET 13 PB53CK 12 PB4MSO -PB3MOSIOCA 10 - PB2/5S/OC1B - P21/0C1A PBOPULKO POTIAIN1 z PDS/T1 PD4 TOXCK -PDS NT1 PD INTO TX PDTXD RX PDO ROXD LED-BLUE NISSAN PB2 POSAND AD A1 A2 A3 A4 AG PCOADCO PCUADC1 PCRIADCZ PC3ADCS PC4IADC45DA PCSIADCISCL ANALOG IN DIGITAL (-PWM) 1K PS1 ARDUINO UNO R3 RXD VT2 VTRANE TXD RTS CTS Figure Q3(b)

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

Concepts of Database Management

Authors: Philip J. Pratt, Mary Z. Last

8th edition

1285427106, 978-1285427102

More Books

Students also viewed these Databases questions

Question

What is the most important part of any HCM Project Map and why?

Answered: 1 week ago