LightDimmer

Dimmer for lights in apartment controlled via USB and/or IR.

Changelog

Status: Done, in use. Depricated, replaced by lightdimmer30

Date Comment
2006-03-05Added a “in action” movie. (see Downloads)
2006-01-22Added more photos.
2005-08-01 Project created.

About

The light dimmer can handle up to eight loads and control the voltage from 0V to 230V induvidually foreach load by giving it a integer value between 0 to 199. A load can be a regular lightbulp, halogen lamp or any other resistive load with a power consumtion of max 500W. The loads are controlled from either a PC using a controller application or by using a regular remote control.

Hardware

The hardware is module based with three modules, the high voltage module, the controller module and the dimmer module.

Hardware module Hardware module. The high voltage module transform the 230VAC to 12VAC using a 12V 2.6VA tranformer and is rectified and regulated to 5VDC. Also, it has a zero crossing unit that creates a pulse (galvanic seaparated) every time the 230V sine wave crosses the zero volt level.

Dimmer module Dimmer module. Each dimmer module has two channels and are galvanic seperated (using optocoupler) from the controller unit. Each channel has two IRF830 MOSFET:s which are pulse modulated from the controller unit. On each zero crossing the MOSFET:s are turned on, and by waiting a variable amount of time, that is cutting out a part of the sine wave,before turning them off, a variable voltage output is achived. (The module on the photo differs from the final layout which can be seen in the assambled photo below)

Controller module. Controller module. The controller module has a IR-interface for controlling the lights by remote control. Currently, only Philips RC-5 are supported, but other protocol are easly added. The controller, a PIC18F2550 (in picture a PIC18F252), can work stand-alonge just using a remote control, but it's supposed to be connected to a computer using USB. The controller take care of timing for each channel, reciving of IR commands and commands from the computer based controller application.

Test setup Entire system connected to the computer using rs232 and with five lamps connected.

Boxed Boxed system.

Boxed Boxed system again.

Software

Develop software Develop/debugging pc application written in C# Express 2005 (V2.0).

Schematics

High voltage - Schematic High voltage module, schematic.

High voltage - PCB High voltage module, PCB.

Controller  - Schematic Controller module, schematic.

Controller  - PCB Controller module, PCB.

Dimmer - Schematic Dimmer module, schematic.

Dimmer - PCB Dimmer module, PCB.

Firmware

The firmware is written in Microchip's C18 V 3.0 using MPLAB 7.21 and microchips USB-stack as a base.

Downloads

Latest source code and schematic/PCB-layout can be found in repository
/software/trunk/PC/lightdimmer/ ,
/software/trunk/Embedded/lightdimmer/ and
/hardware/trunk/schematics/lightdimmer/ in SVN. A movie can be found here.

License

All information found on this page are licensed. See the license page for more information.

 
hardware/lightdimmer.txt · Last modified: 2010-07-15 07:11 (external edit)
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki