Things used in this project

Hardware components:
Intel.web.720.405
Intel Edison
×1
12797 01
SparkFun Sensor Kit
×1
Bluetooth module HC-05
×1
Servo (generic)
×1
Hand tools and fabrication machines:
USB Camera
USB Hub
USB Sound Card

Schematics

Servo Algorithm
Servo algorithm of web camera
Voice Commands Algorithm
Voice command algorithm
Light Algorithm
Algorithm for light.
Lighting system algorithm
Web Algorithm
Algorithm for IP web camera.
Web camera algorithm
Fan Algorithm
Algorithm for fan.
Fan system algorithm

Code

Smart camera Python
Connect PIR to A4,A5
#!/usr/bin/env python
import mraa		#importing mraa
import time		#importing time
import serial		#Importing serial

uart = mraa.Uart(0)	#Initialising Rx and Tx
ser =serial.Serial(uart.getDevicePath(), 9600, timeout=1)		#Initialising serial



x = mraa.Pwm(6)		#declaring pin 6 as pwn output for Servo
x.period_us(1000)	#defining time period
x.enable(True)		
value = 0.0		#Declaring value = 0
while True:
	z = mraa.Aio(5)	#Reading left PIR value
	y = mraa.Aio(4)	#Reading right PIR value

	if z.read() >=550:		#If motion detected at Left side



		x.write(0.0)		#Move servo to left
		time.sleep(3)		#Wait for 3 seconds





 	if y.read() >=550:		#If motion detected at Right side



			x.write(0.99)		#Move servo to right
			time.sleep(3)		#Wait for 3 seconds

	if (z.read()>550)and(y.read()>550):	#If motion detected at both left and right
			x.write(0.33)		#move to center
			time.sleep(3)		#Wait for 3 seconds

Credits

Thanks to Navin B, drejkim, and A Srinivasan Sir.

Replications

Did you replicate this project? Share it!

I made one

Love this project? Think it could be improved? Tell us what you think!

Give feedback

Comments

Similar projects you might like

Intelligent Community Alerts Beacon [-iCAB-]
Advanced
  • 222
  • 9

A cloud connected alert system that parses local alert feeds ranging from weather to missing persons and provides visual and audio feedback.

Power Lunch
Advanced
  • 119
  • 5

Full instructions

An insulated food container divided into two sections by a thermoelectric cooler module for quickly heating one side and cooling the other.

Power Lunch

5 members

Wifi controlled ceiling fan
Advanced
  • 144
  • 4

Full instructions

My young children were not tall enough to pull the chains on the ceiling fan, to turn on the fan & light. Alexa, turn on the 'Boys Light'.

Smart Compost System
Advanced
  • 123
  • 2

A smart system that can help anyone compost. The system aerates and hydrates your compost, and lets you know when you need to take action.

Smart Compost System

Team Boomer Sooner

Suicide Prevention Gun Safe Locking System
Advanced
  • 175
  • 3

Full instructions

An IoT device that helps prevent gun suicides through safe monitoring, only allowing access to a safe through a request/approval process.

Purdue ExoMIND Glove
Advanced
  • 1,134
  • 7

The ExoMIND Glove is a stroke rehabilitation device used to generate biofeedback for physical therapists and patients.

Purdue ExoMIND Glove

Team Purdue MIND

ProjectsCommunitiesTopicsContestsLiveAppsBetaFree StoreBlogAdd projectSign up / Login