Bathroom Light: Difference between revisions

From NURDspace
No edit summary
No edit summary
Line 16: Line 16:


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.
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.
[[File:Bathroom_Board.png|center|500px]]


[[File:Sugru_Servo.jpg|thumb|]]
[[File:Sugru_Servo.jpg|thumb|]]

Revision as of 00:29, 29 November 2013

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.

Bathroom Board.png
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.

Development files (Arduino sketch, SCAD files, STL files, board layout) can be found here.