Jump to content
C4 Forums | Control4

Dimmer Programming


Recommended Posts

Hi All

Just trying something out for a client. They want to use a dimmer for a few purposes:

1) Dim the main light in the room

2) Dim the lamp in the room

3) Turn the whole room off when walking out of the door

So my thought is to use a triple tap of the bottom button for each of these scenarios.

1) Dim the main light

The dimmer will work in its default manner tap top to switch on tap bottom to switch off. Hold top to dim on hold bottom to dim off.

2) Dim the lamp via outlet dimmer (inline dimmer UK)

Double tap bottom to switch into lamp mode. User will know the mode has changed as the LED will change colour.

Use top tap to switch lamp on bottom tap to switch lamp off. Hold top to dim on hold bottom to dim off.

3) Turn room off

Triple tap bottom to turn room off

to control the main light in the room and/or to control the outlet dimmer attached to a lamp. To control either the lamp

So far we have got

1) variable counter for counting the taps

2) variable boolean for telling us that we are in either light or lamp mode

3) Increase counter variable when bottom button is tapped (shown below in image)

4) When the bottom button is release is when the scenarios start (shown below in image)

The problem so far is that when the main light is on and you decide to go into lamp mode by double tap of the bottom button the main light starts to dim How can you hold the main light level whilst tapping if already on ?

cheers Andrew

Link to comment
Share on other sites


Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.