Generating PWM using PIC Microcontroller with MPLAB and XC8

This is our 10th tutorial of Learning PIC microcontrollers using MPLAB and XC8. Till now, we have covered many basic tutorials like  LED blinking with PIC, Timers in PIC, interfacing LCD, interfacing 7-segment, ADC using PIC etc. If you are an absolute beginner, then please visit the complete list of PIC tutorials here and start learning. [caption id="attachment_12853" align="aligncenter" width="600"] Gener ...

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

RGB LED PWM Driver for High Power 350mA LEDs V3 using PIC12F629

Description As featured in Electronics Weekly Gadget Freak (20/02/2008) The main reason I made this version is that I wanted to fit it in to the base of an Ikea Mylonit lamp. This lamp is made entirely from glass and has a small recess in the base with an entry for the power lead.  Since it had nowhere to fit a separate power connector but did have a slot for a power lead to pass in to the base, I needed to ...

Read more

Throbbing Apple Logo Sticker using PIC10F206 microcontroller

Throbbing Apple Logo Sticker This little gizmo adds the iconic "sleeping Mac throb" to an ordinary Apple logo decal. The idea for this came about when passing by the Apple Store in Palo Alto, California late one night. After hours, when the store is "asleep," the lighted logos out front pulsate just like the power indicator on a sleeping Mac, and I just about fell over laughing. Unrelated, the following day ...

Read more

Aurora 9×18 RGB LED art using PIC24F08KA101 microcontroller

Aurora 9x18 RGB LED art *** Check out my blog for updated version of this project and more! *** My obsession of LEDs has led me to this. Aurora 9x18 is a thing of beauty (if I can say so myself) - has 162 RGB-LEDs in a circular configuration. The color of each circle is controlled by a microcontroller using a twisted form of PWM. The microcontroller (PIC24F08KA101) only has one PWM module, yet Aurora is cap ...

Read more

In-Circuit debugger, created by E.E. Atanasios Melimopoulos using PIC16F628 microcontroller

This project was sent by Electrical Engineer Atanasios Melimopoulos (Copyright (c) June 15, 2007) INTRODUCTION: In-Circuit-Debuggers, as you may already know, have become the PIC's debugging standard tool for many programmers because it's easy use and handy interface to the target picplaced- board. They come with MPLAB plug-ins that provides a full rich set of commands and functions in order to debug your c ...

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

RGB LED PWM Driver for High Power 350mA LEDs using PIC12F629

Description This project combines a PIC and three constant current 'buck' converters to produce an RGB LED controller that will operate with the the high power 350mA LEDs using PWM to control the LED brightness.  By driving the red, green and blue LEDs with varying pulse widths the controller can generate up to 16 million colours using fades, strobe and static effects. The use of surface mount components an ...

Read more

Serial Controlled RGB LED PWM Driver PIC12F629 based PWM controller for RGB LEDs

Description If you want to build your own multiple RGB LED display that you can control from either a PC or a dedicated controller then this project will let you do just that. The project on this page came about when while I was developing a more complex intelligent driver. During that work I put together a simple Red/Green/Blue Pulse Width Modulation LED driver that has a serial interface.  The RGB values ...

Read more

[Simple] Generating Pulse Width Modulation using PIC Microcontroller – Mikro C & Proteus Simulation

How to generate Pulse Width Modulation (PWM) using PIC microcontroller? This is going to be a continuation of our microcontroller online tutorial series. This article covers the detailed explanation and simulation of PWM generation using PIC16F877A microcontroller.What is a Pulse Width Modulator? A PWM has series of pulses with variable pulse width. We have used Mikro C pro for pic microcontroller programmi ...

Read more
Scroll to top