Tuesday, January 24, 2012

Control System of Numeration


The Romans devised a system that was a substantial improvement over hash marks, because it used a variety of symbols (or ciphers) to represent increasingly large quantities. The notation for 1 is the capital letter I. The notation for 5 is the capital letter V. Other ciphers possess increasing values:

X = 10
L = 50
C = 100
D = 500
M = 1000

If a cipher is accompanied by another cipher of equal or lesser value to the immediate right of it, with no ciphers greater than that other cipher to the right of that other cipher, that other cipher's value is added to the total quantity. Thus, VIII symbolizes the number 8, and CLVII symbolizes the number 157. On the other hand, if a cipher is accompanied by another cipher of lesser value to the immediate left, that other cipher's value is subtracted from the first. Therefore, IV symbolizes the number 4 (V minus I), and CM symbolizes the number 900 (M minus C). You might have noticed that ending credit sequences for most motion pictures contain a notice for the date of production, in Roman numerals. For the year 1987, it would read: MCMLXXXVII. Let's break this numeral down into its constituent parts, from left to right:

M = 1000
+
CM = 900
+
L = 50
+
XXX = 30
+
V = 5
+
II = 2

Aren't you glad we don't use this system of numeration? Large numbers are very difficult to denote this way, and the left vs. right / subtraction vs. addition of values can be very confusing, too. Another major problem with this system is that there is no provision for representing the number zero or negative numbers, both very important concepts in mathematics. Roman culture, however, was more pragmatic with respect to mathematics than most, choosing only to develop their numeration system as far as it was necessary for use in daily life. 
 
We owe one of the most important ideas in numeration to the ancient Babylonians, who were the first (as far as we know) to develop the concept of cipher position, or place value, in representing larger numbers. Instead of inventing new ciphers to represent larger numbers, as the Romans did, they re-used the same ciphers, placing them in different positions from right to left. Our own decimal numeration system uses this concept, with only ten ciphers (0, 1, 2, 3, 4, 5, 6, 7, 8, and 9) used in "weighted" positions to represent very large and very small numbers. Each cipher represents an integer quantity, and each place from right to left in the notation represents a multiplying constant, or weight, for each integer quantity. For example, if we see the decimal notation "1206", we known that this may be broken down into its constituent weight-products as such:

1206 = 1000 + 200 + 6
1206  =  (1 x 1000) + (2 x 100) + (0 x 10) + (6 x 1)

Each cipher is called a digit in the decimal numeration system, and each weight, or place value, is ten times that of the one to the immediate right. So, we have a ones place, a tens place, a hundreds place, a thousands place, and so on, working from right to left. Right about now, you're probably wondering why I'm laboring to describe the obvious. Who needs to be told how decimal numeration works, after you've studied math as advanced as algebra and trigonometry? The reason is to better understand other numeration systems, by first knowing the how's and why's of the one you're already used to. 
 
The decimal numeration system uses ten ciphers, and place-weights that are multiples of ten. What if we made a numeration system with the same strategy of weighted places, except with fewer or more ciphers? The binary numeration system is such a system. Instead of ten different cipher symbols, with each weight constant being ten times the one before it, we only have two cipher symbols, and each weight constant is twice as much as the one before it. The two allowable cipher symbols for the binary system of numeration are "1" and "0," and these ciphers are arranged right-to-left in doubling values of weight. The rightmost place is the ones place, just as with decimal notation.



read more "Control System of Numeration"

Monday, January 23, 2012

Schematic Liquid Crystal Display LCD Introduction

3 LCD Overview
The HD44780 dot-matrix liquid crystal display controller and driver LSI displays alphanumeric characters and symbols. It can be configured to drive a dot-matrix liquid crystal display when interfaced with a processor. A single HD44780 can display up to one 20-character line or two 20-character lines.
3.1 Function Description
The following section introduces some of the important features of the liquid crystal display that are important for interfacing with the liquid crystal display through software.
3.1.1 Registers
The LCD has two 8-bit registers, an instruction register (IR) and a data register (DR).The IR stores instruction information, such as display clear and cursor shift, and address information for display data RAM (DDRAM) and character generator RAM (CGRAM). The DR temporarily stores data to be entered into DDRAM or CGRAM and temporarily stores data to be read from DDRAM or CGRAM. Data written into the DR is automatically written into DDRAM or CGRAM by an internal operation. The DR is also used for data storage when reading data from DDRAM or CGRAM. When address information is written into the IR, data is read and then stored into the DR from DDRAM or CGRAM by an internal operation.
3.1.2 Busy Flag (BF)
When the busy flag is 1, the LCD is in the internal operation mode, and the next instruction will not be accepted. When RS = 0 and R/W = 1 (Table 1), the busy flag is output to DB7. The next instruction must be written after ensuring that the busy flag is 0.
3.1.3 Address Counter (AC)
The address counter (AC) assigns addresses to both DDRAM and CGRAM. When an address of an instruction is written into the IR, the address information is sent from the IR to the AC. Selection of either DDRAM or CGRAM is also determined concurrently by the instruction.
After writing into (reading from) DDRAM or CGRAM, the AC is automatically incremented by 1 (decremented by 1). The AC contents are then output to DB0 to DB6 when RS = 0 and R/W = 1.
3.1.4 Initializing by Internal Reset Circuit
An internal reset circuit automatically initializes the LCD when the power is turned on. The busy flag (BF) is kept in the busy state until the initialization ends (BF = 1). The busy state lasts for 10 ms after VCC rises to 4.5 V
3.2 Pin assignment
The pin assignment, shown in Table1, is the industry standard for character LCD-modules with a maximum of 80 characters.




