SlideShare a Scribd company logo
2
Most read
Article No: 3 Ver: 1.0
Author: Engr. Hassan Mehmood Khan Date: 17/1/2017
Article: 3
Learning to Use Arduino with Proteus (Programming of LCD)
By Hassan Mehmood Khan
Date 19/1/2017
Introduction:
This article should help you to do basic setup of Arduino Controller in Proteus, programming
and simulation of Arduino in Proteus. In this article I have tried to make it simple to use LCD
with Arduino with some simulation and programming. As compared to my previous tutorial I
am using here Arduino Controller IC instead of Arduino Uno Board.
Proteusi
:
Proteus combines ease of use with powerful features to help you design, test and layout
professional PCBs like never before. With nearly 800 microcontroller variants ready for
simulation straight from the schematic, one of the most intuitive professional PCB layout
packages on the market and a world class shape based autorouter included as standard,
Proteus Design Suite 8 delivers the complete software package for today and tomorrow's
engineers.
Proteus Arduino 328:
Proteus Arduino LCD Shield:
Article No: 3 Ver: 1.0
Author: Engr. Hassan Mehmood Khan Date: 17/1/2017
Arduinoii
:
Arduino is an open-source electronics platform based on easy-to-use hardware and software.
It's intended for anyone making interactive projects.
Custom Characters for LCD:
Each LCD characters is actually calculated as 5x7.
Initiate the character as a byte and copy the same code above for the byte value.
For Example: byte g[8]= { 0x00, 0x00, 0x0A, 0x04, 0x0A, 0x00, 0x0E, 0x00};
It is very useful tool to create custom characters. And you can display them on LCD.
Article No: 3 Ver: 1.0
Author: Engr. Hassan Mehmood Khan Date: 17/1/2017
Steps:
1. Proteus Project:
To create the project follow the steps:
New Project>Create new project > Create a Schematic from the selected template
(Landscape A4)>Create a PCB layout (Generic)>Next>Firmware Project>Next>Finish.
2. Import Arduino 328 in Proteus:
Article No: 3 Ver: 1.0
Author: Engr. Hassan Mehmood Khan Date: 17/1/2017
Import the Arduino 328 from the snippet folder:
Folder Location:
C:Program Files (x86)Labcenter ElectronicsProteus 8 ProfessionalSnippets
Import Steps:
Goto File>Import Project Clip
3. Import Arduino LCD Shield in Proteus:
Folder and Steps to import are same as of Arduino 328.
Article No: 3 Ver: 1.0
Author: Engr. Hassan Mehmood Khan Date: 17/1/2017
4. Complete Circuit:
The complete circuit showed look like the following:
There is not any other component you need to put for the LCD programming.
5. Programming:
Follow the steps below to setup programming.
Source Code Section>System>Compilers Configuration
Article No: 3 Ver: 1.0
Author: Engr. Hassan Mehmood Khan Date: 17/1/2017
Make Sure it is as per diagram above. If you have Arduino Software Install then it
should be already there. Otherwise just click Download and use “Arduino AVR”.
Use the Following Programme:
/* Main.ino file generated by New Project wizard
*
* Created: Fri Jan 6 2017
* Processor: ATmega328P
* Compiler: Arduino AVR */
#include <LiquidCrystal.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
LiquidCrystal lcd(8,9,4,5,6,7);
// make custom characters
byte g[8]= {0x00, 0x04, 0x0E, 0x1F, 0x1F, 0x04, 0x00, 0x00};
byte n[8]= {0x00, 0x04, 0x0E, 0x1F, 0x1F, 0x04, 0x00, 0x00};
//int motorPin1 = 2;
//int motorPin2 = 3;
void setup() // put your setup code here, to run once:
Article No: 3 Ver: 1.0
Author: Engr. Hassan Mehmood Khan Date: 17/1/2017
{
//pinMode(motorPin1, OUTPUT);
//pinMode(motorPin2, OUTPUT);
lcd.begin(16,2);
//lcd.print("Motor ");
lcd.write(byte(0));
lcd.write(byte(2));
lcd.print(" Galaxian! ");
lcd.write(byte(0));
lcd.write(byte(2));
//lcd.print(" Fwd Dir");
}
void loop() // put your main code here, to run repeatedly:
{
lcd.noDisplay();
delay(500);
// lcd.clear();
// lcd.display();
lcd.createChar(0, g);
lcd.createChar(2, n);
lcd.setCursor(0,1);
lcd.print(millis()/1000);
lcd.setCursor(2,1);
lcd.print(" sec ");
lcd.setCursor(7,1);
lcd.print(millis()/1000*0.0167);
lcd.setCursor(10,1);
lcd.print(" min ");
lcd.display();
delay(500);
}
Article No: 3 Ver: 1.0
Author: Engr. Hassan Mehmood Khan Date: 17/1/2017
6. Output Display:
The output display should look like below:
Resources:
i
https://www.labcenter.com/
ii
https://www.arduino.cc/

