Barangay Council for the Protection of Children (BCPC) Orientation.pptx
PROTEUS : ARDUINO PROJECT FOR LED N DC MOTOR
1. Article No: 2 Ver: 1.0
Author: Engr. Hassan Mehmood Khan Date: 5/1/2017
Article : 2
Learning to Use Arduino with Proteus
By Hassan Mehmood Khan
Date 5/1/2017
Introduction:
This article should help you to do basic setup of Arduino in Proteus, programming and
simulation of Arduino in Proteus. Few examples of how to do wiring of Arduino and LED and
DC motor programming examples will be provided.
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.
Arduinoii
:
Arduino is an open-source electronics platform based on easy-to-use hardware and software.
It's intended for anyone making interactive projects.
Steps:
1. Adding Arduino in Proteus Library:
a. Download Proteus Library from the link below:
(You can use Google Search as well)
http://www.theengineeringprojects.com/2015/12/arduino-library-proteus-
simulation.html
b. Unzip and place the files in Library folder of Proteus.
Fig 1: Arduino Lib Files
In Proteus 8 and above the path for the Library Should be:
C:ProgramDataLabcenter ElectronicsProteus 8 Professional
2. Article No: 2 Ver: 1.0
Author: Engr. Hassan Mehmood Khan Date: 5/1/2017
2. Proteus Project:
To create the project follow the steps:
New Project>Create new project > Create a Schematic from the selected template
(Landscape A4)>Do not create a PCB layout>No Firmware Project>Finish
3. Import Arduino in Proteus:
Go to Library> Pick Device> Arduino> Arduino UNO
3. Article No: 2 Ver: 1.0
Author: Engr. Hassan Mehmood Khan Date: 5/1/2017
4. Place Components:
a. Resistor:
Go to library. Select the component as shown in Figure below:
b. LEDs:
Go to library. Select the component as shown in Figure below:
4. Article No: 2 Ver: 1.0
Author: Engr. Hassan Mehmood Khan Date: 5/1/2017
c. DC Motor Driver IC (L239D):
This is a motor driver IC that can drive two motor simultaneously. L293D IC is a dual
H-bridge motor driver IC. One H-bridge is capable to drive a dc motor in
bidirectional. L293D IC is a current enhancing IC as the output from the sensor is not
able to drive motors itself so L293D is used for this purpose. L293D is a 16 pin IC having
two enables pins which should always be remain high to enable both the H-bridges.
Note:
(L293D can run a motor up to 600 mA whereas L293B can run up to 1 A.)
(L293D has protection diode whereas L293B doesn’t have any such protection diode.
Need to add the protection diode manually.)
Fig: L293D Pin Diagram
In Proteus:
5. Article No: 2 Ver: 1.0
Author: Engr. Hassan Mehmood Khan Date: 5/1/2017
d. DC Motor:
Go to library. Select the component as shown in Figure below:
5. Complete Circuit:
The complete circuit showed look like the following:
6. Article No: 2 Ver: 1.0
Author: Engr. Hassan Mehmood Khan Date: 5/1/2017
6. Programming:
Use any Arduino Software > Use the following Code:
7. Article No: 2 Ver: 1.0
Author: Engr. Hassan Mehmood Khan Date: 5/1/2017
7. Importing Hex File In Proteus:
a. After Programming in Arduino Software. Compile it. It will perform the compiling.
Once compiling is done. Go to:
C:Users(Your User Name)AppDataLocalTemp
Find the latest build folder. It should look like following:
b. Open the folder. Find the hex file.
It should look like following:
Copy the file in your preferred location.
c. Import for Arduino in Proteus:
Double click the Arduino board and go to edit component. Click on Program File.
Go to your saved file location and select *.hex file.
Resources:
i
https://www.labcenter.com/
ii
https://www.arduino.cc/