You Are Here: Home » Projects » PWM Projects

PIC based UPS Schematic / Firmware / PCB Layout

Microchip’s Digital Pure Sine Wave Uninterruptible Power Supply (UPS) Reference Design is based on the dsPIC33F “GS” series of digital-power Digital Signal Controllers (DSCs). This reference design demonstrates how digital-power techniques when applied to UPS applications enable easy modifications through software, the use of smaller magnetics, intelligent battery charging, higher efficiency, compact design ...

Read more

LED Heart PWM Fading using PIC18F252

With my Grandma's birthday fast approaching I wanted to put something together that was not too complicated but still sweet enough to make for a cool widget gift. Since fading LEDs never seem to go out of style and grandmas always love to see a heart, putting two and two together here was a no-brainer. The concept for this small birthday present was to create a small heart shape with red LEDs and then to dr ...

Read more

PIC18F452 PWM Code and Proteus Simulation

This post provides the PWM code (using C language) and Proteus simulation for PIC18F452 micro-controller CCP1 and CCP2 modules ( written using MPLAB and HI-TECH C18 compiler ). There are many uses for PWM signals, e-g you can control dc motor speed using PWM. CCP is the name for the built in PWM module in PIC18F452. There are 2 built in PWM modules available, namely CCP1 and CCP2. You can download the compl ...

Read more

PIC12F675 PWM Code and Proteus Simulation

This post provides the PWM code for PIC12F675 microcontroller using timer0. There are many uses for PWM signal, e-g you can control dc motor speed using PWM. Timer0 is initialized in the start of the main function and using timer0 interrupts, PWM is generated. This code is written in C language using MPLAB with HI-TECH C compiler. You can download this code from the 'Downloads' section at the bottom of this ...

Read more

PIC16F84A PWM code and Proteus simulation

This post provides the PWM code for PIC16F84A microcontroller using timer0. There are many uses for PWM signal, e-g you can control dc motor speed using PWM. Timer0 is initialized in the start of the main function and using timer0 interrupts, PWM is generated. This code is written in C language using MPLAB with HI-TECH C compiler. You can download this code from the 'Downloads' section at the bottom of this ...

Read more

PIC16F877 PWM (2 channel) code and Proteus simulation

This post answers the question, "How to make a pulse width modulator using PIC16F877" ? Also, using PIC16 simulator (Proteus) you can verify this PWM code and change it according to your needs. You can download the complete project code and Proteus simulation from the 'Downloads' section at the bottom of this page. This PIC16F877 microcontroller tutorial provides the 2 channel PWM code (using C language) an ...

Read more

8 Channel PWM Power MOSFET LED Chaser for PIC16F628A

Description Update: Variable chase speed option kit now available (see here for details) This neat little circuit provides 8 LEDs directly driven from the PIC along with a single mode control switch.  The firmware elsewhere on this page drives the LEDs with a 5 bit PWM signal providing each of the 8 LED channels with four levels of intensity; off, dim, mid, bright.  A number of sequences are programmed into ...

Read more

8 Channel PWM LED Chaser for PIC16F628A

Description Update: Variable chase speed option kit now available (see here for details) This neat little circuit provides 8 LEDs directly driven from the PIC along with a single mode control switch.  The firmware elsewhere on this page drives the LEDs with a 5 bit PWM signal providing each of the 8 LED channels with four levels of intensity; off, dim, mid, bright.  A number of sequences are programmed into ...

Read more

Serial Addressable RGB PWM LED Driver using PIC16F628A

Overview Ever since I made the serial controlled RGB LED PWM driver I've had many requests for an addressable driver.  Well I've finally got round to producing one.  The code is now completed and tested and the prototype boards are fully working. The design process behind this project was to enable anyone with a bit of electronics knowledge to build an array of cheap RGB LED drivers that they can control fr ...

Read more

Power MOSFET RGB LED PWM Driver for PIC12F683

Description Since I published the original RGB LED driver (photo right) I've had many enquiries from people asking how they could make the original board work with more LEDs.  I'd already made a couple of custom boards up for myself, so I finally decided it was time to put together one for the website. The RGB LED driver described on this page uses logic level 'N' channel MOSFETs which allow it to control L ...

Read more
Scroll to top