Elektronik Devreler Projeler Elektronik ve biraz daha fazlası İletişim - Araçlar - Dikkat - Topluluk
Elektronik / Mikrodenetleyici Projeleri/

PWM Yöntemi ile RGB Led Sürülmesi PIC12F629 Mosfet

Sponsorlu Bağlantılar

RGB Led sürücü devresi pic12f629 ile kontrol edilebiliyor alternatif olarak pic12f675, pic12f683 kullanılabilir PIC GP0, GP1, GP2 çıkışlarında STP36NF06 mosfetler PWM tekniği ile sürülüyor harici kristal yerine mikrodenetleyicinin iç osilatörü kullanılıyor. RGB Led uygulamasının yazılımı assembly ile hazırlanmış kaynak asm kodları hex, şema, pcb çizimleri var.

power-mosfet-rgb-pwm-driver-leds-prototype-pcb

Code to fade between colours is completely rewritten to use variable rate of change so that all three LEDs arrive at their new levels simultaneously. This code will run on 12F629 / 12F675 and 12F683. Select the desired processor from the Configure – Select Device menu option in MPLAB IDE, then use the Project – Quickbuild option to create the HEX output file.

Look for errors during assembly. In particular errors in the SequenceData.inc file that indicate either a missing comma in the data, or more data than the chosen PIC has available program memory. Be carefull to enter the data in the SequenceData.inc file correctly. The program is only smart enough to work out where your sequences start and finish if you enter it in the correct format. Errors in the data may cause the code to crash.

All timings are based on the internal 4Mhz PIC oscillator. The OSCCAL value is read from program memory at 0x3FF and written to the OSCAL register. This value must be present and correct.

rgb-led-block-leds-animation-pwm-mosfets

Kaynak: picprojects.org.uk alternatif link: pwm-yontemi-ile-rgb-led-surulmesi-pic12f629-mosfet.rar alternatif link2