Knowing About Components Available in Proteus ISIS

No. Proteus Tutorials
Give Your Suggestions !!!
1. Getting Started With Proteus
2. Circuit Designing of LCD with PIC on Proteus ISIS
3. Knowing Components Available in Proteus
4. How To Use Virtual Terminal in Proteus ISIS
5. How To Use Oscilloscope in Proteus ISIS
6. DC Motor Drive Circuit in Proteus ISIS
7. Stepper Motor Drive Circuit in Proteus ISIS
8. Servo Motor Drive Circuit in Proteus ISIS
9. Component Designing in Proteus ISIS
10. PCB Designing in Proteus ARES
Hello friends, hope you all are fine and enjoying good health. In this tutorial, my actual plan was to cover the mostly used components in Proteus like to give users an overview of component selection as there are many components in Proteus which are quite hidden and hence quite difficult to find. But, now I have changed my mind as I have received a lot of emails regarding this tutorial in which mostly have asked to elaborate this tutorial and explain other circuits as well just like the LCD one. So after that I thought of making separate tutorial for many different circuits. These are the parts in which I have divided this tutorial and as you can see I have added the news topics as well which are requested by the readers. If you guys need any tutorial then let me know via Contact Form, and I will try to post that as well. So, now in this tutorial, we are gonna see different circuits designed in Proteus. I will explain them step by step so that the users get the better idea of them and also there are many different components in Proteus which are very handy but users mostly don't know about them and I will also explain them to you. I have divided this part of the tutorial into following different parts:
  • How To Use Virtual Terminal in Proteus ISIS.
In this tutorial, I will design a simple serial port circuit and then get the data on the Virtual Terminal. Virtual Terminal is quite same as the Hyper Terminal in the windows XP. It shows the data coming from serial port and also sends the data to the serial port.
  • How To use Oscilloscope in Proteus ISIS.
Oscilloscope is great functionality in Proteus and it works as same as the oscilloscope you have seen in your electronics lab. It shows waveforms and using it you can make variations in your model and can get the desired output.
  • DC Motor Drive Circuit in Proteus ISIS.
In this tutorial, we will check the DC Motor circuit with microcontroller and will drive it.
  •  Stepper Motor Circuit in Proteus ISIS.
In this tutorial, we will check the Stepper Motor circuit with microcontroller and will drive it.
  • Servo Motor Circuit Design in Proteus ISIS.
 In this tutorial, we will check the Servo Motor circuit with microcontroller and will drive it.
  • How to use Serial Registers in Proteus ISIS.
In this tutorial, we will use serial registers with microcontroller. Microcontrollers have limited I/O pins but what if you need 50 pins, which happens mostly in LEDs, then there's a need to increase the pins of microcontroller and for that purpose we use serial registers. That's what I have planned so far, I may add few more tutorial in it depends on the suggestions os keep inform me with your suggestions. Thanks.

Circuit Designing of LCD with PIC

Hello friends, hope you all are fine and enjoying good health. Today I am posting the next part of Proteus tutorial which is Interfacing of LCD with PIC Microcontroller. . In the previous post of this tutorial, we have seen the basics of Proteus and discussed various functions of Proteus ISIS. If you are new to Proteus then I would recommend that before starting this tutorial, you should first read the first part so that you get the better idea of Proteus as I wont go in detail in today's post. Today, we will first design a circuit of LCD with PIC on Proteus ISIS which includes PIC Microcontroller and then we will see how to burn the microcontroller in Proteus and at the end we will run our circuit and will display some text on the LCD. It will be quite a fun so let's start. If anyone having any problem at any point, ask in comments and I will try my best to resolve them. So, let's get started with Interfacing of LCD with PIC Microcontroller.

Circuit Designing in Proteus

  • First of all, open the Proteus ISIS software.
  • In the start, it will look exactly the same as in below image.
  • Now click on button P as shown in below figure.
  • When you click this button a new window will pop up as shown in below figure.
  • This is the place where we search our components, like as I want 7805 so I searched for this component and the Proteus has given me the related components.
  • Once you get your desired component, simply double click on it and it will be added in your database so that you can use them.
  • The below image shows the components which we are gonna use in this project, so simply search for all the components and then double click on them and finally you will get all the components as shown below:
  • Now place these components in the Proteus workspace and connect them.
  • Design exactly the same circuit as shown in the below figure for interfacing of LCD with PIC Microcontroller.
