Safety and scope
Use a lightweight mock panel during development and ensure the frame cannot pinch fingers or fall over.
Plan, predict and test
Suggested virtual study time: about 25 minutes. This is a planning estimate, not a validated construction time.
Preparation: Foundation electricity and basic programming logic. Adult supervision for children. Review a foundation lesson ↗
Use paper, a spreadsheet or a simulator. This is not a verified physical assembly guide.
- Scenario: Assume left/right LDR values 700/500 and 515/500 with a 50-count deadband.
- Expected result: Differences 200 and 15: first exceeds deadband; second does not.
- Checkpoint: Write your prediction, test it in the virtual model and explain any difference.
A correct answer does not certify the physical system.
Record your validation
Use only virtual inputs and indicators until the actual components, pinouts and electrical limits have been verified.
| Case | What to record |
|---|---|
| Normal input | 700 − 500 = +200 → D8; reverse → D9 |
| Boundary | Difference +50 or −50 → both LOW; +51 → D8; −51 → D9 |
| Missing or invalid input | No physical position feedback or sensor validity check; indicators only. |
| Repeat test | Repeat the virtual test, record the actual output and compare with the expected result. |
These are test-planning requirements, not recorded hardware results.
Before building: understand the listed components and the relevant low-voltage safety rules. This is a concept brief, not a tested assembly manual.
What it does
Explore a closed-loop control system in which the sensor measurement guides the actuator position.
Engineering principle
LDRs change resistance with light intensity. Arranged in pairs, their voltage-divider readings can be compared left/right and top/bottom. The controller adjusts horizontal and vertical servos until each pair is sufficiently balanced, subject to a deadband to prevent constant jitter.
Hardware and components
- Arduino UnoReads the light sensors and controls the servos.
- 4 × LDRs and 4 × 10 kΩ resistorsCreate left/right and top/bottom light-sensing voltage dividers.
- 2 × servo motorsProvide horizontal azimuth and vertical elevation movement.
- Panel mount/frameHolds the mock panel and servo joints.
- 5 V supply and wiringPower the controller and actuators; servo current must be considered.
Suggested build sequence
- Arrange four LDRs with small dividers or barriers to create directional differences.
- Build and measure the voltage-divider outputs.
- Mount one servo for horizontal rotation and another for tilt.
- Compare sensor pairs and apply a deadband before moving the servos.
- Test under controlled light and check that the mechanism does not oscillate.
Learning outcomes
- Analog voltage measurement
- LDR voltage dividers
- Closed-loop feedback
- Servo motion and mechanical mounting
Possible upgrades
Add a real panel, energy measurement, dawn/dusk parking, limit switches or a data-logging comparison with a fixed panel.
Practice the core principle
Use a virtual Arduino Uno circuit with the following substitute inputs and indicators. The exercise deliberately does not drive motors, powered mechanisms or real industrial equipment. Physical experimentation requires adult supervision for children, a suitable current-limited supply and checked wiring.
Reference components
- Arduino Uno (5 V)
- 2 × 10 kΩ potentiometers
- 2 LEDs, each with 330 Ω resistor
Connection plan
- Potentiometer 1 outer pins → 5 V and GND; wiper → A0
- Potentiometer 2 outer pins → 5 V and GND; wiper → A1
- D8 → 330 Ω → left LED → GND
- D9 → 330 Ω → right LED → GND
Reference sketch
void setup(){
pinMode(8,OUTPUT); pinMode(9,OUTPUT);
Serial.begin(9600);
}
void loop(){
int diff=analogRead(A0)-analogRead(A1);
digitalWrite(8,diff>50);
digitalWrite(9,diff<-50);
Serial.println(diff); delay(100);
}How the code works
The potentiometers represent two light readings. The signed difference determines a direction indicator only outside the ±50-count deadband.
Practice sequence
- Set up the virtual components with power disconnected in the simulator.
- Verify pin numbers and LED polarity before running the sketch.
- Run and record the expected inputs and outputs.
- Test the boundary cases described below.
Expected result and testing
Try ADC inputs 700/500, 500/700 and 515/500. Expect left, right and neither indicator respectively. This is a single-axis comparison model, not a solar-panel positioning controller.
Troubleshooting
Check the specified pin assignments, supply and common ground, indicator polarity and serial monitor baud rate where applicable. If an input seems fixed, isolate that input and observe its value before changing the control logic.
Independent challenge
Change one model threshold or timing value, predict the resulting behaviour, and repeat the test. Explain the difference without adding physical actuators.