sábado, 30 de agosto de 2014

ircuit Designing of LCD with Arduino in Proteus ISIS A complete step by step tutorial on Circuit Designing of LCD with Arduino in Proteus ISIS

Circuit Designing of LCD with Arduino in Proteus ISIS A complete step by step tutorial on Circuit Designing of LCD with Arduino in Proteus ISIS

http://www.theengineeringprojects.com/2014/07/circuit-designing-lcd-arduino-proteus-isis.html

  • First of all, design a circuit of LCD and Arduino in Proteus ISIS, if you have already added the Arduino Library then you won’t find any problem in finding the Arduino in components library of Proteus. Design the circuit as shown in below figure:
  • Now, we need to design Arduino sketch for LCD, so open Arduino software and place below code into it.
#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
void setup()
{
lcd.begin(16, 2);
lcd.print(“www.TheEngineer”);
lcd.setCursor(0,1);
lcd.print(“ingProjects.com”);
}
void loop() {}
Note:
  • For Arduino code, I have used Liquid Crystal Arduino Library, which you can download from the below link and add it in the libraries folder of Arduino software.
  • Now compile the code, and get the Arduino hex file which will be in the tmp folder, you can read Arduino Library for Proteus to know in detail how to get the hex file of Arduino sketch.
  • Now double click the Arduino in Proteus ISIS and properties window will pop up.
  • In properties panel, under the Program File section, browse to Arduino hex file as shown in below figure and upload it.
  • Now click Ok and Run your simulation, if everything goes fine then your LCD will start showing the characters as shown in below figure:
  • That’s all, was it difficult ??? I dont think so Anyways, if you got into any trouble, do ask in comments.
  • In the coming posts, we will explore Arduino in Proteus ISIS more. Till then take care !!!

No hay comentarios:

Publicar un comentario