More Related Content

What's hot (13)

PDF
Rdl esp32 development board trainer kit
Research Design Lab
 
PDF
Windows 10 IoT Core, a real sample
Mirco Vanini
 
PPT
Arduino technical session 1
Audiomas Soni
 
PPTX
Using arduino and raspberry pi for internet of things
Sudar Muthu
 
PDF
Hands-on Labs: Raspberry Pi 2 + Windows 10 IoT Core
Andri Yadi
 
PPTX
Lab Handson: Power your Creations with Intel Edison!
Codemotion
 
PDF
Introduction to ESP32 Programming [Road to RIoT 2017]
Alwin Arrasyid
 
PPTX
Arduino as an embedded industrial controller
Jose Luis Poza Luján
 
PPTX
IOT Talking to Webserver - how to
Indraneel Ganguli
 
PPTX
Arduino Model's
Ali Izmir
 
PPTX
Controlling an Arduino with Android
A. Hernandez
 
PPTX
Hacker's and painters Hardware Hacking 101 - 10th Oct 2014
Takeda Pharmaceuticals
 
PDF
Interacting with Intel Edison
FITC
 
Rdl esp32 development board trainer kit
Research Design Lab
 
Windows 10 IoT Core, a real sample
Mirco Vanini
 
Arduino technical session 1
Audiomas Soni
 
Using arduino and raspberry pi for internet of things
Sudar Muthu
 
Hands-on Labs: Raspberry Pi 2 + Windows 10 IoT Core
Andri Yadi
 
Lab Handson: Power your Creations with Intel Edison!
Codemotion
 
Introduction to ESP32 Programming [Road to RIoT 2017]
Alwin Arrasyid
 
Arduino as an embedded industrial controller
Jose Luis Poza Luján
 
IOT Talking to Webserver - how to
Indraneel Ganguli
 
Arduino Model's
Ali Izmir
 
Controlling an Arduino with Android
A. Hernandez
 
Hacker's and painters Hardware Hacking 101 - 10th Oct 2014
Takeda Pharmaceuticals
 
Interacting with Intel Edison
FITC
 

Viewers also liked (20)

PDF
Internet of things and arduino
Christophe Marchal
 
PDF
Ardunio
DILEEP KUMAR
 
PDF
IoTino - Arduino for Internet of Things
Abiro AB
 
PDF
aplikasi arduino uno
Retno AppleLienna
 
PDF
petunjuk praktis penelitian ilmiah
Indra S Wahyudi
 
PDF
Arduino, Open Source and The Internet of Things Landscape
Justin Grammens
 
PDF
Arduino pengenalan
Adama Rahim
 
PDF
Impact of dynamic system modelling on the power stability of hvdc systems
Indra S Wahyudi
 
DOC
Unit 5 daya ac
Indra S Wahyudi
 
PPTX
Arduino by bishal bhattarai IOE, Pashchimanchal Campus Pokhara, Nepal
bishal bhattarai
 
PDF
Arduino & Internet of Things - First Step
Alessio Reggiani
 
