PIC Microcontroller Projects

Hello everyone, hope you are fine and having fun with you life.Here I am gonna post all the PIC Microcontroller Projects links, which I have posted on my blog. I am gonna make it as guide, in which I will start from very beginning and slowly will move into the pro projects. First of all, I am gonna post about basics of PIC Microcontroller, how it works? how you can write program in it? What are the software used for PIC Microcontroller Programming? Which compilers are available for PIC Microcontroller Programming? etc. So, if you are new to PIC Microcontroller and you wanna design PIC Microcontroller Projects, then here's the guide for you. Follow all these tutorials from beginning and if you feel any problem then ask in comments and I will try my best to resolve your issues.

One more thing, don't just read the posts here, instead make them practically run on your boards. Its the best way of learning because just reading the posts won't help you in understanding the problems occurred while designing PIC Microcontroller Projects. So, the best way of learning about PIC Microtroller is by reading and then implementing. Another thing electronic projects and particularly PIC Microcontroller Projects never work perfectly in the first run, and it will happen that you will thought you are doing everything perfectly fine but still not getting the required output, which is quite common. So be patient while implementing your PIC Microcontroller Projects and if you are not getting the required output then just test and test again because you must be making some slightest mistake and not realizing it. :)

All the tutorial links below are completely designed by TEP team and thus TEP owns all the rights for these projects. They are for educational purposes and if you wanna share it then do mention us, that will be a great favor. And I am mentioning again that when you got into some trouble then do ask in comments and I will surely help you out.Moreover, you can also share your PIC Microcontroller projects with us and we will post them on our blog for the others to learn. So, now let's started.

Basics of PIC Microcontroller - Must Read

Below tutorials are the basic tutorials for PIC Microcontroller, which are must learn for the engineer who are planning to work on PIC Microcontroller. Just read and understand them as they will go you the basic information about PIC Microcontrollers. If you already know the basics then you can skip this section but still I recommend you to read them once at least.

  • Getting Started With Microcontrollers ? In this tutorial, I have given an overview of Microcontrollers. Its a very basic tutorial so if you are already familiar with the concept of microcontrollers then you don't need to read this article but its always good to have a taste of basics. :)
  • Getting Started With PIC Microcontrollers ? After covering the basics of Microcontrollers, next thing I have covered is the basics of PIC Microcontroller, because we are dealing with PIC Microcontroller Projects here. So, first we will have the basic intro of PIC Microcontroller and then we will move forward.
  • Functions available in PIC 18F452 Microcontroller ? In this tutorial, I have discussed the basic functions available in PIC18F452 Microcontroller. I have used this PIC Microcontroller in most of my tutorials so that's why I have first highlighted its main features.
  • Top 3 PIC C Compilers ? Now, we have decided which Microcontroller we are gonna use so now let's discuss the C Compilers for PIC Microcontroller. So, I have discussed top 3 PIC C Compilers in this post and have a given kind of a comparison here. Its a must read post.

Compiler Installation guide for PIC Microcontroller - MPLAB

These tutorials are about compiler installation for PIC Microcontroller, Compilers are used to design the programming code for PIC Microcontroller. There are numerous Compilers available in market. The most commonly used compilers are :

  • MPLAB
  • MikroC Pro For PIC
  • CCS Compiler For PIC

MPLAB is official compiler from Microchip and thus is free to use while the other compilers are paid but they have trial versions for testing. Personally I like MPLAB compiler as it gives the complete control over PIC Microcontrollers. After MPLAB, I work on MikroC Pro For PIC Compiler, as it has many built in functions and libraries which reduces the codes and thus efforts quite a lot.

  • How to Install MPLAB Software in Windows ? MPLAB is official compiler of PIC Microcontroller so in this post, I have discussed in detail how to install this MPLAB software in Windows. Using this software you can only design assembly language code for PIC Microcontroller.
  • How to Install MPLAB C18 Compiler in Windows ? Now that you have installed the MPLAB software so now its time to install its C18 Compiler so that we can write our codes for PIC Microcontroller Projects in C Language instead of Assembly Language.
  • Getting Started With MPLAB ? Now that we are done with the installation of compilers so now its time to get started with MPLAB software so that's why I have given an overview of how to get started with MPLAB compiler.

PIC Microcontroller Projects

Below are different projects designed on PIC Microcontroller, I have posted them in sequence from basics to pro. The list is quite short rite now because I haven't posted much on PIC Microcontroller yet but it will keep on increasing, whenever I am gonna post any new project on PIC Microcontroller, I will add the link below.

