Sunday, July 26, 2009

Rangkaian Saklar|Keypad Matrix AT89S51/52

Rangkaian saklar for mikrokontroler AT89S51/52

Port mikrokontroler AT89S51/52 The complete internal pull-up, a default condition so that it is high. To make this port as input, we live to provide logic high or ignore in the default condition. If we want a legible entries we should use the Low input signal.

In the picture below, when the button on the keypad and press the low signal will be sent to port 3 on mikrokontroler, Thus, this port will have a logic in accordance with the key emphasis

saklar|Keypad MatrikSkema Rangkaia Mikrokontroler dengan masukan Saklar

;---------------------------------------------------------------------
; Simulasi penekanan tombol pd P3.0 untuk menghidupkan
; dan P3.1 untuk mematikan LED pada Port 1
;----------------------------------------------------------------------
ORG 0H
MULAI:
MOV A,P3 ; Baca port 3
CJNE A,#0FEH,TERUS ; Apakah isi akumulator = 11111110B
MOV P1,#000H ; Ya! Hidupkan lampu LED di port 1
SJMP MULAI ; Ulangi lagi dari awal
TERUS:
CJNE A,#0FDH,MULAI ; Apakah isi akumulator = 11111101B
MOV P1,#0FFH ; Ya! Matikan lampu LED di port 1
SJMP MULAI ; Ulangi lagi dari awal
END

program on the work which led to the connects to the port 1, while s1 in press led will be flame and when off in the pressm S2

program on the work, which led to the connects to the port 1, while s1 in press, and led a flame, and when out in the press and S2

How it works, the program:
When the switch connected to P3.0 in the press, the data on the port 3 is 11111110 binary or 0FE Hexa, the program will know the content of the port 3 if data is same (0FE H) Led then switched to the port 1, if any emphasis P3.1 , the data on the port 3 11111101 binary or 0FD Hexa, program will check the content of port 3 if data is found in the Led on the port 1 will be turned off



Rangkaian Keypad Matrix

4 x 4 Keypad is a keypad measuring 4 columns x 4 rows. This module can be enabled as an input in the applications such as digital security, datalogger, attendance, motor speed controllers, robotik, and so forth.

Hardware Specifications
  • Has a 16 button (function button depending on the application).
  • Configuration has 4 lines (input scanning) and column 4 (output scanning).

saklar|Keypad MatrikSkema Rangkaian Mikrokontroler dengan masukan Keypad