PDF
Arduino dasar untuk orang biasa
Go Asgard
 
DOC
Unit 1 prinsip dasar listrik
Indra S Wahyudi
 
PDF
Effect of converter dc fault on the transient stability of a multi machine po...
Indra S Wahyudi
 
PPTX
Home automation
Waseeullah Khan
 
PDF
Teknologi sistem pengendalian tenaga listrik berbasis scada
Indra S Wahyudi
 
PPTX
Introduction to Arduino
Omer Kilic
 
DOC
Instalasi motor 3 fasa
Indra S Wahyudi
 
PPTX
CARA BELAJAR EFEKTIF
Risa A. Harmadani
 
DOC
SMS(GSM)BASED HOME AUTOMATION SYSTEM PROJECTS-ECE/EEE/E&I/ICE
ASHOKKUMAR RAMAR
 
Internet of things and arduino
Christophe Marchal
 
Ardunio
DILEEP KUMAR
 
IoTino - Arduino for Internet of Things
Abiro AB
 
aplikasi arduino uno
Retno AppleLienna
 
petunjuk praktis penelitian ilmiah
Indra S Wahyudi
 
Arduino, Open Source and The Internet of Things Landscape
Justin Grammens
 
Arduino pengenalan
Adama Rahim
 
Impact of dynamic system modelling on the power stability of hvdc systems
Indra S Wahyudi
 
Unit 5 daya ac
Indra S Wahyudi
 
Arduino by bishal bhattarai IOE, Pashchimanchal Campus Pokhara, Nepal
bishal bhattarai
 
Arduino & Internet of Things - First Step
Alessio Reggiani
 
Arduino dasar untuk orang biasa
Go Asgard
 
Unit 1 prinsip dasar listrik
Indra S Wahyudi
 
Effect of converter dc fault on the transient stability of a multi machine po...
Indra S Wahyudi
 
Home automation
Waseeullah Khan
 
Teknologi sistem pengendalian tenaga listrik berbasis scada
Indra S Wahyudi
 
Introduction to Arduino
Omer Kilic
 
Instalasi motor 3 fasa
Indra S Wahyudi
 
CARA BELAJAR EFEKTIF
Risa A. Harmadani
 
SMS(GSM)BASED HOME AUTOMATION SYSTEM PROJECTS-ECE/EEE/E&I/ICE
ASHOKKUMAR RAMAR
 
Ad

Similar to PROTEUS - ARDUNIO PROGRAMMING FOR LCD (20)

PPTX
Arduino Simulation_Basic_Day-2 (Proteus)
Redwan Ferdous
 
PPTX
Fundamentals of Arduino: Day-02
Redwan Ferdous
 
PDF
Learn LCD Arduino-v1
handson28
 
PDF
Arduino guide
Rajan Gautam
 
PDF
Using Graphic Touch Screens And Sd Cards With Arduino David Leithauser
smhkiori
 
PDF
Power supply learning kit for uno
IvonneVzquezdelaTorr
 
PDF
arduino
murbz
 
PDF
Elegoo Super Starter Kit for UNO V1.0.2017.7.9.pdf
asdasdasd25145
 
DOCX
Lab Activity 3
Dwight Sabio
 
PPTX
Arduino slides
sdcharle
 
PPTX
Arduino Workshop Slides
mkarlin14
 
PDF
Ardx experimenters-guide-web
Jhonny Wladimir Peñaloza Cabello
 
PPTX
Arduino Introduction Guide 1
elketeaches
 
PPTX
Arduino Projects.pptx
Jhon Bryan Cantil
 
PPTX
Arduino Slides With Neopixels
sdcharle
 
PDF
Ardx eg-spar-web-rev10
stemplar
 
PDF
Embedded system course projects - Arduino Course
Elaf A.Saeed
 
PPTX
Designers, please mind the gap! Let's get started with Arduino
Fahed Al Riachi
 
PDF
Presentation S4A
Pedro González Romero
 
Arduino Simulation_Basic_Day-2 (Proteus)
Redwan Ferdous
 
Fundamentals of Arduino: Day-02
Redwan Ferdous
 
Learn LCD Arduino-v1
handson28
 
Arduino guide
Rajan Gautam
 
Using Graphic Touch Screens And Sd Cards With Arduino David Leithauser
smhkiori
 
Power supply learning kit for uno
IvonneVzquezdelaTorr
 
arduino
murbz
 
Elegoo Super Starter Kit for UNO V1.0.2017.7.9.pdf
asdasdasd25145
 
Lab Activity 3
Dwight Sabio
 
Arduino slides
sdcharle
 
Arduino Workshop Slides
mkarlin14
 
Ardx experimenters-guide-web
Jhonny Wladimir Peñaloza Cabello
 
Arduino Introduction Guide 1
elketeaches
 
Arduino Projects.pptx
Jhon Bryan Cantil
 
Arduino Slides With Neopixels
sdcharle
 
Ardx eg-spar-web-rev10
stemplar
 
Embedded system course projects - Arduino Course
Elaf A.Saeed
 
Designers, please mind the gap! Let's get started with Arduino
Fahed Al Riachi
 
Presentation S4A
Pedro González Romero
 
Ad

More from Hassan Khan (13)

PPTX
Proteus Circuits Design and Simulation - Examples and Projects
Hassan Khan
 
PDF
Timer Circuit (555 & 7447)
Hassan Khan
 
PDF
A+ B+B- A- Pneumatics and Electrical diagram
Hassan Khan
 
PDF
Qasidah burdah shareef
Hassan Khan
 
PDF
FIELD SYSTEM by FANUC
Hassan Khan
 
PDF
Light Control Switch
Hassan Khan
 
PDF
Microsoft certified educator_study_guide
Hassan Khan
 
PDF
3529-12 City&Guilds
Hassan Khan
 
PPTX
Testing and other equipment (Electronics Beginner Level)
Hassan Khan
 
PPTX
Power supply 1.2 30 v (Beginners Level)
Hassan Khan
 
PDF
Basic Electronics for Engineers (Tutorial)
Hassan Khan
 
PDF
555 74192 7447 .pdsprj
Hassan Khan
 
PDF
Certificate- City&Guilds L3
Hassan Khan
 
Proteus Circuits Design and Simulation - Examples and Projects
Hassan Khan
 
Timer Circuit (555 & 7447)
Hassan Khan
 
A+ B+B- A- Pneumatics and Electrical diagram
Hassan Khan
 
Qasidah burdah shareef
Hassan Khan
 
FIELD SYSTEM by FANUC
Hassan Khan
 
Light Control Switch
Hassan Khan
 
Microsoft certified educator_study_guide
Hassan Khan
 
3529-12 City&Guilds
Hassan Khan
 
Testing and other equipment (Electronics Beginner Level)
Hassan Khan
 
Power supply 1.2 30 v (Beginners Level)
Hassan Khan
 
Basic Electronics for Engineers (Tutorial)
Hassan Khan
 
555 74192 7447 .pdsprj
Hassan Khan
 
Certificate- City&Guilds L3
Hassan Khan
 

Recently uploaded (20)

PPTX
Server Side Web Development Unit 1 of Nodejs.pptx
sneha852132
 
PDF
MAD Unit - 2 Activity and Fragment Management in Android (Diploma IT)
JappanMavani
 
PPTX
Heart Bleed Bug - A case study (Course: Cryptography and Network Security)
Adri Jovin
 
PPTX
Shinkawa Proposal to meet Vibration API670.pptx
AchmadBashori2
 
PDF
GTU Civil Engineering All Semester Syllabus.pdf
Vimal Bhojani
 
PDF
Electrical Engineer operation Supervisor
ssaruntatapower143
 
PPTX
Mechanical Design of shell and tube heat exchangers as per ASME Sec VIII Divi...
shahveer210504
 
DOCX
CS-802 (A) BDH Lab manual IPS Academy Indore
thegodhimself05
 
PPTX
Damage of stability of a ship and how its change .pptx
ehamadulhaque
 
PPT
Carmon_Remote Sensing GIS by Mahesh kumar
DhananjayM6
 
PDF
Water Industry Process Automation & Control Monthly July 2025
Water Industry Process Automation & Control
 
PPTX
265587293-NFPA 101 Life safety code-PPT-1.pptx
chandermwason
 
DOC
MRRS Strength and Durability of Concrete
CivilMythili
 
PDF
Set Relation Function Practice session 24.05.2025.pdf
DrStephenStrange4
 
PDF
PORTFOLIO Golam Kibria Khan — architect with a passion for thoughtful design...
MasumKhan59
 
PPTX
Depth First Search Algorithm in 🧠 DFS in Artificial Intelligence (AI)
rafeeqshaik212002
 
PDF
Pressure Measurement training for engineers and Technicians
AIESOLUTIONS
 
PDF
AI TECHNIQUES FOR IDENTIFYING ALTERATIONS IN THE HUMAN GUT MICROBIOME IN MULT...
vidyalalltv1
 
PPTX
VITEEE 2026 Exam Details , Important Dates
SonaliSingh127098
 
PDF
Design Thinking basics for Engineers.pdf
CMR University
 
Server Side Web Development Unit 1 of Nodejs.pptx
sneha852132
 
MAD Unit - 2 Activity and Fragment Management in Android (Diploma IT)
JappanMavani
 
Heart Bleed Bug - A case study (Course: Cryptography and Network Security)
Adri Jovin
 
Shinkawa Proposal to meet Vibration API670.pptx
AchmadBashori2
 
GTU Civil Engineering All Semester Syllabus.pdf
Vimal Bhojani
 
Electrical Engineer operation Supervisor
ssaruntatapower143
 
Mechanical Design of shell and tube heat exchangers as per ASME Sec VIII Divi...
shahveer210504
 
CS-802 (A) BDH Lab manual IPS Academy Indore
thegodhimself05
 
Damage of stability of a ship and how its change .pptx
ehamadulhaque
 
Carmon_Remote Sensing GIS by Mahesh kumar
DhananjayM6
 
Water Industry Process Automation & Control Monthly July 2025
Water Industry Process Automation & Control
 
265587293-NFPA 101 Life safety code-PPT-1.pptx
chandermwason
 
MRRS Strength and Durability of Concrete
CivilMythili
 
Set Relation Function Practice session 24.05.2025.pdf
DrStephenStrange4
 
PORTFOLIO Golam Kibria Khan — architect with a passion for thoughtful design...
MasumKhan59
 
Depth First Search Algorithm in 🧠 DFS in Artificial Intelligence (AI)
rafeeqshaik212002
 
Pressure Measurement training for engineers and Technicians
AIESOLUTIONS
 
AI TECHNIQUES FOR IDENTIFYING ALTERATIONS IN THE HUMAN GUT MICROBIOME IN MULT...
vidyalalltv1
 
VITEEE 2026 Exam Details , Important Dates
SonaliSingh127098
 
Design Thinking basics for Engineers.pdf
CMR University
 

