Bathroom Light

From NURDspace
Revision as of 22:15, 28 November 2013 by Talloak (talk | contribs)
NURDspace Project
link=File:{{{Name}}}.jpg
Participants
Skills
Status
Niche
Purpose
Tool
Location
Cost
Tool category

{{{Name}}}Property "Tool Name" (as page type) with input value "{{{Name}}}" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process. Property "Tool Image" (as page type) with input value "File:{{{Picture}}}" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process. {{{Picture}}} {{#if:{{{Tool}}} | [[Tool Owner::{{{ProjectParticipants}}} | }} {{#if:{{{Tool}}} | [[Tool Cost::{{{Cost}}} | }}

The finished board mounted on the wall.

The bathroom light was commonly left on in the new space. This is ungreen, so a solution to this was desired. The following criteria were desired:

  • No interference with the existing wiring
  • No drilling in the walls
  • Some means of reporting out the presence/absence of someone using the bathroom (for future expansion)

An old motion sensor was present already in the space, so with a bit of screwdriver work and an old wall-wart, a 12V supply for it was found. Also available was an unused servo. This presented the opportunity to place the servo over the light switch and allow for human override.

Servo Lightswitch.jpg

A protoboard arduino-clone was designed and developed and coded to turn off the light after 10 minutes of no activity. It was originally designed to output a serial line, however this seemed to cause the chip to become buggy, so a simple high signal is generated on motion detection. It is voltage divided down to allow for connection to a Raspberry Pi.

Sugru Servo.jpg

The board was to be positioned a long way from the switch, so a servo extension cable was bashed up using some Sugru to insulate the plugs neatly.

The long servo cable on the wall. This might not work for every application, but this worked OK for me!

It might not be a good idea to do this yourself, but the low power use on the servo allowed this long cable to work fine here.