How to use LDR Sensor in Proteus

In today's post, I am gonna share how to use LDR sensor in Proteus. Proteus, as we all know, is a very handy software and is used for circuit and PCB designing. It is also used for circuit and programming testing. It is normally used by engineers in their projects and contains a vast list of built-in components. I have posted a lot of tutorials on Proteus and I have got quite a positive feedback from the reader about these tutorials. So, I thought to share another component in Proteus which is quite hidden and I haven't seen much posts on it available online.

So, in today's post, first I am gonna explain what is LDR sensor? and we will see where it is used and how it is used. After that I will design a simple circuit in Proteus in which I will turn control a LED using LDR sensor andwill make it ON and OFF. So, as usual let's start from the beginning so that the newcomers could also get benefit from it.

What is LDR Sensor?

  • LDR is an abbreviation of Light dependent resistor. It is also known as photoresistor or photocell.
  • Its symbol is shown in the below figure:
 
  • LDR Sensor is used for the detection of light, internally it has a resistance which is sensitive to light as shown in the symbol.
  • Whenever light falls on the LDR sensor, its resistance start decreasing and when it comes to dark then its resistance start increasing. Using the value of resistance one can easily detect whether there's light or not.
  • It is normally used in light activated switches.For instance, you have seen the automatic street lights, which go ON when its night and automatically go OFF when its day time. In those street lights, LDR sensors are used.

Working of LDR Sensor

  • As I explained above, it has an internaal resistance which is very sensitive to light intensity and varies according to it.
  • So, one thing is quite clear that LDR sensor is an analog sensor. It gives us different values depending on the light intensity falling on it.
  • Let's have a look on the simplest circuit of LDR sensor, which is shown in the below figure:
  • Now if you check the above image you can see we have placed a resistor in series with the LDR sensor and have applied a voltage source across them.
  • Now when the light will fall on the LDR sensor, its resistance will go LOW and in return the voltage across the LDR will also go LOW and as the LDR will come in dark, the resistance will go HIGH and in return the voltage will also go HIGH.
  • Its the simplest working phenomena of LDR sensor. Now if you are using the LDR sensor with some microcontroller then what you need to do is simply give this intermediate connection of resistor and LDR to microcontroller.

Circuit Designing of LDR Sensor in Proteus

  • Now we know the basics of LDR sensor and have also seen how it works so now let's design its circuit in Proteus.
  • There are two types of LDR sensors available in Proteus which are exactly the same in functioning but are different in operating. Both are shown in the below figure:
  • The first one has a digital display along with it on which the voltage value is displayed while the second one a bit more animated and has a torch with it, so when you press the up arrow the torch will come closer and in other words the light is falling on the LDR and when you press the down arrow the the torch will go away and your LDR is in dark now.
  • Both of these states are shown in below figure:
  • Now you can see both the states quite clearly, in the first state torch is away so LDR is in dark while in second state, torch is close so LDR is ON.
  • So, now let's design their circuit to control a LED with LDR Sensor in Proteus. In order to do so, design this simple circuit in Proteus as shown in below figure:
Note:
  • I have also designed this circuit on hardware and tested, it works perfectly as shown in the simulation.
  • Its a very simple circuit in which I am using a comparator and then giving output to LED. When the LDR is in dark then the LED will remain OFF and when the LDR will go into light then the LED will turn ON.
  • Both of these states are shown in below figure:
  • Now you can see when the voltage on the digital display of LDR were LOW then the LED was OFF and when Iincreased the voltage then the LED went ON.
  • Now let's check both of these states with the second LDR sensor in Proteus, which are shown in the below figure:
  • Again quite obvious, when the torch was away then LDR was in dark and the LED was OFF but in second state when I moved the torch close the LED went ON.
  • Here's the Proteus Simulation of LDR sensor attached below, download and play with it. :)

Download LDR Sensor in Proteus Simulation

That's all for today, if you have any problem ask in comments and I will reply them. Take care and have fun !!! :)

Syed Zain Nasir

I am Syed Zain Nasir, the founder of <a href=https://www.TheEngineeringProjects.com/>The Engineering Projects</a> (TEP). I am a programmer since 2009 before that I just search things, make small projects and now I am sharing my knowledge through this platform.I also work as a freelancer and did many projects related to programming and electrical circuitry. <a href=https://plus.google.com/+SyedZainNasir/>My Google Profile+</a>

Share
Published by
Syed Zain Nasir