Question: C++ Solar Panel Programming Assignment I NEED HELP TO DO THE FOLLOWING USING C++ Take the gear with the notch off of the servo and
C++ Solar Panel Programming Assignment
I NEED HELP TO DO THE FOLLOWING USING C++
Take the gear with the notch off of the servo and put it on the left motor. Attach the limit
switch like shown in the picture so that the standoff on the gear hits the limit switch when it goes
counterclockwise (see 3.1.6 for the setup)
Basic Requirements
- Create a power station which operates only during the day when the sun is powering the stations solar panels.
- The station is geared up so that the leftmotor slowly moves the solar panel in an arc to follow the sun. The leftmotor must spin at a constant speed of 25 (motor value)
clockwise throughout the day when the lightsensor returns a value less than or equal to 250.
- When the lightsensor returns a value greater than 250, the leftmotor must gradually power down over the course of 5 seconds.
- Then, the right motor must spin at a speed of 125 counterclockwise to wind the solar panel back to its original position over the course of the night.
- The bump switch must function as an emergency shut-off feature which can shut down
the entire power station (immediately) at any time.
- While the station is paused, a timer must record how long the station has been paused and records it as a variable
- When the station is turned back on (via bumpswitch), the left motor must spin faster to bring the solar panel back to its correct position
- To prevent the power station from being spotted by enemy bombers, if anything comes within 30 of the ultrasonic sensor, the power station must slow down to half speed.
- Once the coast is clear, the power station must wait for 15 seconds before running the leftmotor at a higher speed to catch up to the Suns location and then resume normal operation
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
