Control Servo with Light using Arduino




Hello!
In this Instructable i will teach you how to control a servo using a Photocell.
This is very simple and good for beginners.

Arduino Control Servo with Light




Step 1: Materials

1 x Photocell
1 x 10k Resistor
1 x Arduino
1x Breadboard
1x Servo
and some jumpers

Step 2: Wiring it up

Wire everything following the schematic below.

Step 3: The Code

Arduino Control Servo with Light circuit

The Code is very simple:

#include <Servo.h>

Servo myservo;
int val;

void setup()
{
myservo.attach(12);
}
void loop()

Major Components in Project

1 x Photocell
1 x 10k Resistor
1 x Arduino

 

For more detail: Control Servo with Light using Arduino




This Post / Project can also be found using search terms:

  • arduino led and servo circuit
  • arduino servo with light sensors projects
  • control servo with light
  • control servo with light using arduino
Clip to Evernote

Leave a Comment

(Spamcheck Enabled)

Read previous post:
Arduino Wireless Animatronic Hand
Arduino Wireless Animatronic Hand

BTW!!!!! This instructable is awsomeeeeeeThis is a very simple but at the same time a very hard project depending on...

Close
Scroll to top