The Fearful Robot

Introduction: The Fearful Robot

The Fearful Robot
The Fearful Robot is scared of being in the dark. As the room gets darker you can see his heart beat faster and faster. When it gets to dark the robot flat lines it. Turn on the lights to calm him down or bring him back to life.

Components Needed:

1x Stuffed Animal
1x Breadboard
1x Arduino
3x LED's
1x 100 or 220 Ohm Resistor
3x 220 Ohm Resistors
1x 10K Resistor
1x LDR
1x Speaker or Piezo Buzzer

Components can be found at
This Project uses and Arduino Board and LDR Add-on Kit

The Code:

int flashrate = 0;
void setup() {
  pinMode(13, OUTPUT);
void loop() {
void loop() {  int sensorValue = analogRead(A0);
  int flashrate = sensorValue * .9;
      if (sensorValue > 80 ) {
analogWrite(3, 150);   
digitalWrite(13, HIGH);
  digitalWrite(3, LOW);
  digitalWrite(13, LOW);
    if (sensorValue < 80 ) {
    analogWrite(3, 150);
    digitalWrite(13, LOW);


Go to for more fun projects!
DIY Audio

Participated in the
DIY Audio

Be the First to Share


    • "Can't Touch This" Family Contest

      "Can't Touch This" Family Contest
    • CNC Contest 2020

      CNC Contest 2020
    • Robots Contest

      Robots Contest