Seminar Topics & Project Ideas On Computer Science Electronics Electrical Mechanical Engineering Civil MBA Medicine Nursing Science Physics Mathematics Chemistry ppt pdf doc presentation downloads and Abstract

Full Version: LED INFO DISPLAY pdf
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
LED INFO DISPLAY

[attachment=40937]

Schematic description:

The device comprises two parts: LED control board and LED display board. The two PCBs
are designed to fit together one behind the other using two sets of dual row connectors and 4
spacers. One of this connector is used for the electrical connections, while the other is only
used as a mechanical connecting element.
The core of the device is microcontroller PIC18F252 (U9). It controls all the functions of the
device, generates the overall algorithm to control the LED matrix. LEDs are connected in
matrix 40x7. The columns tie together the cathodes of the LEDs and rows tie the LEDs anodes.
The LED matrix is controlled dynamically in row by row. To safe space and number of
components, the LEDs are driven with specialized LED driver STP16CP05 (U101-U103),
produced by ST Microelectronics. Each of these IC contain 16-bit serial-in, parallel-out shift
register, latch register and 16 constant current output channels. Outputs are open drain type,
allowing connection of a load supplied with up to 20V supply voltage. The constant current for
all outputs varies from 5 to 100 mA and is set from an external resistor (R115-R117). In this
application, the three LED drivers are connected in a cascade and controlled from the
microcontroller over SPI protocol. The microcontroller sends a 48-bit word, controlling one
row at the time. The 40 LSB represent LED states (1-On, 0-Off) in the row and control their
cathodes. The 7 MSB control the anodes through the 7 driver transistors (VT101 – VT107).
The 40th bit remains unused. The microcontroller sends the 48-bit word every 1 ms. There are
7 cycles to display each row plus an extra blank cycle, used to process temperature
measurements. Thus, the refresh rate of the display is 125Hz. To control the display brightness
is used the “outputs enable” (OE) pin. Each row cycle begins with logical 0 on the OE pin
(outputs are enabled). The duration of an enabled signal changes depending on the desired
brightness, using the microcontroller’s on-chip PWM module.

Real-time clock / calendar

The real time clock is implemented with U10 - PCF8583. This is a clock / calendar / alarm
circuit with I2C interface and on-chip 32768Hz oscillator. The PCF8583 contains all necessary
counter registers to provide real time clock and date information. Its power consumption is very
low (typical supply current is 10A). It operates in wide range of supply voltage from 1 to 6V.
These features will make it possible to have a real time clock available for a long time using a
small lithium battery or even a back-up capacitor. The designed PCB provides both options.
The footprint for lithium battery is suited for 2032 type socket. The experiments using 1F backup
capacitor show that the clock remains active more than a week after turning-off the power
supply. The diodes VD10, VD11 and VD12 should be Shotkey type as shown in the scheme
because of their low drop forward voltage. Trimmer-capacitor C21 is used to adjust the
oscillator frequency at 32768Hz. For I2C communication is used the Master Synchronous Serial
Port (MSSP) module in PIC18F252. This module is set in I2C master mode. On the same bus
an external EEPROM (U11) can be connected to expand the capacity of the data storage. The
present version of firmware does not need an external EEPROM, so it can be omitted.

Temperature measurement

For ambient temperature measurement are used LM35 sensors (U5, U6). They are factory
calibrated directly in ° Celsius. The output response is 10mV/°C. The supply voltage should be
between 4 and 30 Volts. To make a full-range temperature measurement, a negative voltage
must be applied to the output through a resistor (R4 and R5). To ensure this requirement, the
ground pins of the sensors are connected to the analog ground through two diodes (VD4,VD5
and VD6,VD7), which pick them up with approximately 1,4V. In that case the Vcc (+5V)
power supply is not enough for LM35, so additional voltage regulator U1 (78L09) is needed to
be used. The signal from the sensor is taken between the output and the negative pins of the
LM35. The voltage between these two pins is bipolar with polarity depending on the measured
the temperature sign. The sensors could be connected with external three-wire cables. Software
is designed to show inside temperature from U6 and outside temperature from U5.

A/D converter

Both LM35’s outputs are connected to U4 - MCP3302. This is a Successive Approximation
Register (SAR) analog to digital converter. It provides 13 bits resolution (12 bits plus one sign
bit). The MCP3302 has 4 analog inputs, which can be configured either as 4 single ended or as
2 differential inputs. The application requires 2 differential inputs to convert both bipolar
voltages from the LM35 temperature sensors. As a reference voltage is used U7 – LM336-2,5.
Its output value needs to be adjusted at 2,55V using a trimmer-potentiometer RP1. VD8 and
VD9 are used for temperature compensation. The MCP3302 has an SPI interface, using four
signal lines. These lines are under software control from the microcontroller (U9). To ensure
accuracy the analog ground is separated from the digital using small ferrite beam (L6). This is
an SMD type Z600 ferrite beam in 0805 package. The same type is used to decouple the power
supply for A/D converter and for temperature sensors and reference voltage (L4 and L5
respectively).

Brightness control

For an automatic brightness control is used a light-to-voltage converter – U8 (TSL257). Its
output voltage is directly proportional to the light intensity on the built in photodiode. The
voltage from the light sensor is measured using an on-chip microcontroller ADC. The ADC
value affects the PWM module from where the LED panel changes its brightness. To avoid
unwanted blinks of the display, a slight software delay of the PWM control is applied.

Brightness settings

The user can select the brightness level in 8 steps or select an auto mode. To change the
brightness from “Settings” menu, select Bright and press SET. The display will show the
current bright level (from “Bright 1” to “Bright 8”) or “Bright A” for auto mode. The desired
value is selected by pressing the buttons UP and DOWN. When the SET button is pressed
again, the selected value will accept and store it in EEPROM.

IR remote control

An additional feature of the device is the possibility to change settings using an Infrared remote
control. It allows the device to be installed on a place with difficult access. The decoder is
implemented with microcontroller PIC12F675 (U52) and designed to work with a standard TV
remote control, matching RC5 protocol. This protocol is supported from TV Philips. The
decoder received a demodulated digital signal from IR receiver TSOP1736. The software
decodes the received command and transmits it to the main microcontroller U9 over an
asynchronous serial connection. The LED VD51 blinks once at each recognized command. The
main microcontroller (PIC18F252) receives commands from IR decoder using its hardware
Universal Synchronous Asynchronous Receiver Transmitter (USART) module. Because the
same module is also used for a RS232 connection to the PC, the RX signal is multiplexed
between the U52 output or U71 (MAX232) output. Switch is implemented by the 4 NAND
elements in U53 (74HC00). Unfortunately, the present version of the firmware is not ready to
control a RS232 communication. So for that moment U71, U53, J71 and their adjacent
elements can be omitted.

In conclusion

Any special adjustments are required to start the device. If it is assembled properly and two
microcontrollers are programmed it will immediately start running. U9 can be programmed
with one of the two available connectors J4 or J4A depending on the programmer type. It is
possible to need to disconnect the Vcc from U9 during programming. For that purpose JP1 is
provided. The U52 must be programmed externally.