How is RGB LED interfacing with PIC microcontroller?

How is RGB LED interfacing with PIC microcontroller?

Complete circuit diagram of RGB LED interfacing with pic16F877A microcontroller is shown below. RGB light emitting diode is connected with PORTD of PIC16F877A microcontroller. Pin number 1 is connected with PORTD pin number zero , pin 3 is connected with pin number one of PORTD and similarly, pin number four is connected with pin number 2 of PORTD.

What is pin 4 for PIC microcontroller interfacing?

Pin number 4 is a also a Green color select pin and it is also connect with digital output pin of pic microcontroller. So this was a introduction of RGD LED and its types.

Where are the GPIO pins in a microcontroller?

STM32F407VGT6 microcontroller which comes with a microcontroller has 82 GPIO pins. These GPIO pins are arranged in ports such as PORTA, PORTB, PORTC, PORTD, PORTE, PORTF, PORTG, PORTH, PORTI and each port has up to 16 pins. Note: Not all ports have up to 16GPIO pins because some pins are reserved for other functions.

How to write code with PIC microcontroller portd?

To write code, first we all we need to initialize PORTD of pic16F877A microcontroller as a output. After initializing it as a output,we will make every pin logic high for one second sequentially. If you don’t know how to use input output ports of pic microcontroller, I recommend you to read following articles:

What kind of IC is used for LED matrix interfacing?

For this purpose we can use ULN 2003A IC which has seven built-in Darlington transistor arrays. The inputs of ULN2003A are active high. This means the input pins of this IC must be supplied with logic high in order to bring the corresponding output pins to ground.

What are the dimensions of LED dot matrices?

We will display some alphabets or number on it. LED dot matrices are available in various dimensions (7×5,8×8, 7x15etc). 8×8 is shown below which contains 8 rows and 8 columns. An LED is connected between row and column. Each LED is addressed by its row and column number.

How to connect LED matrix to PIC microcontroller?

Firstly connect row and column of LED DOT MATRIX to the microcontroller PORT B and PORT C respectively. Then by using programming we have to send data to first column and at same time we are sending data to rows and then after some milli-seconds we will change the column and send data to row again.