Beruflich Dokumente
Kultur Dokumente
PAGE 1
PROBLEM STATEMENT
This report is describing our project in the Ubiquitous Computing
course. It is containing the design process of the project, starting
with brainstorming we had to get the final product idea and
finishing with the prototyping within home a like environment.
The original problem was to design and implement a larger
ubiquitous computing project into a home environment. The
report is describing what kind of design process, hardware and
software have been used to build up the prototype for that
product design that we had chosen as our final goal.
REQUIREMENT ANALYSIS
HARDWARE REQUIREMENTS:
Raspberry Pi 3 Model B
Ultrasonic Sensor
Temperature Sensor(LM35)
Analog to digital Converter
Camera
USB Mic or 3.5 mm jack Mic with generic USB sound card.
Jumper Wires
Relay module
SOFTWARE REQUIREMENTS:
Windows 10
Primary OS from which we will control the Security System.
Visual Studio 2015
Windows 10 IOT Core
PAGE 2
DESIGN
SYSTEM DESIGN:
For our sake we are implementing the project on breadboard
using ultrasonic sensor and camera module.
PAGE 3
DETAILED DESIGN:
Given below image is the GUI of the Home Security System app.
From there we can turn on the speech recognizer to start speech
recognition. After turning on speech recognizer we can turn on
the ultrasonic sensor by saying, Turn on the ultrasonic sensor
also we can manually turn on the ultrasonic sensor by clicking on
the button. After turning on the ultrasonic sensor app will give us
voice feedback as, Ultrasonic sensor is switched on and will start
continuously measuring the distance of object in front of it and if
the object or intruder comes near than 1m it will give an alarm
saying Intruder! Intruder! Intruder!.
PAGE 4
SOURCE CODE
ULTRASONIC SENSOR USAGE:
public async void InitUltrasonicSensor()
if (gpio != null)
pinEcho = gpio.OpenPin(ECHO_PIN);
pinTrigger = gpio.OpenPin(TRIGGER_PIN);
pinTrigger.SetDriveMode(GpioPinDriveMode.Output);
pinEcho.SetDriveMode(GpioPinDriveMode.Input);
PAGE 5
pinTrigger.Write(GpioPinValue.Low);
await Task.Delay(100);
timer.Interval = TimeSpan.FromMilliseconds(400);
timer.Tick += Timer_Tick;
timer.Start();
pinTrigger.Write(GpioPinValue.High);
await Task.Delay(10);
pinTrigger.Write(GpioPinValue.Low);
sw.Start();
distance.Text = pinEcho.Read().ToString();
sw.Stop();
PAGE 6
var distance1 = elapsed * 34000;
distance1 /= 2;
//Event Handlers
Rec.ContinuousRecognitionSession.ResultGenerated += Rec_ResultGenerated;
Rec.Constraints.Add(constraint);
if (result.Status == SpeechRecognitionResultStatus.Success)
tts(status.Text);
await Rec.ContinuousRecognitionSession.StartAsync();
PAGE 7