Now our circuit in Proteus is ready to use, the next step is to write a code for the PIC Microcontroller 18F452 and then burn it into the Proteus and check its working.

Code of LCD with PIC18F452

  • There are different compilers to write the code for PIC Microcontroller. Here I am using MikroC Pro for PIC. You can get it easily from the official site of MikroC.
  • I am not going in the details of coding as its beyond the scope of this tutorial, but still I am posting the code.
  • So now create a new project in the MikroC Pro For PIC and copy the below code and paste it in the project and compile.
  • When you compile the project, it will create a .hex file in the same folder where you have saved this project. We will use this hex file shortly.
// LCD module connections sbit LCD_RS at RD2_bit; sbit LCD_EN at RD3_bit; sbit LCD_D4 at RD4_bit; sbit LCD_D5 at RD5_bit; sbit LCD_D6 at RD6_bit; sbit LCD_D7 at RD7_bit; sbit LCD_RS_Direction at TRISD2_bit; sbit LCD_EN_Direction at TRISD3_bit; sbit LCD_D4_Direction at TRISD4_bit; sbit LCD_D5_Direction at TRISD5_bit; sbit LCD_D6_Direction at TRISD6_bit; sbit LCD_D7_Direction at TRISD7_bit; // End LCD module connections char txt1[] = "www.TheEngineeri"; char txt2[] = "ngProjects.com"; char i;                              // Loop variable void Move_Delay() {                  // Function used for text moving Delay_ms(500);                     // You can change the moving speed here } void main(){ Lcd_Init();                        // Initialize LCD Lcd_Cmd(_LCD_CURSOR_OFF);          // LCD Cursor Off Lcd_Cmd(_LCD_CLEAR);               // Clear display Lcd_Out(1,1,txt1);                 // Write text in first row Lcd_Out(2,1,txt2);                 // Write text in second row Delay_ms(2000); while(1); }

Burn the Code in PIC Microcontroller in Proteus ISIS

  • Now we have the hex file, we need to burn this hex file in the microcontroller in Proteus.
  • So, double click on the Microcontroller in Proteus and it will open up the properties menu of PIC microcontroller.
  • Now click, as shown in the below figure, and browse for the hex file and click OK.
  • We need to add this hex file in Proteus here and also select the oscillation frequency which I have selected 16MHz.
Note: Make sure that the oscillation frequency remain same both in the MikroC and the Proteus.
  • After adding the file in the Proteus now click OK and play the simulation, ifeverything goes fine, you will get the results as shown in below image.
Note:
  • Proteus ISIS simulation file and the .hex file has been emailed to all the subscribed members. If anyone need it, subscribe to our newsletter via email and it will be emailed to you as well.
That's all for today, I have tried my best to explain everything on Interfacing of LCD with PIC Microcontroller, but still if someone having problem ask in comments and I will try to resolve. In the next part, we will discuss various components of Proteus which are commonly used like motors, serial port, hyper terminal etc. So stay tuned and also subscribe us via email so that you get all the tutorials straight into your mail box. Have fun. Take care.

Interfacing of EasyVR with Arduino

Hello friends, I hope you all are fine and having fun with your lives. In today's post we are gonna see Interfacing of EasyVR with Arduino UNO. In the previous post, we have seen Getting Started with EasyVR Commander. It was quite simple and if you follow the steps carefully you wont stuck anywhere but still if you into some trouble i am here.

Now this tutorial is quite a quick and important one as it contains the real code using which we will control our robot. After adding the voice commands, now close the EasyVR Commander and open the Arduino Software. Connect the arduino board with computer and double check that your jumper J12 in on position SW. You should also read Training Error: Recognition Failed in EasyVR, if you got such error while working on EasyVR. So, let's get started with Interfacing of EasyVR with Arduino UNO.

Interfacing of EasyVR with Arduino UNO

  • First of all, download the Arduino Libraries for EasyVR Shield, you can easily find them from the official website of EasyVR.
  • Simply connect your Arduino UNO with computer.
  • Open the Arduino Software and copy paste the below code into it.
  • Burn your code in the Arduino Board.
  • Now open your Serial Monitor of ARduino UNO, and you will first see the message saying EasyVR Detected.
  • Now speak any of the command you saved in the board on mic and you will see when the command match the serial terminal will send a specific character.
  • You can change this character if you want to by make a simple change in the code.
