Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 rulesStep 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