The inputs to the device are two ability switches, which
have only an on/off setting. These
are used to navigate the functions of the device. Also, if the device is powered off, either button will power
it on. The Arduino board reads the
state of the ability switches and uses it to generate the current state of the
device based on a number sequence.
These sequences are one-way, pressing a switch will allow the user to
cycle through functions. There are
essentially two levels of device states: the higher level allows cycling
through each function type (Power, Channel Surf, Channel Input, and Volume) and
the second level is for performing different actions within that scope. For example, within Channel Surf, the
user may select "Channel Up", "Channel Down", and
"Back to Main Menu". One
of the ability switches is used for cycling, and one is used as the
"action" button.
Depending on which function is selected, the IR Remote will output a
brand-specific IR sequence using the IR functionality of the Arduino. The LCD also outputs based on the
number-state combination. Using a
combination of two numbers, it will know whether the menu is in the high level
or within a function, and it will know the specific action selected. The LCD will display the appropriate
information.
No comments:
Post a Comment