ihacklab
Published © GPL3+

The Robot Who Didn't Know He is Alive!

This revisionist's project examines the meanings of being ALIVE and being AWARE based on the Caveman in the Box Theory.

IntermediateWork in progress4,513
The Robot Who Didn't Know He is Alive!

Things used in this project

Hardware components

Arduino UNO & Genuino UNO
Arduino UNO & Genuino UNO
×1
Ultrasonic Sensor - HC-SR04 (Generic)
Ultrasonic Sensor - HC-SR04 (Generic)
×1
SG90 Micro-servo motor
SG90 Micro-servo motor
×5
9V battery (generic)
9V battery (generic)
×1
Jumper wires (generic)
Jumper wires (generic)
×1

Hand tools and fabrication machines

Digilent Screwdriver
Digilent Screwdriver
Soldering iron (generic)
Soldering iron (generic)

Story

Read more

Schematics

Microservo SG90

The block diagram provides the wiring connections of this project. A light indicator is incorporated to study the behavior of the servo. However, the provided sketch doesn't come with the code for the led and button.

Code

Microservo SG90

Arduino
This project shows how to program and activate a servo. However, the RGB and the Push Button in the schematic are not on the sketch. You can add them on your sketch if you want some challenges. Good Luck ;-)
#include <servo .h>
int x = 1000

Servo servo;                         

void setup()
{
   servo.attach(6);                 
}

void loop()
{
    servo.write(90);                  
   delay(x);                              
   servo.write(45);                   
   delay(x);                              
   servo.write(90);                   
   delay(x);                              
   servo.write(135);                 
   delay(x);                              
   servo.write(0);                     
   delay(x);                             
   servo.write(180);                
   delay(x);                             
}


Author: J. B. Wylzan and the Arduino community
Website: http://www.myarduinoscratchbook.blogspot.com

Credits

ihacklab

ihacklab

7 projects • 12 followers

Comments

Add projectSign up / Login