Home PIC PIC Code

PIC Code

PIC18f2550 dark activated light

The concept of a dark activated light is quite simple, we use a light dependent resistor (LDR) to an ADC pin on our PIC...

pic18f2550 and a 74hc595 shift register

Sometimes in your projects you simply do not have enough I/O lines available, take for example a lot of the multiple LED examples, these...

PIC18F2550 and seven segment display

In this example we will show you how to connect a 7 segment display to our PIC18F2550. You can think of a 7 segment...

PIC16F877 and DS1820 temperature sensor example

In this example we connect the ever popular DS18B20 temperature sensor to our PIC, we will then display the temperature on our LCD We used...

PIC16F877 temperature and humidity example

In this example we will read the temperature and humidity using a DHT11 sensor and display the readings on our LCD. We have linked...

PIC16F877 and LDR warning example

In this example we will connect an LDR again but this time when the ADC value goes below a certain number we will switch...

PIC16F877 and ADC example

In the following example project we will convert an analog input to channel 0 to 10 bit digital number and display it on an LCD   Schematic Code sbit LCD_RS...

Flash an RGB led with a Pic 18F4520

In this example we will connect an RGB led to our Pic 18F4520 Port D. We will then light the red, green and blue individually. We...

Flashing LED example for a PIC18F4520

This is a simple 'Hello world' type example. This was to test out a PIc18F4520 development board that I purchased, the board comes with...