on Monday, 14 October 2013
Hello friends, so far we have seen how to write program in mikroC compiler and what are the general hardware connections of our microcontroller, in this post we will look at how we can make use of 'Proteus IsIs' simulator for our projects.

Before we learn anything we should know its purpose, without knowing its purpose if we try to learn something then our mind cannot concentrate 100 percent, that's the reason before I go with any new topic in this blog I always show its purpose. 
For every project we code, we dont know whether our code works well or not. Compiler only capable of showing 'syntax errors' but it will not worry about logic. It is not possible to load our program into microcontroller every time to test our code, its time consuming & annoying. So, best way is to test our code in simulator software which acts as virtual hardware on our PC. If our code works well only then we will load our program into our real microcontroller and if our code dont works well in simulator software then we can fix bugs by changing our code in our compiler.
We will get many simulator softwares online, but the most famous one is the PROTEUS ISIS simulator.
You can download the software(with crack) just by asking our Google uncle ;-)  
Now, we will look at the basic steps we normally follow while starting any new project. I'm using 'Proteus 7 Professional' ...
STEP1: Double click on 'ISIS 7 Professional' blue icon on your desktop, if you dont find it on your desktop then go to
              Start> All Programs >  Proteus 7 Professional (folder) > ISIS 7 Professional

STEP2: You will see a screen shown below, go to Files > New to create new project
proteus tutorial

  •  'Schematic edit space', here we draw our desired project circuit diagram.we can zoom in  and zoom out by using mouse scroll.  
  •  If we want to draw any schematic we need components, first we should add components into the 'object select window' from 'component library window' by clicking P button(Pick button).
STEP3: When we select pick button i.e P button,component library window will appear, which looks something like this

proteus tutorial

Notice the 'category' column which is on the right side of the window, you can select component libraries from here. For example we want to add 'capacitor' in our 'object select window' then click on 'Capacitors' from the 'category' window and we can select different types of capacitors from the 'sub category' panel.
When we select any component from 'category' and 'subcategory' windows, all the devices of that category will appear in 'Device' window whose schematic & PCB previews will appear in 'schematic preview' window and 'Pcb preview' window respectively. Just by double clicking on the component from the 'Device' window will appear into the 'object select window'.

The best way is to search our component using "Keywords" search which is on the top.
I have searched microcontroller with keyword 'PIC18F' look image below
proteus tutorial

STEP4: Close your component window.
By using components in the 'object select window' draw the schematic in the 'schematic edit window' .
 I have just drawn example circuit with microcontroller, button, resistor, led and ground.
proteus tutorial

If we want to change the component value, then double click on that device and change its value.
To add 'power' , 'ground' ,etc then select 'Terminal Mode' then you will see 'Terminal' panel in place of 'object select window' , select from it, and if you want to see again your 'object select window' then select 'Component Mode'.
STEP5: Set your microcontroller's clock frequency according to 'crystal oscillator' you have used while writing your program in compiler. To do this, double click on the microcontroller and change the value beside "Processor Clock Frequency", by default it will be 4Mhz.
STEP6: You will see four button PLAY, STEP, PAUSE, STOP at the bottom of the main window (i.e below 'schematic edit window')
Click on 'Play' to start the simulation, while play is ON to pause the simulation press 'Pause' , finally to stop press 'Stop'. 

That's it....
All the above steps will be common but only your schematic will change depending upon your project.
***All these above steps are very easy, only thing you need to do is to do all these steps practically on your software.



Syed Zain Nasir said...

You should also check [url=]The Engineering Projects[/url] because they have posted a lot of [url=]Arduino Projects[/url] and [url=]PIC Mirocontroller Projects[/url] and have also designed many new [url=]Proteus Tutorials[/url]. I hope you guys are gonna like them.

Post a Comment