3.3 LCD addressing values
Liquid Crystal Display LCD Introduction PIN assignment of LCD

HD44780 lcd microcontroller interfacing instruction set

LCD addressing of characters location

Tags:-lcd display microcontroller program,liquid crystal display interfacing with microcontroller, how to use lcd with microcontroller,microcontroller at89c2051 based alarm clock: assembly code,microcontroller at89c2051 based ir wireless frequency counter: assembly code,
read more "Schematic Liquid Crystal Display LCD Introduction"

Saturday, January 21, 2012

Control Timer Circuit Using Real Time Clock PCF8583


This is a circuit for timer that is control by real time clock PCF8583. The PCF8583 is a clock/calendar circuit based on a 2048-bit static CMOS RAM organized as 256 words by 8 bits. Addresses and data are transferred serially via the two-line bidirectional I2C-bus. This is the figure of the circuit.




The built-in word address register is incremented automatically after each written or read data byte. Address pin A0 is used for programming the hardware address, allowing the connection of two devices to the bus without additional hardware. The built-in 32.768 kHz oscillator circuit and the first 8 bytes of the RAM are used for the clock/calendar and counter functions. The next 8 bytes may be programmed as alarm registers or used as free RAM space. The remaining 240 bytes are free RAM locations. The PCF8583 device is connected to a port of the AVR microcontroller.
read more "Control Timer Circuit Using Real Time Clock PCF8583"

Tuesday, January 17, 2012

Control Running LED Circuit


This running LED or LED chaser is a good project for beginners in the microcontroller technology. It is easy to build, and the assembler program code can be easily adapted. This running LED light has 15 red 3mm LED's. The 15 outputs of ports B and D are used to drive the LED. This is the figure of the circuit.



The LED's light up in a pattern that can be made in the program code, the LEDs run back and forth. With a push button you can select another pattern at which the LEDs runs. There are three running LED patterns which you can run: with one LED, three LED and five LED. The project uses the ATTiny2313 microcontroller but the ATTiny2313 can also be used. The AVR port can draw 20mA current so you only have to place a resistor at the port of the AVR to limit the current to 20mA. The LEDs are connected to ground so when the output of the port is high the LED will go on. The circuit uses a ceramic resonator of 10 MHz as oscillator. When you use ATTiny2313 you can discard the resonator because they have an on chip clock source. The fuse bits can be programmed to run the chip at 8Mhz.The circuit has to be powered with 5V DC regulated.


read more "Control Running LED Circuit"

Control LCD Display Circuit on The Glass Interface


Liquid Crystal Display on Glass is the newest in LCD technology. The display is very compact, it measures 55x27 mm and the height is only 2mm without LED backlight and 5.8mm with LED backlight. The display's can have different LED background light instead of only the green and blue of the normal LCD modules. 

There are 5 monochrome colors available: white, green/yellow, blue, red, amber and there is even a full color RGB background possible. The contrast of the display can be set with a command. This is done using software. The display's series consists of 3 types. This is the figure of the circuit.


 
The display and the corresponding backlight are clipped together and inserted into a PCB and soldered. The display has a build-in character set of 248 europe and japannese characters, in addition you can also define 8 characters. The integrated controller, the ST7036, has build in commands to control the display. In this project the display is connected to an AVR AT2313 microcontroller. 

For the ease of use it has designed a small PCB. The board has two rows of 20-pins socket connectors, in which the display can be inserted, it has also a resistor to limit the current through the background LEDs. For connection with the microcontroller the board has a 5x2-pin connector, so the board can easily connected to the STK500 board or to the AT2313 project board with a 10-pole flat cable. In this project the 4-mode is used so there are only 4 data lines and 2 control lines.


read more "Control LCD Display Circuit on The Glass Interface"

Control Fading Circuit for RGB LED


An RGB LED is a LED which has three LED's integrated in one packaging. These LED's has the colors red, green, and blue. Such a LED costs about 1 Euro. With these three colors you can mix to any color. When using 8-bit PWM a number of 256 * 256 * 256 combinations can be made, thus the LED can show 16.777 million colors, and 256 different brightness. When all the three LED is at full brightness the color will be white. When they are all off the color will be 'black' in the dark.

The RGB LED used here has four leads, one for each color an one for the common cathode (ground). The Red LED operates on a voltage of 2 V, Green needs 3.5 V, and the Blue LED needs also 3.5 V. Each LED draws 20mA current, so the maximum current consumption is 60mA. This is the figure of the circuit.



The circuit is very simple. The RGB LED is hooked up to the PWM outputs on PORTB1, PORTB2 and PORTB3 of the ATMega8. There is also a resistor between the LED and the ATM8 to limit the current to 20mA. There is also a link to the datasheet of the RGB LED that is used in this project.
read more "Control Fading Circuit for RGB LED"

Control Digital Thermometer Using LM35


The LM35 of National Semiconductors that is used in this project is a precision centigrade temperature sensor, which has an analog output voltage. It has a range of -55ºC to +150ºC and a accuracy of ±0.5ºC . The output voltage is 10mV/ºC . The output voltage is converted by the AD convertor of the AT Mega8. The temperature is displayed on an LCD module. In this example the thermometer has a range of 0ºC to 40ºC and a resolution of 0.5ºC. If you want to have a read out in Fahrenheit you can use the LM34.

This is a design for digital thermometer that can display using LCD. This is the figure of the circuit.




In the circuit the LM35 is connected to the ADC port of the ATMega8. The ATMega8 uses a crystal as an oscillator for the clock pulses. At PORTD of the ATM8 an 20x4 LCD display is hooked to display the temperature in a discrete value and in a analog bar.
read more "Control Digital Thermometer Using LM35"