Question: Write a program that receives three inputs: a button, Sensor 1 and Sensor 2. Sensor 1 has a range of about 40 to 70 while

 Write a program that receives three inputs: a button, Sensor 1

Write a program that receives three inputs: a button, Sensor 1 and Sensor 2. Sensor 1 has a range of about 40 to 70 while Sensor 2 has a range around 25 to 200. If the button is pressed a PWM should be outputted to an LED based on sensor 1. Else make a PWM output to the same LED based on sensor 2. Remember to have the PWM go between 0 and 255

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!