Basic topic
InfraRed Control Module (IRCM)

Your task is to design a infrared control module (IRCM). The main components are presented in Figure 1.


Figure 1. The main components of InfraRed Control Module
IRCM is a device, that can receive, send and forward IR-codes, and it has a menu system through LCD-display and some buttons. The IRCM can be used in following ways:

- To receive IR-signals, decode them to binary code form and send to PC
- Te receive binary code from PC, encode it to IR-signal format and send it
- To receive IR-signal and store it to eeprom
- To send stored IR-signals via menu the menu system (standalone remote control)

The IR-signal can be received through ICP-pin of the MCU, and the output can be made with timer and PWM.
The RS-232-lines can use the built in UART of the MCU.
Buttons can be connected to IO-pins and/or interrupts as wished.
The LCD will be used via IO-lines
The MCU has dedicated pins for the JTAG-emulator.

The control module will be based on an Atmel ATmega series microcontroller (MCU).
The students are recommended to use ATmega32 controller. The control module is required to contain the following on-board components:

- ATMega MCU
- some buttons for operating the IRCM
- LCD display
- IR Receiver (IR-Rx)
- IR Transmitter (IR-Tx)
- RS-232 interface for PC connection
- JTAG connector for programming and testing MCU

The minimum requirements for the IRCM system to be built by each group are the following:

1) IRCM can receive IR-codes from a separate remote controller, convert data to binary and transfer it to a PC.
2) PC can be used to send codes through IRCM.
3) The user interface of IRCM as some kind of menu system for use as a stand-alone remote controller. At least one code must be able to be saved to eeprom and be used in this stand-alone mode.

The IRCM will be tested with a remote controlled radio, which is located in TS139. The IR-data of this device is space coded (similarly to Daewoo or JVC, except for timings). Below is an oscilloscope sample capture of the data from its remote control. The sample was measured from the output pin of TSOP1738 IR-receiver (and inverted), which demodulates the 38kHz IR-data into digital output.
Your job is to use the oscilloscope to measure the time periods for pulse-space pairs for logical one and zero.
The exact model of our radio is Grundig RRCD3410 (in case you are able to find its timings from somewhere else than by measuring with oscilloscope).



The main peripherals of the IRCM (i.e. IR-receiver, IR-led and LCD-display) will be connected to the control board through 2,54mm pin header, as shown in images below. Do not solder these components to your board directly!

This eases your debugging phase. The footprints in the given component library has been prepared with the pin header footprints. You can get the connectors for the pin headers from the assistants.