Manual - PCB Design and Arduino Simulation by Proteus
Manual - PCB Design and Arduino Simulation by Proteus
Simulation
Organized by:
AUST IDC
Venue:
Ahsanullah University of Science and Technology
Manual
Prepared by:
Istiak Mahmud
4th Year and 1st Semester,
Department of Electrical and Electronic Engineering (EEE),
Ahsanullah University of Science and Technology
PCB Designing and Arduino
Simulation
2. The following window will appear, give a name of the project and path where the project will
be saved using the Name and Path field. Then select Next.
Page 2 of 46
3. Select Create a schematic from the selected template and DEFAULT template. Then
click on Next.
4. Select Create a PCB layout from the selected template and DEFAULT template. Then
click on Next.
Page 3 of 46
5. If no firmware project is wanted then select No Firmware Project and select Next.
6. Finally, the following window will show a summary of the initial setup steps. Click on Finish
and a window containing both the Schematic Capture and PCB Layout tabs will appear.
Page 4 of 46
Schematic Design:
Circuit diagram of clock signal generation using 555 timer IC is given below:
1. To draw the above circuit diagram, select Component Mode in the Schematic Capture
window and then click on Pick Devices to pick the desired components.
Page 5 of 46
2. To pick a component, type the name of the component in the Keywords box and among the
components appeared as the search results, double click on the desired model to select the
component which will be shown in the components list. [For selecting resistor and capacitor,
just simply type Res and Cap in the Keywords Box]. Having selected all the components,
click on OK in the Pick Devices pop-up window.
3. Then place the components in the schematic window and the schematic will look like the
following :
Page 6 of 46
To change the value of resistors or capacitors, double click on the component’s value and put
the desired value in the String field of the pop-up window. The following window shows a
sample of the process by changing the value of the resistance of R1 from 10kΩ to 5kΩ.
4. To pick and place the Power supply and Ground, click on the Terminals Mode and select
POWER and GROUND respectively.
5. After completion of the drawing, the schematic will appear like below:
Page 7 of 46
6. To observe the output waveform, select Virtual Instruments Mode and select Oscilloscope
from the Instruments list.
Page 8 of 46
7. Place the Oscilloscope and connect Channel A to the output pin 3 of 555 timer. Then click
on Play button below.
8. The desired output wave shape of the circuit will be seen in the Oscilloscope’s output
window.
Page 9 of 46
9. To observe the effect of output voltage signal on a LED, place a LED along with a biasing
resistance in place of Oscilloscope as shown in the following figure.
10. To see the defined PCB package model of a component, right click on the component and
select Edit Properties and observe the PCB Package field of the appeared Edit Component
window. The following figure is showing the corresponding PCB package of 555 timer IC.
Page 10 of 46
11. PCB Package is not defined for LED. To assign a PCB model for LED, right click on the
LED and select Edit Properties.
Page 11 of 46
13. For PCB design, a connector needs to be placed in the schematic design for external power
source. Type 66226 in the Keywords box of the Pick Device window and select 66226-002.
Page 12 of 46
14. Place the Connector in the schematic for power and ground connection in the PCB layout.
15. Add another connector to replace the LED to maintain the design rule specified by some of
the fabrication companies.
Page 13 of 46
2. Now the task is placing the components in the PCB layout window. To place a component,
in Component Mode, click on the particular component (1). Use the Rotate option (2) to
place the component accordingly.
Page 14 of 46
3. Try to minimize the area by placing the components closer. After placing all the
components, PCB Layout window will appear like below.
4. Click on the Design Rule Manager and select the parameters as shown in the following
figures.
Page 15 of 46
Page 16 of 46
5. For routing the design, select Track Mode (1), select T30 in the Track selector list (2) and
select Bottom Copper (3) in the Layer Selector list.
Page 17 of 46
6. After successful completion of routing, the following figure will appear containing No CRC
and DRC errors.
Page 18 of 46
To increase the diameter of the pad of a component, select Round Through-Hole Pad Mode,
then select C-70-30 in the Pad selector list and place the pads accordingly in the component.
7. Go to Output > Mark Output Area and draw a rectangle around the design.
Page 19 of 46
8. Select Dimension Mode and select Board Edge (1) in the Layer Selector list and draw
respective lines to measure the length and height of the board.
9. To get a 3D view of your PCB, at first select 2D Graphics Box Mode and select Board Edge (1)
and draw a rectangle around the design.
Page 20 of 46
Page 21 of 46
The following diagram shows the bottom view of the PCB which can be found by spinning
the top view accordingly.
10. To make a pdf file of the design, go to Output > Print Layout
Page 22 of 46
In Print Layout window, select the following red marked modes and select OK.
After saving the pdf file, the file will look like the following.
11. To create the pdf of top silk, select again Output > Print Layout, then in the appeared
window, select the following modes and select OK.
Page 23 of 46
After saving the pdf file, the file will look like the following.
Page 24 of 46
Objectives:
Steps :
1. After creating a new project according to the steps
described in Part 1, go to ‘Schematic Capture’ tab.
Select ‘Component Mode’ from the left panel.
2. Click on ‘Pick Devices’ option.
3. Under ‘Pick Devices’ option, type ‘Arduino Uno’ under
‘Keywords’, and select 1st one from the ‘Results’ menu.
Click OK and it will appear in Component list menu.
4. Use ‘Pick Devices’ option for other components and
complete the circuit given on ‘Circuit Diagram’.
Page 25 of 46
Circuit Diagram :
ARDUINO Code :
Page 26 of 46
#include<LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,16,2);
void setup()
{
Serial.begin(9600); // Starts the serial communication
lcd.init();
lcd.backlight();
pinMode(8,INPUT);
pinMode(2,OUTPUT);
pinMode(3,OUTPUT);
}
void loop()
{
int pirState=digitalRead(8);
lcd.setCursor(0,0);
lcd.print("Detecting-");
if(pirState==LOW)
{
digitalWrite(2,HIGH);
digitalWrite(3,LOW);
lcd.setCursor(0,1);
lcd.print("All Clear");
Serial.println("All Clear");
delay(500);
lcd.clear();
}
else if (pirState==HIGH)
{
lcd.setCursor(0,1);
digitalWrite(3,HIGH);
Page 27 of 46
digitalWrite(2,LOW);
lcd.print("Not clear");
Serial.println("Not Clear");
delay(500);
lcd.clear();
}
C:\\Users\\USER\\AppData\\Local\\Temp\\arduino_build_86750/ir.in
o.hex"
Copy the location and goto ‘Proteus’ circuit and select the
‘Arduino’and double click on it. There will be a ‘Program File’
box. Now paste the HEX file location on the box and click ‘OK’.
Now first check the HEX file location for ‘IR OBSTACLE
SENSOR’ .
Then goto ‘Proteus’ circuit and select ‘IR Obstacle Sensor’
double click on it and paste the HEX file location for sensor on
‘Program File’ box and click ‘OK’.
Now, click on ‘Run the Simulation’.
The result will be-
Page 28 of 46
Page 29 of 46
Page 30 of 46
Schematic –
Page 31 of 46
Layout-
Page 32 of 46
Before run-
After run-
Page 33 of 46
Schematic-
Start End
Page 34 of 46
ARDUINO Code:
byte
lookupTable[16]={0x3F,0x06,0x5B,0x4F,0x66,0x6D,0x7D,0x07,0x7
F,0x6F,0x77,0x7C,0x39,0x5E,0x79,0x71};
void setup()
{
DDRD=0xFF;
pinMode(8,OUTPUT);
pinMode(9,OUTPUT);
}
void loop()
{
for(int i=0;i<15;i++)
{
digitalWrite(8,LOW);
PORTD=lookupTable[i];
delay(1000);
}
}
Page 35 of 46
References
1. Anupom Golder
https://sites.google.com/site/anupamgolder09/
2. Proteus Video Tutorial series:
https://www.youtube.com/watch?v=yt7Bhhvo-hU
https://www.youtube.com/watch?v=J1_Dn8ip5Xs
https://www.youtube.com/watch?v=my8MpvjxMKs
https://www.youtube.com/watch?v=03dlGIDw6kM
3. The Engineering Projects
https://www.theengineeringprojects.com/category/proteus
Page 36 of 46