Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

NEED THIS ASAAAP PLS Question 1: [ 40 pts] Our goal in this project is to use a servo motor controlled by two buttons BUTTON1

NEED THIS ASAAAP PLS image text in transcribed

Question 1: [ 40 pts] Our goal in this project is to use a servo motor controlled by two buttons BUTTON1 and BUTTON2. Pressing BUTTON1 adds 20 to the current angle. If the angle exceeds 180, the angle will be set to 180. Pressing BUTTON2 subtracts 20 from the current angle. If the angle is below zero 180, the angle will be set to zero. The initial angle is set to zero. Question 2: [ 60 pts] In this exercise you will use an Ultrasonic Distance Sensor and a Seven-Segment Display. We check for distances: If distance is less than 50, then the digit 1 will be display. If distance is between 50 and 70, then the digit 2 will be display. If distance is between 70 and 90, then the digit 3 will be display. If distance is between 90 and 110, then the digit 4 will be display. If distance is between 110 and 130, then the digit 5 will be display. If distance is between 130 and 150, then the digit 6 will be display. If distance is between 150 and 170, then the digit 7 will be display. If distance is between 170 and 190, then the digit 8 will be display. If distance is greater than 190, then the digit 9 will be display

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_2

Step: 3

blur-text-image_3

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

Upgrading Oracle Databases Oracle Database New Features

Authors: Charles Kim, Gary Gordhamer, Sean Scott

1st Edition

B0BL12WFP6, 979-8359657501

More Books

Students also viewed these Databases questions