Question: I just need help with writing the code. In this part, you need to complete a small project emulating a solar panel that tracks the
I just need help with writing the code.
In this part, you need to complete a small project emulating a solar panel that tracks the light source. The following procedures describe the required criterion. 1. Build two circuits of photoresistors used in Module 1. Connect the outputs of these two circuits to analog inputs A0 and Al. 2. Place one resistor on the right and the other one on the left. 3. Develop a code to implement the following rules: a. If right side is bright and left side is dark, rotate the panel to 0. b. If left side is bright and right side is dark, rotate the panel to 180. c. Read the brightness of both side, develop a code that can adjust the angle according to the average of the brightness of both sensors. If both sensors detect identical brightness, rotate the panel to 90. 4. Assignment: Write your code to implement the above rules. In this part, you need to complete a small project emulating a solar panel that tracks the light source. The following procedures describe the required criterion. 1. Build two circuits of photoresistors used in Module 1. Connect the outputs of these two circuits to analog inputs A0 and Al. 2. Place one resistor on the right and the other one on the left. 3. Develop a code to implement the following rules: a. If right side is bright and left side is dark, rotate the panel to 0. b. If left side is bright and right side is dark, rotate the panel to 180. c. Read the brightness of both side, develop a code that can adjust the angle according to the average of the brightness of both sensors. If both sensors detect identical brightness, rotate the panel to 90. 4. Assignment: Write your code to implement the above rules
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