#if defined(ARDUINO) && ARDUINO >= 100 #include "Arduino.h" #include "SoftwareSerial.h" SoftwareSerial port(12,13); #else // Arduino 0022 - use modified NewSoftSerial #include "WProgram.h" #include "NewSoftSerial.h" NewSoftSerial port(12,13); #endif #include "EasyVR.h" EasyVR easyvr(port); //Groups and Commands enum Groups { //GROUP_0  = 0, GROUP_1  = 1, }; enum Group0 { G0_ARDUINO = 0, }; enum Group1 { G1_FORWARD = 0, G1_REVERSE = 1, G1_LEFT = 2, G1_RIGHT = 3, G1_STOP = 4, }; EasyVRBridge bridge; int8_t group, idx; void setup() { // bridge mode? if (bridge.check()) { cli(); bridge.loop(0, 1, 12, 13); } // run normally Serial.begin(9600); port.begin(9600); if (!easyvr.detect()) { Serial.println("EasyVR not detected!"); for (;;); } easyvr.setPinOutput(EasyVR::IO1, LOW); Serial.println("EasyVR detected!"); easyvr.setTimeout(5); easyvr.setLanguage(EasyVR::ENGLISH); group = EasyVR::TRIGGER; //<-- start group (customize) pinMode(2, OUTPUT); digitalWrite(2, LOW);    // set the LED off pinMode(3, OUTPUT); digitalWrite(3, LOW); pinMode(4, OUTPUT); digitalWrite(4, LOW); pinMode(5, OUTPUT); digitalWrite(5, LOW); pinMode(6, OUTPUT); digitalWrite(6, LOW); } void action(); void loop() { easyvr.setPinOutput(EasyVR::IO1, HIGH); // LED on (listening) Serial.print("Say a command in Group"); Serial.println(group); easyvr.recognizeCommand(group); do { // can do some processing while waiting for a spoken command } while (!easyvr.hasFinished()); easyvr.setPinOutput(EasyVR::IO1, LOW); // LED off idx = easyvr.getWord(); if (idx >= 0) { // built-in trigger (ROBOT) // group = GROUP_X; <-- jump to another group X return; } idx = easyvr.getCommand(); if (idx >= 0) { // print debug message uint8_t train = 0; char name[32]; Serial.print("Command: "); Serial.print(idx); if (easyvr.dumpCommand(group, idx, name, train)) { Serial.print(" = "); Serial.println(name); } else Serial.println(); easyvr.playSound(0, EasyVR::VOL_FULL); // perform some action action(); } else // errors or timeout { if (easyvr.isTimeout()) Serial.println("Timed out, try again..."); int16_t err = easyvr.getError(); if (err >= 0) { Serial.print("Error "); Serial.println(err, HEX); } group = GROUP_1; } } void action() { switch (group) { // case GROUP_0: // switch (idx) //  { //  case G0_ARDUINO: // write your action code here //      group = GROUP_1; //<-- or jump to another group X for composite commands //    break; //  } //  break; case GROUP_1: switch (idx) { case G1_FORWARD: Serial.print("9"); digitalWrite(2, HIGH); break; case G1_REVERSE: Serial.print("Q"); digitalWrite(3,HIGH); break; case G1_LEFT: Serial.print("X"); digitalWrite(4,HIGH); break; case G1_RIGHT: Serial.print("Y"); digitalWrite(5,HIGH); break; case G1_STOP: Serial.print("Z"); digitalWrite(6,HIGH); break; } break; } }
So, that's all for today. I hope now you can easily Interface EasyVR with Arduino UNO. Have fun and take care !!! :)

Getting Started with EasyVR Commander

In the previous post we have seen the project description of Voice Recognition Project using EasyVR shield. Today we will have a look at Getting started with EasyVR commander. EasyVR shield is a module which is used for voice recognition. First of all, we save our commands in the EasyVR shield and then we use these commands to control anything. In this project, I need to control the robot with voice commands like when someone says FORWARD then the robot start moving in forward direction.

Now first of all what I need to do is to save this FORWARD voice in the shield, which we will see today how to save the command in the shield and after that I will show you the Interfacing of EasyVR shield with Arduino UNO. So that when I say Forward the motor start to move in forward direction, which we will see in the next post. When I was working on EasyVR Shield then I got into a problem which was How to solve Training Error: Recognition Failed in EasyVR and I solved it so you should also have a look at this tutorial if you got such error.

