Smart Sundial
A light sensor that tells the time of day
LDR
Sundial
Light
Engineering
What you will learn
- How a photoresistor (LDR) works — its resistance drops as light increases
- How to read analog sensors and compare multiple values to find a maximum
- The engineering principle behind solar panel sun-tracking — always face the brightest direction
- How a sundial works — the sun's apparent motion is due to Earth's rotation
What you will need
| Component |
|---|
| 1× Arduino |
| 4× LDRs (light-dependent resistors) |
| 4× 10kΩ resistors (for voltage dividers) |
| 1× SG90 servo motor (to rotate a "shadow stick") |
| 1× 220Ω resistor |
| 1× LED (indicator) |
| Breadboard |
| 8× jumper wires |
Step by step
Take it further
- Build a real sundial out of cardboard with a vertical stick. Mark the shadow every hour for a day. Then check your smart sundial — does it agree?
- Add 8 LDRs (NE, E, SE, S, SW, W, NW, N) for finer resolution.
- Log the brightness over a whole day — see the sun rise and set in the data.
- Try the STEM.org.uk sundial activity: design and build your own cardboard sundial.
Practise it before you build it
Wire this circuit in the ThinkEdge Learn simulator first. The simulator runs a real Arduino sketch against a modified-nodal-analysis solver, so the LED on screen actually lights when the current is right — no hardware, no burnt components, and a class can try it in a browser.
Related projects
LDR — Light-Following Robot (Solar Tracker)It always faces the brightest spot
LDR — Sunrise Alarm ClockWhen the sun rises, the room wakes up with a soft glow
Arduino — Solar Tracker with Two LDRsA servo that follows the light, like a real solar panel
Insulation Test ChamberWhich material keeps heat in best?
Toy Elevator ControllerLimit switches and motor control — the basics of elevator design
Police SirenAlternating red + blue LEDs with a wailing 600–1500 Hz buzzer
Where this project sits
It is also part of these lists, which is how a class usually finds it.
Arduino LED projects for beginners36 projects in this list
Arduino servo motor projects for students12 projects in this list
Arduino LDR light sensor projects7 projects in this list
Engineering projects for school students12 projects in this list
Try the full simulator with your class
103 guided circuit projects, 21 lessons and an in-browser Arduino simulator. The first 15 projects are free, no account needed. One licence covers a whole school.