Arduino: Self-switching corridor lamp (motion detector, relay)

Project Idea and Requirements by: Masha Lipshits

Goals:

– to learn using Arduino uC, relay and motion sensor

– using Arduino Pro mini, to make our corridor lamp automatically switching ‘On’ if motion is detected in the area of the entrance-hall. Switch ‘Off’ – by timeout.

– finally installed prototype shall be extendable (ex. by RF components sending motion detection to central PC) and allowing easy and safe maintenance and upgrade.

Components:

– HW: Arduino Pro Mini’s clone Funduino

– HW: Relay (one relay is enough, but I had only two-channel relays)

– HW: Motion Detection sensor

– HW: 220V->5V AC to DC converter (taken from old power supply)

– SW: sketch

– Mech: old plastic box

– Mech: spare Raspberry-Pi camera case (for motion detection sensor)

Wiring:

wiring_01

Description:

– Learning to use Arduino lead to creation of the appropriate ‘Getting-Started’ page

– Then was a turn to try and use relay with Arduino GPIO.

IMG_20150508_232948IMG_20150508_232952

– motion detector also was connected to another GPIO pin configured to be treated as input.

IMG_20150508_205956IMG_20150509_112549

– after enabling of the components,  bread-board based complete prototyping and after completion of the Arduino SW sketch, there stage of  final assembling begun.

– motion detector sensor was placed into special case which will allow to install it at some distance from the switching module and the lamp itself so that the sensor will provide sufficient coverage of the entrance hall and will not react on motion at the adjacent guest-room

IMG_20150509_121047 IMG_20150509_120721

– AC-related components were attached to the top cover of the box and connected to the 220V AC source

IMG_20150509_124938 IMG_20150509_131358

IMG_20150509_131332

– then digital components and wires were prepared at the bottom cover of the box

IMG_20150509_134312 IMG_20150509_134300

– then all was assembled in place and sealed.

IMG_20150509_141201 IMG_20150509_141330

IMG_20150509_141335 IMG_20150509_141411

– all appears to be working as expected

And here how the final product looks like

IMG_20150614_193512IMG_20150614_193659

IMG_20150614_193437IMG_20150614_193619

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s