PROTEUS - ARDUNIO PROGRAMMING FOR LCD

  • 1. Article No: 3 Ver: 1.0 Author: Engr. Hassan Mehmood Khan Date: 17/1/2017 Article: 3 Learning to Use Arduino with Proteus (Programming of LCD) By Hassan Mehmood Khan Date 19/1/2017 Introduction: This article should help you to do basic setup of Arduino Controller in Proteus, programming and simulation of Arduino in Proteus. In this article I have tried to make it simple to use LCD with Arduino with some simulation and programming. As compared to my previous tutorial I am using here Arduino Controller IC instead of Arduino Uno Board. Proteusi : Proteus combines ease of use with powerful features to help you design, test and layout professional PCBs like never before. With nearly 800 microcontroller variants ready for simulation straight from the schematic, one of the most intuitive professional PCB layout packages on the market and a world class shape based autorouter included as standard, Proteus Design Suite 8 delivers the complete software package for today and tomorrow's engineers. Proteus Arduino 328: Proteus Arduino LCD Shield:
  • 2. Article No: 3 Ver: 1.0 Author: Engr. Hassan Mehmood Khan Date: 17/1/2017 Arduinoii : Arduino is an open-source electronics platform based on easy-to-use hardware and software. It's intended for anyone making interactive projects. Custom Characters for LCD: Each LCD characters is actually calculated as 5x7. Initiate the character as a byte and copy the same code above for the byte value. For Example: byte g[8]= { 0x00, 0x00, 0x0A, 0x04, 0x0A, 0x00, 0x0E, 0x00}; It is very useful tool to create custom characters. And you can display them on LCD.
  • 3. Article No: 3 Ver: 1.0 Author: Engr. Hassan Mehmood Khan Date: 17/1/2017 Steps: 1. Proteus Project: To create the project follow the steps: New Project>Create new project > Create a Schematic from the selected template (Landscape A4)>Create a PCB layout (Generic)>Next>Firmware Project>Next>Finish. 2. Import Arduino 328 in Proteus:
  • 4. Article No: 3 Ver: 1.0 Author: Engr. Hassan Mehmood Khan Date: 17/1/2017 Import the Arduino 328 from the snippet folder: Folder Location: C:Program Files (x86)Labcenter ElectronicsProteus 8 ProfessionalSnippets Import Steps: Goto File>Import Project Clip 3. Import Arduino LCD Shield in Proteus: Folder and Steps to import are same as of Arduino 328.
  • 5. Article No: 3 Ver: 1.0 Author: Engr. Hassan Mehmood Khan Date: 17/1/2017 4. Complete Circuit: The complete circuit showed look like the following: There is not any other component you need to put for the LCD programming. 5. Programming: Follow the steps below to setup programming. Source Code Section>System>Compilers Configuration
  • 6. Article No: 3 Ver: 1.0 Author: Engr. Hassan Mehmood Khan Date: 17/1/2017 Make Sure it is as per diagram above. If you have Arduino Software Install then it should be already there. Otherwise just click Download and use “Arduino AVR”. Use the Following Programme: /* Main.ino file generated by New Project wizard * * Created: Fri Jan 6 2017 * Processor: ATmega328P * Compiler: Arduino AVR */ #include <LiquidCrystal.h> #include <stdio.h> #include <stdlib.h> #include <math.h> LiquidCrystal lcd(8,9,4,5,6,7); // make custom characters byte g[8]= {0x00, 0x04, 0x0E, 0x1F, 0x1F, 0x04, 0x00, 0x00}; byte n[8]= {0x00, 0x04, 0x0E, 0x1F, 0x1F, 0x04, 0x00, 0x00}; //int motorPin1 = 2; //int motorPin2 = 3; void setup() // put your setup code here, to run once:
  • 7. Article No: 3 Ver: 1.0 Author: Engr. Hassan Mehmood Khan Date: 17/1/2017 { //pinMode(motorPin1, OUTPUT); //pinMode(motorPin2, OUTPUT); lcd.begin(16,2); //lcd.print("Motor "); lcd.write(byte(0)); lcd.write(byte(2)); lcd.print(" Galaxian! "); lcd.write(byte(0)); lcd.write(byte(2)); //lcd.print(" Fwd Dir"); } void loop() // put your main code here, to run repeatedly: { lcd.noDisplay(); delay(500); // lcd.clear(); // lcd.display(); lcd.createChar(0, g); lcd.createChar(2, n); lcd.setCursor(0,1); lcd.print(millis()/1000); lcd.setCursor(2,1); lcd.print(" sec "); lcd.setCursor(7,1); lcd.print(millis()/1000*0.0167); lcd.setCursor(10,1); lcd.print(" min "); lcd.display(); delay(500); }
  • 8. Article No: 3 Ver: 1.0 Author: Engr. Hassan Mehmood Khan Date: 17/1/2017 6. Output Display: The output display should look like below: Resources: i https://www.labcenter.com/ ii https://www.arduino.cc/