;=======================================
; PROGRAM KEYPAD 4X4 DIPASANG
; PADA PORT 0, OUTPUT PADA PORT 1
;=======================================
KOLOM1 BIT P0.0
KOLOM2 BIT P0.1
KOLOM3 BIT P0.2
KOLOM4 BIT P0.3
BARIS1 BIT P0.4
BARIS2 BIT P0.5
BARIS3 BIT P0.6
BARIS4 BIT P0.7
KEYPORT EQU P0 ; KEYPAD CONNECT KE PORT 0
KEYDATA EQU 50H ; MEMORY DATA UNTUK KEYPAD
KEYBOUNC EQU 51H ; MEMORY UNTUK ANTI BOUNCING
ORG 0H
ULANG:
CALL KEYPAD ; PANGGIL SUB RUTIN KEYPAD
MOV A,KEYDATA
CJNE A,#0FFH,DITEKAN
JMP ULANG
DITEKAN:
CPL A
MOV P1,A
DJNZ R0,$
JMP ULANG
KEYPAD:
MOV KEYBOUNC,#100 ; KONSTANTA ANTI BOUNCING
MOV KEYPORT,#0FFH ; PORT KEY PAD
CLR KOLOM1 ; SCAN KOLOM 1
UL1: JB BARIS1,KEY1 ; TOMBOL 1 DITEKAN?
CALL DELAY
DJNZ KEYBOUNC,UL1
MOV KEYDATA,#1 ; ISI REG. DATA DGN 1
RET
KEY1: JB BARIS2,KEY2 ; TOMBOL 2 DITEKAN?
CALL DELAY
DJNZ KEYBOUNC,KEY1
MOV KEYDATA,#4
RET
KEY2: JB BARIS3,KEY3
CALL DELAY
DJNZ KEYBOUNC,KEY2
MOV KEYDATA,#7
RET
KEY3: JB BARIS4,KEY4
CALL DELAY
DJNZ KEYBOUNC,KEY3
MOV KEYDATA,#0AH
RET
KEY4: SETB KOLOM1
CLR KOLOM2
JB BARIS1,KEY5
CALL DELAY
DJNZ KEYBOUNC,KEY4
MOV KEYDATA,#2
RET
KEY5: JB BARIS2,KEY6
CALL DELAY
DJNZ KEYBOUNC,KEY5
MOV KEYDATA,#5
RET
KEY6: JB BARIS3,KEY7
CALL DELAY
DJNZ KEYBOUNC,KEY6
MOV KEYDATA,#8
RET
KEY7: JB BARIS4,KEY8
CALL DELAY
DJNZ KEYBOUNC,KEY7
MOV KEYDATA,#0
RET
KEY8: SETB KOLOM2
CLR KOLOM3
JB BARIS1,KEY9
CALL DELAY
DJNZ KEYBOUNC,KEY8
MOV KEYDATA,#3
RET
KEY9: JB BARIS2,KEY10
CALL DELAY
DJNZ KEYBOUNC,KEY9
MOV KEYDATA,#6
RET
KEY10: JB BARIS3,KEY11
CALL DELAY
DJNZ KEYBOUNC,KEY10
MOV KEYDATA,#9
RET
KEY11: JB BARIS4,KEY12
CALL DELAY
DJNZ KEYBOUNC,KEY11
MOV KEYDATA,#0BH
RET
KEY12: SETB KOLOM3
CLR KOLOM4
JB BARIS1,KEY13
CALL DELAY
DJNZ KEYBOUNC,KEY12
MOV KEYDATA,#0CH
RET
KEY13: JB BARIS2,KEY14
CALL DELAY
DJNZ KEYBOUNC,KEY13
MOV KEYDATA,#0DH
RET
KEY14: JB BARIS3,KEY15
CALL DELAY
DJNZ KEYBOUNC,KEY14
MOV KEYDATA,#0EH
RET
KEY15: JB BARIS4,KEY16
CALL DELAY
DJNZ KEYBOUNC,KEY15
MOV KEYDATA,#0FH
RET
KEY16: MOV KEYDATA,#0FFH
RET
DELAY:
DJNZ R0,$
RET
END

READMORE...

Saturday, July 25, 2009

Seven Segment


Seven Segment is 8 pieces of LED array is arranged in such a way that was shaping up to 7 segments and 1 point that can be used to show the pattern numbers and some letters. there are two types of seven-segment LED Seven segment of the Common Anode (CA) and Common Cathode (CC).

Seven Segment


On picture above is the layout, naming seven segment each segment and 8 illustrate the fruit is packed as the LED array LED Common Anoda (CA) and an array of LED Common Cathode (CC).
segemen seven controllers can be done directly, or through a pattern such as a driver IC 74LS47 to seven segment CA and 74LS48 to seven segment CC.

To save power it is, the LED does not continuously switched on the frequency of 85Hz to 100Hz. How this can be applied to the output enable series of flow control as AC generators, either sine, square, triangle or trapesium. But rarely on the set of digital more often use the AC current wave form of a square, it This is because the series of digital only have 2 types of condition (logic 0 and logic 1) and simulate the process square wave can be easily carried out, namely the exchange of a logic 1 to logic 0 periodically at a certain frequency.


READMORE...

Friday, July 24, 2009

Rankaian Konverter 12volt - 5 volt Meggunakan Dioda Zener

Konverter 12 Volt to 5  volt
Skema Rangkaian Konverter 12 Volt ke 5 Volt

Converter is a series of functions to change the voltage 12 to be 5 Volt. the core of this series is the zener diode. due to a fall in voltage Zener diode 12 will be 5.7 volt. voltage in 5.7 volt electrical currents strengthened by taransiator Q1

To get a different output voltage you can change the zener diode as needed. for example, if you need a converter from 12 to 9 volt change zener Diode eat 5.7 to 10 volt

components List:
  • R1 = 560 ohm
  • C1 = 1000uF/40V
  • C2 = 10uF/25V
  • C3 = 330nF
  • Z1 = 5,7V
  • Q1 = ECG184, NTE184


READMORE...

Thursday, July 23, 2009

Rangkaian Lampu Neon (TL) 12 Volt

Rangkaian Lapu Neon (TL) 12 Volt function to set the lights Neon (TL) using voltage 12 Volt (12 volt batteray). This series is based 2N3055 transistor and some components that work as a series of oscilator Volet with feedback through the L1. Oscilator frequency of this work is influenced by the value of R, C and L

When the oscillation output from the collector, it will appear different on the high potential end of the L3. to make the shuttle can see in the image such as shown in Figure

Skema Rangkaian Lapu Neon (TL) 12 Volt
Skema Rangkain Lampu Neon (TL) 12 Volt

notes:
  • L1,L2 = 30 Lilit/0.8mm
  • L3 = 600 lilit/0.1mm
  • A point is represented polarity, while B is its opposite polarity.


READMORE...

Wednesday, July 22, 2009

Rangkaian Led Berjalan|Running Led

Rangkaian Led Berjalan|Running Led

Circuit of Led runs, led can be seen using, as an indicator while ic IC4017 is that it functions as a counter with the help of a clock generated by a 555 timer ic, slow movement which quickly led the flames quickly depending on the clock late in the output by the timer IC.

Led Berjalan|Running Led

List of Components used:
  • IC 4017
  • IC Ne 555
  • Led
  • R 4.7K
  • R 1K
  • VR 100K
  • C 10mf/16V
  • C 100nf
To change the mode from the line led to the form of a text can be done with the sort led to the form of the text that will vary in, just what you want when you led or will be up on a path or line of IC 4017 should be adding a series of brace.
series brace can use here or NPN transistors can also use the relay if the load would be greater

READMORE...

Hukum Kirchoff Arus|Kirchoff tegangan

- Hukum Kirchoff Arus

States that "all the algebraic number of the flow enters a knot / point in the series is a zero" or "the amount of flow that enters the knot in a series with the same amount of flow that is out of the knot."
Expressed mathematically with
Hukum Kirchoff Arus

As an illustration shown in the picture below:
Hukum Kirchoff Arus

So based on the law applicable kirchof flow:
Hukum Kirchoff Arus


-Hukum Kirchoff Tegangan

States that "the amount of voltage that all algebraic corral a road closed (loop) in a series of electricity is zero." Mathematically expressed by:
Hukum Kirchoff Tegangan

As an illustration shown in the picture below:
Hukum Kirchoff Tegangan

So based on the law applicable kirchoff voltage:
Hukum Kirchoff Tegangan


-Example Kirchoff Tegangan

Determine the voltage of the unknown in the following series!
Hukum Kirchoff Tegangan

Answer:
By applying Kirchoff voltage law is
Hukum Kirchoff Tegangan

-Example Kirchoff Arus

Determine the flow of the unknown from the image below!
Hukum Kirchoff Arus

Answer:
By applying the law kirchoff flow on a point, it will be valid
Hukum Kirchoff Arus

By applying the law kirchoff flow at the point b, it will be valid
Hukum Kirchoff Arus

By applying the law kirchoff flow at the point c, it will be valid
Hukum Kirchoff Arus

READMORE...
 
Skema Rangkaian Elektronika