What is EasyVR Commander?

  • EasyVR Commander is a software using which we save the voice commands in the EasyVR Shield. You guys can easily find it using google and its totally free.
  • Download this software and install it.

How to use EasyVR Commander?

  • First of all connect your EasyVR shield with the Arduino UNO Shield as shown in below figure.
 
  • Now be careful in this step as it took the most of my time, on EasyVR shield you will find a jumper J12. Put this jumper on position PC.
Note: When you are adding commands in EasyVR shield using EasyVR Commander, then this jumper J12 must be on position PC and when you are using this shield in the circuit with arduino then this jumper J12 must be on position SW.
  • Connect your Arduino UNO shield with the computer and run the software EasyVR commander. The software will open up as shown in the figure below.
  • Now select the COM Port on which Arduino UNO is attached, which in my case was at COM20.
  • After selecting the COM Port, click the Connect icon as shown in below figure.
  •  When you hit on Connect icon, the software will connect to the COM Port and will open up as shown below:
  •  If you check the left pane, there are many groups and wordset.
  • In wordset, there are pre defined words, which are already saved in the EasyVR shield.
  • The words which I want to save in the shield, will be saved in the Groups.
  • Now to save these words click on any group where you want to save.
  • In the below figure, I have selected Group 2 and then click on the Add Command button (Click # 1) shown in the figure.
  • It will add the command in the group as you can see I have saved the command OK.
  • Now I have saved the command OK but I have to give it some voice to this command.
  • In order to do so, click on the Train Command icon ( Click # 2 ).
  •  Now when you click on the Train Command icon, a message box will pop up as shown in below figure.
  • Click on the button which says Phase 1.
  • Now as you click on this button, a box appears which say "speak now", now its the time to say your command in the mic like I said OK.
  • After listening the command this pop up will again show up and this time the button will be Phase 2.
  • Again click on the button and it will ask for "speak now" and you again speak the same command in the mic.
  • After that the software verifies the two words and if they are same it will confirm the command.
  • You should also have a look at these Arduino Projects for Beginners.
  • In my case, I have saved total 5 commands in my software as shown in the below figure.
  • These were my five commands to control my robot.
  • Now after adding the commands, simply close the software as the voice commands are now saved in the EasyVR shield.
  • Place the jumper J12 back to position SW.
Note:
  • You can also test your added commands,to do so click on Test Command icon on the software and speak up any of the commands from the selected group.
  • If the command matches, then the software will indicate it. Test it and you will see.
In the next post we will check the arduino side of controlling this shield. I will post the code as well so that you can easily test it. If someone's having any problem in using this shield post in comments and I will surely help you out and subscribe us via email to get such exciting tutorials rite in your mailbox. Take care !!!

Voice Recognition using EasyVR Shield

Hello friends, today's post is, as the name suggests, about the Voice Recognition using EasyVR Shield. Voice recognition is quite a difficult task and usually done on software like MATLAB, but what if someone needs a stand alone project, a kind of autonomous voice recognition project, which doesn't use computer.

EasyVR is the solution for such projects. I recently did one project on this module named as Voice Recognition using EasyVR Shield and it worked really cool so I thought to share this new technology with you guys. I couldn't write the next part of Proteus tutorial, actually firstly I was busy in this project and then I thought to share this one as its quite exciting one. After completing this project, I will come back to Proteus tutorial.

This is the first tutorial in this EasyVR shield series. In the next tutorial, I have shared Getting Started with EasyVR Commander and once you got familiar with the EasyVR Commander then you must read Interfacing of EasyVR Commander with Arduino. When I was working on this awesome shield, I got Training Error: Recognition Failed in EasyVR so if you got such error this read this tutorial.

Project Description - Voice Recognition using EasyVR Shield

  • The complete project was quite messy, it involves a lot of sensors as well as dtmf control, so I am not explaining that part in this tutorial. In this project I will explain that section of the project where we used this module.
  • The functioning of this module is to control the robot movement using voice.
  • So, when someone says FORWARD in the mic of this module, the robot moves forward. Someone says RIGHT and the robot moves right and so on.
  • I have divided this project in parts so that you can easily understand the basic concept behind this project.
  • If you are working on such project and are unable to make the code work then you can also get our services by Contacting Us.
  • I have plans on designing this same project on PIC Microcontroller as well as 8051 Microcontroller and I will share their links once I uploaded them.

So, that was all about the Project Description of Voice Recognition using EasyVR Project. In the next posts, we will first see how to add these voice commands in the EasyVR shield and after that we will have a look at the code, I used in Arduino.

Complete Guide on Proteus ISIS & ARES

Hello friends, I hope you all are fine and having fun. In today's tutorial, I will provide you a Complete Guide on Proteus ISIS & ARES. I will start from very basics & will gradually move towards complex projects. I have already shared a lot of tutorials on Proteus software on my blog, I will add their links in today's tutorial as well, in the projects section. If you guys have any problem anywhere, ask in comments and I will try my best to resolve your issues and also subscribe to our newsletter so that you get these burning tutorials rite in your mail box. I will continuously update this list of tutorials so that we have all tutorials at one place.

Course Content of Proteus Guide

I have divided this tutorial in few sections and you have to follow them in sequence and at the end of this course, I hope you will be able to create any simulation in Proteus ISIS & also design its PCB model in Proteus ARES. These sections are as follows:
  • In the 1st section of this course, we will have a look at few basic concepts in Proteus, which are necessary for a beginner to understand.
  • In the 2nd section, we will discuss various components available in Proteus. I know there's countless components in its database and we can't discuss them all but we will have a look at most commonly used components i.e. DC motor, servo motor, serial port, etc. We will design some simple electronics circuits in Proteus to get better understanding.
  • In the 3rd section, we will have a look at How to simulate different Microcontrollers in Proteus ISIS, and we will also simulate different sensors in it. Moreover, I will guide you How to Install 3rd Party Proteus Libraries.
  • In the 4th section, we will first have a detailed introduction to Proteus ARES & then we will design different PCB boards in it, both single layered and multi-layered.
  • In the 5th section, we will see how to design a component in Proteus along with its PCB footprint, if it's not already in Proteus database. Its important, especially when you need to design a PCB in Proteus.
  • In the 6th section, we will simulate different final year complex projects.

Complete Guide on Proteus ISIS & ARES

  • I have created above mentioned sections and added respective links in sequence.
Section 1: Basics of Proteus ISIS
So, let's get started with Basics of Proteus ISIS, these are very basic tutorials, so if you have worked on Proteus before, then you can skip this section. Although, I would recommend you to read them once:
Section 2: Components Available in Proteus ISIS

Proteus has a wide range of components in its database. Using these components you can design almost any kind of circuit and can test and debug it. Below tutorials mention few of these components, which are most commonly used while working on Proteus.

Components Libraries for Proteus

Proteus has a wide range of components available in its database. But it happens quite a lot that you search for some component in Proteus but you can't find it in Proteus database. For such cases, Proteus has given a method using which you can design your component in Proteus and can add all of its features in it. Its quite a lengthy process and needs a lot of effort as it involves creation of DLL files using C++ and VSM. We have designed few components libraries for Proteus, using which you can simulate that component or module in Proteus. Here's the list:

Arduino Projects in Proteus

Arduino is most widely used Microcontroller board these days, which is famous for its flexibilty and ease of use. Arduino board is not available in Proteus but we have provided with Arduino libraries using which you can quite easily use Arduino in Proteus and can test your circuits in Proteus before implementing them in hardware. Below are the tutorials and projects in which we have used Arduino in Proteus.

PIC Microcontroller Projects in Proteus

PIC Microcontroller is another microcontroller which is used by engineers in engineering projects. This microcontroller is available in Proteus so we have designed few projects on it which are mentioned below:

8051 Microcontroller Projects in Proteus

8051 Microcontroller is another microcontroller series which is quite popular and is used in engineering projects quite a lot. 8051 Microcontrollers are also available in Proteus and most normally used 8051 Microcontrollers are AT89C51 and AT89C52. I have shared many projects on 8051 Microcontroller, which are as follows:

Sensors simulation in Proteus
[dt_gap height="7"] Proteus has a wide range of sensors available in its database. We have designed simulations of few of these sensors which are mentioned below. Ultrasonic sensor is not available in Proteus so we have provided its library so thaat students can easily interface and test it in Proteus. These sensors' simulations are mentioned below:
555 Timer Projects in Proteus
555 Timer is known as the king of electronics projects after microcontrollers. 555 timer is used in a lot of electronics projects where you need to ddo control or generate some timing or PWM pulse. 555 Timer is available in Proteus and have designed a lot of tutorials on it, which are mentioned below:
PCB Designing Tutorials in Proteus ARES
Proteus not only provide the capability of circuit designing and testing but also provide the facility of designing a PCB. Proteus comes with two packages one is named as Proteus ISIS in which we design our circuits and the other one is Proteus ARES which is used for PCB designing. Here we have post tutorials on How to design PCBs in Proteus.

So these are the tutorial on which I have written. If you guys stuck at any point, feel free to ask in comments and I will try my best to satisfy you as much as I can. Moreover subscribe to our mailing list so that you get these tutorials rite into your mail box. Stay blessed & take care.

How to Burn MikroC code Using PICkit3

Today's post based on my personal experience so I thought of sharing it with you guys. Today I thought of using PICkit3 for programming PIC microcontroller. Before that, I was using PIC JDM Programmer for PIC , the only reason for switching is the usb port as I want to burn the PIC on my laptop instead of PC, as my laptop don't have serial port. So, I connected PICkit3 with my laptop and tested it with MPLAB and it worked well. But actually the project on which I am currently working demands MikroC (Client's requirement to use MikroC compiler but personally I always prefer MPLAB).

Anyways I thought it wont be much of an issue to connect it but when i practically did that i was kind of surprised, there was no method anywhere (at least i didn't find any) not even in the mikroC forums of how to connect PICkit3 with mikroC. I almost spent two to three hours finding some direct way to connect PICkit3 with mikroC but didn't find any. Although I got few tips from the forums, that's what I love most about forum discussion, and finally I got able to program the MikroC code through PICkit3. Although its not a direct way but quite quick and working great for me. If anyone knows any better than this one, kindly post in comments or send me directly.Now just follow these simple steps and you are on.

Requirements for Connecting PICkit3 with MikroC

  • PICkit3 Programmer
  • External Simple Hardware to connect PICkit3 with PIC Microcontroller.
  • MikroC Pro (Full Version)
  • MPLAB with C18 compiler
Note:
  •  If anyone needs any of the above software than Subscribe to our Newsletter and post your email ID in the comments and I will email them to you.

Step 1: Create program in MikroC

  • First of all, create your program in MikroC which you want to burn via PICkit3.
  • Now when you are done, go to Project > Build and build your program.
  • When you click on Build, the MikroC will create a hex file of your program which will be in the same folder in which you have saved your program.

Step 2: MPLAB settings

  • Now open the MPLAB software and make sure that you don't have any open project in your workspace. If you have, then simply go to File and click on Close Workspace, it will automatically close all the files.
  • After that click on Configure and then Select Device and select the microcontroller on which you want to burn the program. Make sure that it is the same one which you have selected in MikroC, and then click OK.
  • Now, again click on Configure and then on Configuration Bits and make sure to tick the option above the table which says Configuration Bits set in code. I have also shown it in the below figure.
  • Now connect your PICkit3 with the computer, if MPLAB is installed than its driver will be automatically installed and soon you will get a prompt that hardware is working.
  • After that again go to MPLAB and click on Programmer and then Select Programmer and from the list, select PICkit3, it will be on 4th number.
  • Here comes the role of external hardware you are using to connect your PICkit3 with the PIC microcontroller. If this external hardware is self powered i.e. externally powered than you wont get any error and the PICkit3 will successfully Connected but if your external hardware is not self powered means you are using PICkit3 to power it up then you will get the below error.
  • So if your external hardware is self powered then you can skip this point but if you got this error than click on Programmer and then on Settings and a dialog box will open up. In this dialog box click on Power and then tick the option which says Power target circuit from PICkit3 as shown in below figure.
  • Now click OK and again click on Programmer and then on Reconnect and you will get no error this time, your PICkit3 will successfully connect to the MPLAB and also support your PIC microcontroller.

Step 3 : Importing Hex file in MPLAB

  • Now the last step is to import the hex file we generated in the step 1 using mikroC into MPLAB. To do so, click on File menu in MPLAB and then click on Import and select your hex file you want to burn in your microcontroller.
  • Output pane will show that file is loading and when its loaded click on Programmer and then on Program and your program start to burn in your microcontroller and soon a message will show up in output pane that program/verify completed. Hurrah! your program is successfully burned in the microcontroller.
  •  Now, you don't need to do anything, these all setting are just one time only save these settings, now just make your program in MikroC, compile it and then program it using MPLAB just two clicks. .... :))
Important Note:
  • Don't Import hex file before connecting the PICkit3, the sequel must remain same otherwise it will create problem.
  • The PIC chip must be same for both MPLAB and MikroC otherwise although the program will burn but it wont work on your hardware as I have mistakenly experienced it.
  • Dont use any third party software for programming through PICkit3, i tried the beta version software but it didn't work on my system and just crashed.

If you having any problem in any part of this tutorial ask in comments, I will try my best to resolve it and if you like this tutorial then Subscribe to our Newsletter so that you got such tutorials right into your mail box. Ok than let's meet in the next tutorial. Take care.

Sending Email in Microsoft Visual Studio 2010

No. Sending Email in Visual Studio 2010
Give Your Suggestions !!!
1. Part 1
2. Part 2

Hello friends, today's tutorial is about adding functionality in Microsoft Visual Studio 2010 basic email form. In the previous part of this tutorial How to Send Email in Microsoft Visual Studio 2010, we have seen a basic email form which just sends email to constant email address which is specified in the coding.

Today we will make this email form a bit flexible and will be able to send the emails to any email id we want. If you have read the previous part of this tutorial, then this article will be nothing for you, you will got it just like a piece of cake instantly.

So, I suppose that you have read the previous tutorial and you have the knowledge of smtp etc so I am not gonna explain it further, so i suggest again to read it first if you have any doubt in configuration part, lets come to this part.

Steps to follow:

  • First of all create a new project in your Microsoft Visual Studio 2010 and if you have already created it in the previous part then don't need to create it again, just open that project.
  • Now in your main form add one button, three labels, two text boxes and one rich text box.
  • Change the Name and texts of all these controls from their properties as i specified below and be careful in doing this part and its better if you simple copy paste them.
    • Change Label1 text to Send Email To.
    • Change Label2 text to Subject.
    • Change Label3 text to Mesage.
    • Change TextBox1 name to txtSend and place it after Label1.
    • Change TextBox2 name to txtSubject and place it after Label2.
    • Change RichTextBox name to rtbMessage and place it under the Label3.
    • Now at the end change the Button1 text to Send Email and name to SendEmail.
  • Place them as shown in the image below or you can also change their positions as well. Anyways your final software will look like this :
  • Now the last part is adding code so go into your code editor and remove all the previous code and place this code in it.
Imports System.Net.Mail Public Class Form1 Private Sub SendEmail_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SendEmail.Click Dim Mail As New MailMessage Mail.Subject = txtSubject.Text Mail.To.Add(txtSend.Text) Mail.From = New MailAddress("email@gmail.com") Mail.Body = rtbMessage.Text Dim smtp As New SmtpClient("smtp.gmail.com") smtp.EnableSsl = True smtp.Credentials = New System.Net.NetworkCredential("email@gmail.com", "password") smtp.Port = "587" smtp.Send(Mail) End Sub End Class
  • Change email@gmail.com with your email address and password with your password.
  • Now if you compare it with the code in the previous part, you will see there's just a slightest change.
  • In the previous software, we were adding the subject and email id to which we have to send email and the email body in the code section but in this software we have created text boxes and in the code we are getting these things from those text boxes, quite a simple thing.

Things to Notice:

  • One thing you have observed that this software lack the functionality of login so its not kind of a messenger on which we just login with any id and send the email to your recipient.
  •  The reason is we haven't yet covered the login form. In my next article on visual studio, i will cover the login form.
  • By the way you can add a simple login form by yourself, just add two text boxes and in the code, get data from them where we are using our email id and password.
Note:
  • This sotware along with code has been sent to all the subscribed members already.
  • In order to get the complete code and software, kindly Subscribe to our Newsletter and post your subscribed email address in the comments and I will send them to you.

I will recommend you guys to must read these two tutorial on Microsoft Visual Studio as well:

That's all for today guys, if someone having any kind of trouble in any part, ask in comments and help me to help you ..... Take care ..... ALLAH HAFIZ :))

How to Send Email in Microsoft Visual Studio 2010

No. Sending Email in Visual Studio 2010
Give Your Suggestions !!!
1. Part 1
2. Part 2

Hello friends, first of all I am really bad in designing stuff. Although I have tried to design the top image for this post but I know its not much cool well try to bear it .... :))

After the Microsoft Visual Studio 2010 - COM Port and Creating a Database in Microsoft Visual Studio 2010 tutorial, here's my next tutorial on VB.net. As the name suggests, this tutorial is about sending an Email through Visual Studio. Again I will use Microsoft Visual Studio 2010 and the language will be Visual Basic for this tutorial.

Usually Sending an Email through software seems quite a difficult task but in actual its really a very easy task. So at the end of this short and quick tutorial, you will be able to develop a software which will send email on your click. I have divided this tutorial into two sections. Today we will just create a simple app which will send emails on just one click and later on we will add few features in it and make it able to send emails through multiple accounts with log in capability. Two parts of this tutorial are as follows:

Steps to Follow

  • First of all create a new project in Microsoft Visual Studio as shown in figure below:
 
  • Now select Visual Basic from the Installed Templates and then Windows Form Applications.
  • Give your project some name and then click on OK.
  •  Now it will redirect you to your form. Add one button in your form and rename it to Send Email and change the Name of the button to SendEmail.
  • Now move into the code section of your application and remove everything and paste the below code into it.
Imports System.Net.Mail Public Class Form1 Private Sub SendEmail_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SendEmail.Click Dim Mail As New MailMessage Mail.Subject = "First Email" Mail.To.Add("Email1") Mail.From = New MailAddress("Email2") Mail.Body = "First Email Through VB.net --- www.TheEngineeringProjects.com" Dim smtp As New SmtpClient("smtp.gmail.com") smtp.EnableSsl = True smtp.Credentials = New System.Net.NetworkCredential("Email2", "Password") smtp.Port = "587" smtp.Send(Mail) End Sub End Class
  • Now make few changes in it.
  • Email1 is the email whom you wanna send the email.
  • Email2 is your email from which the mail will be sent.
  • Password is the password of your email i.e. email2.
Note:
  • SmtpClient and SmtpPort are different for different email providers.The above mentioned are only for Gmail.If you search a little you can easily find these for Hotmail and yahoo etc.
  • If someone needs this software along with complete code, kindly subscribe to our newsletter and post your email in the comments.

Updating Database Table with Programming in VB 2010

Hello friends, I hope you all are fine and having fun. In today's tutorial, we will have a look at updating database table with Programming in VB 2010. In the previous posts of this tutorial, we have seen How to Create a database in VB 2010 and then we have added button control in VB Database in it, which was quite an easy job. But usually in such applications, its necessary that the application update its database automatically. Like in one of my project, I have designed a software for hotel management in which the data is coming from all the rooms wirelessly to the master room where the software is installed. It was quite a big project but the thing, for which I have mentioned this project, is the software installed in the master room was updating its database itself i.e. if data of room 1 changed then software automatically update the info of that room in its database.

So, for students and also for freelancers its essential that they must have full command over database, and in order to understand today's post its also essential that you must read the previous two posts of this tutorial.
  • In the last post of this tutorial, we have designed this application which is shown in the below figure:
  • In this post I am not gonna use images as its really not necessary, because we don't make any change in the layout of application, the whole programming will be at the back end.

Code for Updating Database internally in VB 2010

  • Here's the simple code which you need to place in your application, I have explained each line with comments but still if anyone got any trouble please ask in comments, I am always here to help you out.
  • For this code, things to be noted are:
    • database name is database1,  
    • Var1 and Var2 are two variables,  
    • Contact Form is the name of our table which we have saved in our database.
    • FullName and LastName are the columns name of our table.
Dim Var1 As database1DataSet.ContactFormRow 'Defining a vaiable Dim Var2 As database1DataSet.ContactFormRow 'Defining a variable Var1 = database1DataSet.ContactForm.FindByID(2) 'Here, we are assigning our variable Var1 the location of row 2. Var2 = database1DataSet.ContactForm.FindByID(2) 'Here, we are assigning our variable Var2 the location of row 2. Var1.FullName = Var2.LastName 'Now as our variables are in row 2 so they can access any value in row 2. So in this line of code, I just assign the LastName to First Name. So, after execution of this command whatever present in Full Name of row 2 will be replaced by Last Name of row 2. Me.table5TableAdapter.Update(Me.database1DataSet.ContactForm) 'Now at the the end updated our database or in other words save the database.
Mostly data we receive is through serial port so in that case simple remove the Var2 with the variable in which you are receiving data from serial port. For the programming of serial port in visual basic 2010, check the below tutorial. That's all for today friends and finally this tutorial completed. If you guys have any question regarding any part kindly ask in comments and also subscribe to our newsletter to get the new updates and software.
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