Tutorial #3b - Single Room Control

This tutorial follows on from Tutorial 3a - a complete single room 'home cinema' solution using 3 sources, an AV receiver / amplifier, projector, and motorised screen:

Equipment Connectivity

Download Base Project

Download and unzip the following project to a location on your computer, which is based on Tutorial 3a:

http://designer.docs.demopad.com/tutorials/tutorial3.zip

Then open that project in Designer - it should closely match the project you created earlier.

Adding Commands - IR

Select the Centro-C device in the project navigation tree, and select pre-defined commands. We will now add the command files, using the Import from File option for:

SkyQ IR Commands
Apple TV IR Commands

You should now have 3 folders, each named appropriately, with commands files in each to control the source equipment.

Adding RS232 COM commands

We also need to control a Yamaha amplifier via RS232, and a Projector via RS232, so we need to add 2 generic devices to the project, both with the same IP address as the Centro-C, but using ports 7501 and 7502 respectively.

Epson Projector RS232 Commands

We now have all the commands required for this project (the relay commands for the screen are added automatically when you add the Centro to the project)


Modify the User Interface - Building Block

Whilst the current user interface allows us to select and control the 3 sources, there are currently no options for turning the room on / off, or controlling the volume. To add these controls, we are going to use a pre-defined building block. When building blocks are saved, they use a .dcg file - and there is a file called SideBar.dcg contained within the building blocks directory of the tutorial3 zip file downloaded.

Copy this file using windows explorer into your DemoPad Resources\Building Blocks directory, which is located within the Public Documents folder on your computer. You may wish to create a new folder there, called training in which to place this building block file, as shown below.

Then, add a building block to the main control page, as shown:

Side Bar Building Block

We now have all the necessary user interface elements for the project.


Assigning Commands

We now need to assign all the commands to the user interface buttons:

Room On / Off buttons:

For the Room On button, we want to drop the motorised screen, and turn on the Yamaha and Projector devices. Add the following commands, by dragging the command icon from the tree view:

When you drag the second command, you will be asked whether to overwrite or add the command - as we wish to send both commands, choose No

Room On Button

We also want to lower the projector screen, which is achieved using a relay output, pulsed for 1 second (which is typical of relay interfaces to motorised screens). Double click the room on button, and add the relay close command, followed by the relay open command with a delay of 1 second:

Relay Commands

Your button should now have 4 commands, the first 3 with a delay of 0 seconds, and the relay open command with a delay of 1 second.

Now repeat the process for the Room Off button, using the power off commands, and using Relay 2 to raise the screen.

Volume Control

There are 3 buttons in the lower right for controlling the volume of the Yamaha amplifier:

Volume Press and Hold Commands

Source Selection

For each of the 3 source selection buttons, when pressed, in addition to setting the flags to make the buttons highlight & bring on the remote control subpage, we also want to send commands to the Yamaha to select the appropriate source - HDMI 1, HDMI 2, HDMI 3. Simply drag these commands on top of each source selection button to program them accordingly.


Auto-Assigning Commands

For source selection, and room on/off buttons, it is relatively quick to assign specific commands to them, however for remote controls with lots of buttons, it is far more efficient to use the Auto Assign feature.

Auto Assign Commands

The reason for this lies with the Auto Assign Filter that was used - in this case UP. When attempting to match commands to auto assign, 2 different commands were found with the text UP in them - ARROWUP and CHANNELUP. Because of this, no command was assigned. You should alter the Auto Assign Filter to be more specific, ie ARROWUP - and the same for the arrow down button, and then attempt the Auto Assign function again (note buttons with commands already assigned on the previous attempt will not be altered).

Missing Auto-Assign Commands

It is highly recommended that for all re-usable subpages, that you ensure that the command files you have match up with the Auto Assign Filter being used. That way, adding remote controls to future projects is extremely efficient. In this case, all that is required is that the Auto Assign Filter for the up and down buttons is changed to ARROWUP and ARROWDOWN, and then the subpage could be saved for future use.


Project Complete!

If you wish, you can download the completed project from http://designer.docs.demopad.com/tutorials/tutorial3b.zip