Home / Tutorials / PIC Tutorial

PIC Tutorial

PIC16F877A - More Microcontroller Features

PIC16F877A

We have managed to blink a LED, use interrupts and timers with the PIC16F84A. Sadly, that’s almost all we can do with that microcontroller as it lacks features that most microcontrollers or an Arduino has. From here on, we will now be using the PIC16F877A.

Read More »

PIR Motion Sensor

HC-SR501 PIR motion sensor

You can in fact build your own motion sensor without spending too much. Motion sensors can be setup using ultrasonic transceivers, video cameras or microwave signals. In this tutorial, I’ll show you how to use the PIR motion sensor with a microcontroller. PIR is short for passive infrared which describes …

Read More »

How to Use L298N Motor Driver

L298N Motor Controller Tutorial

You can drive a LED on or off using a microcontroller like Arduino or PIC. There’s no problem there because the 20 mA or so current from the pins is enough. Obviously, you can’t drive loads that require much more current like a motor. This is where the L298N motor …

Read More »

PIC16 PWM Tutorial

PIC16F877A

Pulse width modulation may have been invented to encode messages into pulsing signal but it was originally conceived as a technique for controlling power supplied to motors. In this tutorial, we will look at how PIC16 PWM works.

Read More »

Use the PIC16F877A with Nokia 3310 in XC8

nokia 3310 lcd

In this post, I’ll share with you how I got the Nokia 3310 LCD to run using a PIC16F877A microcontroller. How to use the Nokia 3310 LCD with the Arduino has been covered before. This one is more challenging because I had to create a library for the XC8 compiler. …

Read More »

PIC ADC (Analog to Digital Conversion)

PIC16F877A

There are instances when digital systems need to interface with devices that produce analog signals, such as sensors and radio equipment. In such cases, the digital system, such as a microcontroller, needs an analog-to-digital converter (ADC) to handle the analog signal.

Read More »

PIC16 I2C Tutorial

PIC16F877A

To continue with our tutorial on synchronous serial with PICs, we will know look at I2C, another popular protocol used by sensors, displays and memory devices.

Read More »

PIC16 SPI Tutorial

PIC16F877A

Simply put, synchronous serial protocols like SPI and I2C have a separate line for timing (the CLK line) while asynchronous protocols like UART (RS232) doesn’t. The addition of a clock line makes reception timing much more easier and thus reduces transmission errors. It is also possible to interconnect more than …

Read More »

Serial (USART) Communication with PIC16F877A

PIC16F877A

PIC microcontrollers, obviously, can do more than just light up LEDs or reading button states. Microcontrollers can also communicate with another microcontroller or with other devices like sensors, memory cards, etc. Often the communication is done serially, where data bits are sent one at a time. The microcontroller serial communication …

Read More »