0% found this document useful (0 votes)
48 views3 pages

Comsys Papers

This document describes a computer system prototype that uses an Arduino Uno microcontroller as the control unit. It has two servo motors to control the position of a floor support and an ultrasonic sensor to measure distance. The Arduino reads the distance input from the ultrasonic sensor and controls the servo motors to adjust the floor support based on the programmed logic. A connection diagram and Arduino code are provided to demonstrate how the system's components are wired and programmed to work together.

Uploaded by

McHaley Hal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
48 views3 pages

Comsys Papers

This document describes a computer system prototype that uses an Arduino Uno microcontroller as the control unit. It has two servo motors to control the position of a floor support and an ultrasonic sensor to measure distance. The Arduino reads the distance input from the ultrasonic sensor and controls the servo motors to adjust the floor support based on the programmed logic. A connection diagram and Arduino code are provided to demonstrate how the system's components are wired and programmed to work together.

Uploaded by

McHaley Hal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 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