Question
1- A user needs to control the brightness of a LED by using two pushbuttons, one to increase brightness and one to decrease it. Whenever
1- A user needs to control the brightness of a LED by using two pushbuttons, one to increase brightness and one to decrease it. Whenever the user presses the first pushbutton, the brightness increases continuously, when the user releases the pushbutton, the brightness remains at its current state. Whenever the user presses the second pushbutton, the brightness decreases continuously, when the user releases the pushbutton, the brightness remains at its current state.
a. Sketch, by hand, the schematic of the circuit needed to implement the system using Arduino and MATLAB Support package for Arduino hardware. (5 pts)
b. Write your MATLAB code to satisfy the Systems requirements. (10 pts)
2-
An obstacle-avoiding robot is to be designed using a Raspberry Pi and GPIOZERO library.
1. Three ultrasonic sensors are to be used: front sensor, left sensor, and right sensor.
2. When an obstacle is detected in front of the robot, the robot should move backward.
3. When an obstacle is detected to the right of the robot, it should turn left.
4. When an obstacle is detected to the left of the robot, it should turn right.
5. Two DC motors are to be used with H-bridges.
6. A switch is to be used in order to turn the robot On and OFF.
a. Sketch by hand the design of the robot, and the Raspberry Pi connections needed. (10 pts)
b. Use GPIOZERO library to write the code needed for the robot. (20 pts)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started