You are on page 1of 3

I.

Prototype Overview
(Please add figure of the computer system and explain how your computer system
works. Identify the components of the computer system (input, output, process,
memory and communication)

II. Prototype Components


(List all the prototype components and its purpose)
Quantity Item Description Purpose
1 Arduino Uno Arduino is an open-source electronics platform
based on easy-to-use hardware and software. This
micro controller serves as our control unit it reads
the input and provide the expected output base in
your program.
2 Servo motor A servomotor is a rotary actuator or linear
actuator that allows for precise control of angular or
linear position, velocity and acceleration.  It consists
of a suitable motor coupled to our sensor for
position feedback. This serves as a support to our
floor.
1 Ultrasonic sensor Ultrasonic sensors measure distance by using ultrasonic
waves.
The sensor head emits an ultrasonic wave and receives the
wave reflected back from the target. Ultrasonic Sensors
measure the distance to the target by measuring the time
between the emission and reception.
III. Connection Diagram (Please use fritzing software/Multisim and the like)

IV. Source Codes


#include <VarSpeedServo.h>

VarSpeedServo servo1;

const int servo1Pin =8;

const int trigPin=9;

const int echoPin=10;

void setup() {

Serial.begin(9600);

pinMode(trigPin,OUTPUT);

pinMode(echoPin,INPUT);

servo1.attach(servo1Pin);

servo1.write(0);

void loop () {
long duration,distance;

digitalWrite(trigPin,HIGH);

delayMicroseconds(1000);

digitalWrite(trigPin,LOW);

duration = pulseIn(echoPin,HIGH);

distance = (duration/2)/29.1;

Serial.print(distance);

Serial.println("CM");

delay (1);

if (distance <=10)

servo1.write(90);

else{

servo1.write(10,300,true);

delay(10);

You might also like