Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribedI 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

MongoDB Applied Design Patterns Practical Use Cases With The Leading NoSQL Database

Authors: Rick Copeland

1st Edition

1449340040, 978-1449340049

More Books

Students also viewed these Databases questions

Question

How to find if any no. is divisble by 4 or not ?

Answered: 1 week ago

Question

Explain the Pascals Law ?

Answered: 1 week ago

Question

What are the objectives of performance appraisal ?

Answered: 1 week ago