outdoor light home automation webserver controller programming codes - repost

This project received 6 bids from talented freelancers with an average bid price of $517 USD.

Get free quotes for a project like this
Employer working
Project Budget
$30 - $250 USD
Total Bids
Project Description

I want a C/C++ programming code that can be able to switch the light in my home on when it senses motion at about 10feet

The block diagram that shows how the operation of the process and components are interfaced together is attached below

. The Infrared motion sensor which has a supply voltage of 3.3/5v is interfaced with the Mbed [url removed, login to view] input GPI/O and when the there is a motion, the PIR produces an output of logic level 1 and this output is read by the input GPI/O. The Mbed output GPI/O control the power Cord by sending a logic level 1 to the power cord to switch on the light. When there is no motion, the output of the PIR is idle and the Mbed controller cannot be able to trigger the switch to bring the light on.

Finally, since we want to control the light over a network, the Mbed is connected to a computer with a web browser in order to have access to the Mbed servers which gives access to the Mbed libraries and online C/C++ IDE compiler. In this environment, the preconfigured IDE is written, compiled, and downloaded into the Mbed microcontroller which controls the entire process via the Mbed HTML homepage on the computer web browser.

Mbed LPC 1768 Microcontroller: is a single board NXP microcontroller and its function in this project is to read the output from the motion sensor(PIR) via its GPI/O input and activate the switching Cord that powers the light using its GPI/O output ports. It is also interfaced to a web browser using a USB lead in order to access the Mbed web servers where the online light weight C/C++codes that will control the process will be configured

Parrallax Passive Infrared (PIR) Motion sensor: is pyroelectric motion sensor device that detects motion by measuring the changes in the infrared levels emitted by surrounding object. Since the PIR does not emit signals and the human body generates infrared signature in the form of heat therefore in this project, the PIR is used to sense motion and measure the changes in infrared spectrum when someone approaches my home to produce an output that will be read by the LPC 1768 Mbed microcontroller.

It has a supply voltage of 3.3/5v with less than 100uA current draw and it can sense motion up to 20 feet.
Power Cord (Switch tail II): Is a DC power cord with voltage 3/12v operating at 3/30mA use for switching 120VAC (up to 15amps) appliances with microcontrollers and other low voltage circuits thereby eliminating exposure to hazardous voltages. In this project it is activated by the Mbed microcontroller to switch on the light when it reads the output from the Microcontroller.

Computer Web Browser: This could be any computer or laptop connected to the internet. It will be used to hookup the Mbed microcontroller via a USB lead to the Mbed servers in order to have access to the Mbed libraries and online compiler environment where the Pre-configured C/C++ IDE will be written compiled and downloaded to the Mbed controller to control the process. The Mbed HTML home page on the web browser is used to control the light switching process.

Lights: This is the outdoor light to be controlled. It could be bulbs or Christmas lights in the in my home walk way.

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online