Kamis, 02 Juni 2011

running led

Hal ini berjalan LED atau LED pemburu adalah proyek yang baik untuk pemula dalam teknologi mikrokontroler. It is easy to build, and the assembler program code can be easily adapted. Sangat mudah untuk membangun, dan kode program assembler dapat dengan mudah diadaptasi. This running LED light has 15 red 3mm LED's. Lampu LED ini berjalan memiliki 15 3mm LED merah. The 15 outputs of ports B and D are used to drive the leds. 15 output dari port B dan D adalah digunakan untuk menggerakkan leds. The LED's light up in a pattern that can be made in the program code, the LEDs run back and forth. Lampu LED di sebuah pola yang dapat dibuat dalam kode program, LED lari kembali dan sebagainya.
With a push button you can select another pattern at which the LEDs runs. Dengan menekan sebuah tombol Anda dapat memilih pola lain di mana LED berjalan. There are three running LED patterns which you can run: with one led, three leds and five leds. Ada tiga pola LED berjalan yang dapat Anda jalankan: dengan satu dipimpin, tiga leds dan lima leds.
    There are also 4 patterns with fading LEDs: Ada juga 4 pola dengan LED memudar:
  • Fading out from the center to the side Fading keluar dari pusat ke samping
  • Fading out from the side to the center Fading keluar dari sisi ke tengah
  • Fading out from left ot right Fading keluar dari kanan kiri ot
  • Fading out from right to lef Fading keluar dari kanan ke tinggalin
If you can program in assembler you can extend the progam with more patterns. Jika Anda dapat program dalam assembler Anda dapat memperpanjang progam dengan pola lebih. At the current program 300 bytes of the flash memory are used. Pada program saat ini 300 byte memori flash yang digunakan.

Hardware Perangkat keras

The project uses the ATTiny2313 micrcontroller but the ATTiny2313 can also be used.The AVR port can draw 20mA current so you only have to place a resitor at the port of the AVR to limit the current to 20mA. Proyek ini menggunakan micrcontroller ATTiny2313 tetapi ATTiny2313 juga bisa AVR port used.The dapat menarik 20mA saat ini sehingga Anda hanya harus menempatkan resitor di port pada AVR untuk membatasi arus ke 20mA. The LEDs are connected to ground so when the output of the port is high the LED will go on. LED dihubungkan ke tanah sehingga ketika output dari port tinggi LED akan menyala. The circuit uses a ceramic resonator of 10Mhz as oscillator. Rangkaian ini menggunakan resonator keramik 10MHz sebagai osilator. When you use ATTiny2313 you can discard the resonator because they have an on chip clock source. Bila Anda menggunakan ATTiny2313 Anda dapat membuang resonator karena mereka memiliki pada sumber clock chip. The fuse bits can be programmed to run the chip at 8Mhz.The circuit has to be powered with 5V DC regulated. Bit sekering dapat diprogram untuk menjalankan chip di sirkuit 8Mhz.The harus didukung dengan 5V DC diatur.

Software Perangkat Lunak

The program code is written in assembler. Kode program ditulis dalam assembler. You can use AVR Studio to write the software, or you can use the parallel port program cable and IC-Prog to program the chip with the hex file. Anda dapat menggunakan AVR Studio untuk menulis perangkat lunak, atau Anda dapat menggunakan kabel paralel port program dan IC-Prog program chip dengan file hex.

Tidak ada komentar:

Posting Komentar