Introduction: Arduino Day and Night
This project is an easy introduction to using an Arduino.
Here we use a servo to visualize a measurement of light.
By using a LDR (light dependent resistor) we get an analog value that our Arduino can read and display with the servo.
Material Used:
- Arduino Uno
- USB-cable
- Computer with Arduino IDE
- LDR (10K)
- Resistor 2,2 Kohm
- Servo
- Experimental board
- Cables
Step 1: Hooking It Up
Different servos use different colorcodes of its cables. Check carefully before connecting.
Step 2: Programming Arduino
Use Arduino IDE to download example to Arduino.
The example is a modified Knob example from http://www.arduino.cc/en/Tutorial/Knob
For more info how a servo works read https://en.wikipedia.org/wiki/Servo_control