QUESTION 4 125 MARKS] Due to the outbreak of COVID-19, there has been an increasing need for individuals and families to

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

QUESTION 4 125 MARKS] Due to the outbreak of COVID-19, there has been an increasing need for individuals and families to

Post by answerhappygod »

Question 4 125 Marks Due To The Outbreak Of Covid 19 There Has Been An Increasing Need For Individuals And Families To 1
Question 4 125 Marks Due To The Outbreak Of Covid 19 There Has Been An Increasing Need For Individuals And Families To 1 (52.38 KiB) Viewed 33 times
QUESTION 4 125 MARKS] Due to the outbreak of COVID-19, there has been an increasing need for individuals and families to remain safe. The World Health Organization (WHO) and medical experts advise everyone to wash their hands regularly with soap and water, and apply alcohol-based hand sanitizers, which sanitizers help in killing any virus on your hands, and curb the spread of the virus. As a design engineer you have been asked to develop a simple yet effective embedded system to fight COVID-19 with hand sanitization. The system consists of STM32F103C6, two common cathode LEDs, LED1 and LED2 connected to PBO and PB1 respectively, two active low switches SWI and SW2 connected to PAI and PA2 respectively, and 16x2 LCD display. Write a metal embedded C program to satisfy the following conditions shown in Figure 5 Condition Press SW1 Press SW2 Operation LEDI Blinking At the second line LCD will display "Servo Pos: 0" LED2 Blinking At the first line of the LCD will display "Dispense" At the second line LCD will display "Servo Pos: 90" Figure 5 [25 Marks] [CO2, PO3, C4|
QUESTION 5 [10 MARKS] The STM32 microcontroller embeds multiple timers providing timing resources for software or hardware tasks. The ARM Cortex M3 processors come with a SysTick timer that is part of the core, which used for producing the main system event clock. Write a complete metal embedded C program to toggle a LED display attached to PAI STM32F103 On and OFF at 2 seconds interval controlled by SysTick timer setting. [10 Marks] [CO2, PO3, C4]
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply