Rangkaian Jam Digital Mikrokontroler
Rangkaian Jam Digital Mikrokontroler
| | Label: mikro
Digital hours to make this not too difficult. This series is not my original project, I trace
the series of files and program from the internet, there is no chance the program listing.
After I download the file to its hex-hour direct way. This clock only displays hours and
minutes, to seconds However you can install the led associated with a series of I Hz
oscillator formed from IC 555 (which I do, because I do not know the program listing), 2
led in parallel and installed as a bookmark seconds. Led to two installed in the middle of
the hours and minutes. Although with the way that seconds and minutes if observed
(calculated) decline slightly but I'm not the problem, Moreover people will not know
about it. Digital hours following scheme:
To me its PCB design itself, of course are still using my favorite software, PCB designer.
Next the PCB layout (look up) :
0 komentar
Kirimkan Ini lewat Email BlogThis! Berbagi ke Twitter Berbagi ke Facebook Berbagi ke
Google Buzz
Atmel is a product AT89S51/AT89S52 that quite a lot in the market with a price of less
than 20 thousand rupiah. To start learning mikrokontroler type 89S51 this we need a
programmer And Rangkaian Downloader. Programmer is a hardware device that is used
to enter the machine language program code compilation that we write to in
mikrokontroler.
Skema rangkaian downloader ini can be use to program the 89S series devices and the
AVR series devices which are pin compatible to 8051, like 90S8515. For other AVR
series devices the user can make an adapter board for 20, 28 and 40 pin devices. The pin
numbers shown in brackets correspond to PC parallel port
connector.
Software ISP
The ISP-30a.zip file contains the main program and the i / o port driver. Place all files in
the same folder. The main screen view of the program is shown in the picture below.
0 komentar
Kirimkan Ini lewat Email BlogThis! Berbagi ke Twitter Berbagi ke Facebook Berbagi ke
Google Buzz
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
Skema Rangkaian
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
Hardware Specifications
Skema 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
0 komentar
Kirimkan Ini lewat Email BlogThis! Berbagi ke Twitter Berbagi ke Facebook Berbagi ke
Google Buzz
The IC CA3161 is a counter and 7segment LED driver to display amount of temperature
on 7segments. About a temperature sensor is a diode which number 1N4148. This is like
of the Car Radiator. Connect to the 5 Vdc power supply from Car Battery that you can
use a LM7805 for +5Vdc regulation with low cost voltage regulator.
Skema rangkaian pengukur
suhu air
For the method of temperature measurement: first after application of at least 2 currents
of a thermal sensor, including at least two output signals are generated calculating an
analog signal to the temperature of the reaction at least two signals, the analog signal
representative of temperature to the temperature sensors, a calibration, the calibration
factor is calculated by applying the order of leastthree thermal sensor, and calibration of a
gap in the temperature of the concept of analog signal, that the development gap-term is
at least a series of parasite resistance to the thermal temperature sensor and the signal
processing theanalog digital signal to a temperature reference value for the conversion of
the reference value for the transition is consistent with the calibration.
The LM340A monolithic 3-terminal positive voltage regulators employ internal current-
limiting, thermal shutdown and safe-area compensation, making them essentially
indestructible. If adequate heat sinking is provided, they can deliver over 1.0A output
current.
Parameters IC LM340A
IC CA3161E Description
The CA3161E is a monolithic integrated circuit that performs the BCD to seven segment
decoding function and features constant current segment drivers. When used with the
CA3162E A/D Converter the CA3161E provides a complete digital readout system with
a minimum number of external parts.
Absolute Maximum Ratings IC CA3161E
IC CA3162E Description
The CA3162E are I2L monolithic A/D converters that provide a 3 digit multiplexed BCD
output. They are used with the CA3161E BCD-to-Seven-Segment Decoder/Driver and a
minimum of external parts to implement a complete 3-digit display. The CA3162AE is
identical to the CA3162E except for an extended operating temperature range.
Absolute Maximum Ratings IC CA3162E
0 komentar
Kirimkan Ini lewat Email BlogThis! Berbagi ke Twitter Berbagi ke Facebook Berbagi ke
Google Buzz
Note:
• Potmeters VR1, VR2 and VR3 may be used to adjust the sensitivity of the LDRs.
• Common ends of the LDRs should be connected to positive supply.
• Use good quality light filters.
The light rays reflected from the object will fall on the three convex lenses which are
fixed in front of the three LDRs. The convex lenses are used to converge light rays. This
helps to increase the sensitivity of LDRs. Blue, green and red glass plates (filters) are
fixed in front of LDR1, LDR2 and LDR3 respectively. When reflected light rays from the
object fall on the gadget, the coloured filter glass plates determine which of the LDRs
would get triggered. The circuit makes use of only AND gates and NOT gates.
When a primary coloured light ray falls on the system, the glass plate corresponding to
that primary colour will allow that specific light to pass through. But the other two glass
plates will not allow any light to pass through. Thus only one LDR will get triggered and
the gate output corresponding to that LDR will become logic 1 to indicate which colour it
is. Similarly, when a secondary coloured light ray falls on the system, the two primary
glass plates corres- ponding to the mixed colour will allow that light to pass through
while the remaining one will not allow any light ray to pass through it. As a result two of
the LDRs get triggered and the gate output corresponding to these will become logic 1
and indicate which colour it is.
When all the LDRs get triggered or remain untriggered, you will observe white and black
light indications respectively.
The LDR is mounded in a tube, behind a lens, and aimed at the object. The coloured glass
filter should be fixed in front of the LDR as shown in the figure. Make three of that kind
and fix them in a suitable case. Adjustments are critical and the gadget performance
would depend upon its proper fabrication and use of correct filters as well as light
conditions.
0 komentar
Kirimkan Ini lewat Email BlogThis! Berbagi ke Twitter Berbagi ke Facebook Berbagi ke
Google Buzz
Note:
• Op-Amp: LM324 or any quad opamp can be used or even four single op-amps.
• R2-R5: 330ohm resistors, but Lower values give brighter LED output.
• NTC1-4: Cold resistance was around 300K, hot resistance 15k. Alternative
thermistors may be used with different resistance ranges, but the presets P1 to P4
must also be changed as well.
• R7-10: only required if your thermistors resistance is several ohms at the hottest
temperature.
• P1 - P4: Chosen to match the resistance of the thermistor when cold.
• R1 & R6: 100k Resistor
Masking tape was used to stick the bead thermistors to the tank. Wires were soldered and
insulated at the thermistors ends. A plastic box was used to house the circuit. Battery life
will probably be 4 to 5 years depending on how often you use the push switch, SW1.
Thermistors NTC1-4 should be spread evenly over the height of the tank. I placed NTC1
roughly 4 inches from the top of my tank and the others were spaced evenly across the
height of the hot water tank. As hot water rises the lowest sensor indicates the fullest
height of hot water and should be about 8 to 10 inches from the bottom of the tank.
With a full tank of hot water adjust P1-4 so that all LED's are lit. As hot water rises, the
sensor at the bottom of the tank will be the maximum level of hot water. "Hot" can be
translated as 50C to 80C the presets P1-4 allow adjustment of this range.
0 komentar
Kirimkan Ini lewat Email BlogThis! Berbagi ke Twitter Berbagi ke Facebook Berbagi ke
Google Buzz
The 2 X16 Parallel LCD is an 8 bit or 4 bit parallel interfaced LCD. This unit allows the
user to display text, numerical data and custom created characters. The LCD uses the
HD44780 series LCD driver from Hitachi, or equivalent controller. The LCD is
connected to a female 14-pin
connector for easy interface with the BS2p24/40 Demo Board (#45187) and the
Professional Development Board (#28138). Though the device has the ribbon cable and
14-pin connector it may also be hooked up manually using the diagram on the next page.
main:
ADPCFG = $FFFF
Lcd_Init(PORTB, 3,2,1,0, PORTD, 0,2,1)
Lcd_Cmd(LCD_CURSOR_OFF)
Lcd_Cmd(LCD_CLEAR)
Lcd_Out(1, 1, "mikroElektronika")
Lcd_Out(2, 1, "2x16 LCD Testing")
end.
main:
ADPCFG = $FFFF ' PORTB to be digital
Lcd8_Init(PORTB, 7, 6, 5, 4, 3, 2, 1, 0, PORTD, 0, 1, 2)
Lcd8_Cmd(LCD_CURSOR_OFF)
Lcd8_Cmd(LCD_CLEAR)
Lcd8_Out(1, 1, "mikroElektronika")
Lcd8_Out(2, 1, "2x16 LCD Testing")
end.
0 komentar
Kirimkan Ini lewat Email BlogThis! Berbagi ke Twitter Berbagi ke Facebook Berbagi ke
Google Buzz
PCF8591 ialah AD/DA Converter 8 bit dengan 4 input analog menggunakan interface
I2C. Chip ini sudah ramai digunakan saat ini menggantikan ADC/DAC standar seperti
0808,0809, MC1408 dan 0804.
DT51 I2C ADDA merupakan Analog Input Output Add-on board untuk DT51
menggunakan teknologi I2C-bus dimana IC utama yang digunakan ialah PCF8591. I2C
ADDA digunakan untuk mengubah sinyal analog seperti tegangan atau arus ke data biner
dan sebaliknya. Aplikasinya antara lain kontrol kecepatan motor, pengaturan suhu ruang,
akuisisi data jarak jauh dan lainnya. Pin AIN0-AIN3 ialah pin input analog, sedangkan
AOUt ialah sinyal output analog.
Untuk mencoba I2CADDA, dibutuhkan DT-51 MinSys ver.3 dan multitester, Langkah –
langkah :
• Hubungkan DT-51 dengan I2C ADDA
• Hubungkan output analog dengan motor DC/multitester
• Masukkan program contoh adda.asm, yang akan menerima input dari AIn0-Ain3 dan
mengeluarkan data digital pada PA-PC, atau
• Masukkan program contoh pembangkit sinyal gigigergaji (adda2.asm) untuk
mengeluarkan sinyal gigigergaji. Kode program ini akan anda peroleh jika memiliki kit
I2CADDA.
CSEG
ORG 4000H
LJMP Start
ORG 4100H
$NOLIST
$INCLUDE(ADDA.ASM)
$LIST
MAXIM mengeluarkan ADC generasi baru, yaitu ADC MAX154 yang mempunyai 4
channel input dengan resolusi 8 bit, sedangkan MAX 158 mempunyai 8 channel dengan
resolusi 8 bit. Chip ini sangat ringkas karena sudah tersedia sumber detak internal,
bandingkan dengan ADC0808 yang membutuhkan sumber detak eksternal menggunakan
TTL/kristal.
ADC 0804
ADC 0804 merupakan adc yang paling murah, karena hanya mempunyai 1 buah input
analog. Rangkaian ADC melalui port paralel ini tampak pada Gambar 10.19.
Hubungan ke data komputer melalui pin data yaitu D0-D7. Sinyal status yang digunakan
ialah ERROR yang digunakan dengan pin 5 ADC yaitu INTR’. Dua sinyal control yaitu
STROBE’ dan INIT’ digunakan untuk mengaktifkan ADC. Pin 9 sebagai Vref tidak
dihubungkan. Kombinasi resistor dan kapasitor sebagai sumber detak dengan frekwensi
tertentu.
Gambar 10.19 rangkaian ADC ke port parallel
Berikut program pengontrol untuk ADC tersebut menggunakan bahasa PASCAL yang
dapat dengan mudah dirubah menggunakan bahasa C:
Pada program diatas, digunakan alamat standar port paralel atau yang lebih dikenal
sebagai port printer yaitu 378H (dalam pascal ditulis sebagai $378). Program lalu
menginisialisasi variabel untuk data, stat dan ctrl dengan nilai alamat masing masing.
Program kemudian looping untuk mengambil data lalu ditampilkkan hasilnya.
PPI 8255 untuk DAC
Gambar berikut merupakan format DAC yang umum, dimana input berupa 8 bit atau
lebih, dan outputnya berupa sinyal analog, yang biasanya diperoleh dari suatu rangkaian
op-amp
Ada 3 modus operasi pada PIO 8255 yang dapat dipilih melalui software yaitu :
Jika reset input mendapat input high, semua port akan diset ke mode input dimana semua
24 jalur ditahan pada logika 1 oleh bus internal. PPI 8255 dapat dibuat sebagai
antarmuka DAC atau ADC. Untuk mencoba DAC yang terprogram paling mudah
menggunakan PPI 8255 dalam mode 0. Langkah-langkah:
Program diats akan membangkitkan sinyal sinus karena terdapat pembangkitan nilai sinus
pada rumus Vout =5.0 +5.0* sin ((3.14*a)/180)). Alamat yang digunakan ialah 300H,
yang merupakan alamat standar port ISA untuk eksperimen.