<p>In this two-part series, Klaatu introduces you to the Arduino. First, learn about the breadboard and how to make electricity course through it in order to power your very own simple circuit.</p>
 <p>To follow along with what Klaatu is talking about, refer to these two graphics:</p>
 <ul>
  <li><a href="https://openclipart.org/detail/104167/breadboard-by-mesamike" target="_blank">https://openclipart.org/detail/104167/breadboard-by-mesamike</a></li>
  <li><a href="https://openclipart.org/detail/181334/microcontroller--by-b.gaultier-181334" target="_blank">https://openclipart.org/detail/181334/microcontroller--by-b.gaultier-181334</a></li>
 </ul>
 <p>And here are diagrams of the simple circuits that Klaatu constructs.</p><img alt="image: a diagramme of the simple circuit in todays show" src="https://hackerpublicradio.org/eps/hpr1691_0.png" /><p>The simple code to reset the servo:</p><pre>
#include &lt;Servo.h&gt;
Servo myservo;

int servoPosition;

void setup()
{
  myservo.attach(13);
  myservo.write(90);
}

void loop() {}
</pre><p>And the code that responds to input:</p><pre>
#include &lt;Servo.h&gt;
Servo myservo; 

int servoPosition;
int servoMax = 180;
int servoMin = 0;

int value;
int valMax = 600;
int valMin = 50;


void setup()
{
  myservo.attach(13);
}

void loop() 
{
  value = analogRead(0);
  servoPosition = map(value, valMin, valMax, servoMax, servoMin);
  servoPosition = constrain(servoPosition, servoMin, servoMax);
  myservo.write(servoPosition);
}
</pre><p>And here is a bonus diagramme that you can try to create, using a light sensor, servo, and resistor.</p><img alt="image: homework" src="https://hackerpublicradio.org/eps/hpr1691_1.png" />
