0% found this document useful (0 votes)
148 views

Manual - PCB Design and Arduino Simulation by Proteus

The document describes how to design a clock generation circuit using a 555 timer integrated circuit in Proteus simulation software. It involves creating a new project with schematic and PCB design components, drawing the circuit schematic in the schematic editor with the 555 timer and other components, simulating the output waveform using an oscilloscope, defining PCB packages for components, and laying out the circuit on a PCB design while following design rules for clearance and connectivity. The goal is to generate a clock signal and observe its output on an LED using Proteus simulation and then fabricate the PCB design.

Uploaded by

Mahi
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
148 views

Manual - PCB Design and Arduino Simulation by Proteus

The document describes how to design a clock generation circuit using a 555 timer integrated circuit in Proteus simulation software. It involves creating a new project with schematic and PCB design components, drawing the circuit schematic in the schematic editor with the 555 timer and other components, simulating the output waveform using an oscilloscope, defining PCB packages for components, and laying out the circuit on a PCB design while following design rules for clearance and connectivity. The goal is to generate a clock signal and observe its output on an LED using Proteus simulation and then fabricate the PCB design.

Uploaded by

Mahi
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 36

Workshop on PCB Designing and ARDUINO

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

Part 1: Clock generation by a 555 timer IC [Astable Multivibrator operation


of 555 timer]
Objective:
Creating a schematic of clock generation circuit using 555 timer IC and designing its
corresponding PCB layout using Proteus.

Creating a new project:


1. Run Proteus 8 Professional from desktop, the following window will appear, then select
File > New Project to start a project.

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

Prepared by : Istiak Mahmud


PCB Designing and Arduino
Simulation

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

Prepared by : Istiak Mahmud


PCB Designing and Arduino
Simulation

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

Prepared by : Istiak Mahmud


PCB Designing and Arduino
Simulation

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

Prepared by : Istiak Mahmud


PCB Designing and Arduino
Simulation

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

Prepared by : Istiak Mahmud


PCB Designing and Arduino
Simulation

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

Prepared by : Istiak Mahmud


PCB Designing and Arduino
Simulation

6. To observe the output waveform, select Virtual Instruments Mode and select Oscilloscope
from the Instruments list.

Page 8 of 46

Prepared by : Istiak Mahmud


PCB Designing and Arduino
Simulation

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

Prepared by : Istiak Mahmud


PCB Designing and Arduino
Simulation

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

Prepared by : Istiak Mahmud


PCB Designing and Arduino
Simulation

11. PCB Package is not defined for LED. To assign a PCB model for LED, right click on the
LED and select Edit Properties.

12. Then follow the steps as depicted by the following figures.

Page 11 of 46

Prepared by : Istiak Mahmud


PCB Designing and Arduino
Simulation

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

Prepared by : Istiak Mahmud


PCB Designing and Arduino
Simulation

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

Prepared by : Istiak Mahmud


PCB Designing and Arduino
Simulation

PCB Layout Design:


1. Click on the PCB Layout tab (1), then select the Component Mode (2), the list of the
components derived from the schematic is shown as in (3).

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

Prepared by : Istiak Mahmud


PCB Designing and Arduino
Simulation

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

Prepared by : Istiak Mahmud


PCB Designing and Arduino
Simulation

Page 16 of 46

Prepared by : Istiak Mahmud


PCB Designing and Arduino
Simulation

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

Prepared by : Istiak Mahmud


PCB Designing and Arduino
Simulation

6. After successful completion of routing, the following figure will appear containing No CRC
and DRC errors.

Page 18 of 46

Prepared by : Istiak Mahmud


PCB Designing and Arduino
Simulation

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

Prepared by : Istiak Mahmud


PCB Designing and Arduino
Simulation

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

Prepared by : Istiak Mahmud


PCB Designing and Arduino
Simulation

Click on ‘3D Visualizer’ icon to get a 3D view of your PCB.

In the 3D Visualizer window, select Top View.

The following diagram shows the top view of the PCB.

Page 21 of 46

Prepared by : Istiak Mahmud


PCB Designing and Arduino
Simulation

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

Prepared by : Istiak Mahmud


PCB Designing and Arduino
Simulation

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

Prepared by : Istiak Mahmud


PCB Designing and Arduino
Simulation

After saving the pdf file, the file will look like the following.

Page 24 of 46

Prepared by : Istiak Mahmud


PCB Designing and Arduino
Simulation

Part 2 :Parking Slot Checker and Detector using Automation


System on PROTEUS.

Objectives:

 To use sensors at PROTEUS.


 To use Serial Monitor at PROTEUS.
 To use LCD at PROTEUS.
 To use ARDUINO at PROTEUS.
 Parking Slot Checker and Detector using ARDUINO and
IR Obstacle Sensor.
 ‘ON’ Green LED when parking is available and ‘ON’ Red
LED when parking is not available.
 Showing it on LCD and Serial Monitor.

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

Prepared by : Istiak Mahmud


PCB Designing and Arduino
Simulation

Circuit Diagram :

ARDUINO Code :

Open ARDUINO IDE and then goto ‘File’ > ‘New’


and Write the code –

Page 26 of 46

Prepared by : Istiak Mahmud


PCB Designing and Arduino
Simulation

#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

Prepared by : Istiak Mahmud


PCB Designing and Arduino
Simulation

digitalWrite(2,LOW);
lcd.print("Not clear");
Serial.println("Not Clear");
delay(500);
lcd.clear();
}

 Then ‘Run Compile’ and ‘save it.


 Then after giving command ‘Done compiling’, at black
background down window there will be a HEX file location like

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

Prepared by : Istiak Mahmud


PCB Designing and Arduino
Simulation

For available the parking-

For not available the parking-

Page 29 of 46

Prepared by : Istiak Mahmud


PCB Designing and Arduino
Simulation

Circuit 3: Ambulance Circuit.

N.B:Please ensure lowering your PC/Laptop’s volume(do it from 5-


10%) before ‘Run the simulation’ for this circuit.

Page 30 of 46

Prepared by : Istiak Mahmud


PCB Designing and Arduino
Simulation

Circuit 4:LDR(Light Dependent Resistor)


Circuit.
 Connect the circuit.
 Run the Circuit.
 And test the Circuit LED is ON or OFF by varying the light
distance.

Schematic –

Page 31 of 46

Prepared by : Istiak Mahmud


PCB Designing and Arduino
Simulation

Layout-

Page 32 of 46

Prepared by : Istiak Mahmud


PCB Designing and Arduino
Simulation

Circuit 5:AUDIO observation.


 Setup the Circuit.
 Set WAV file for Audio Generator.
 Run the Simulation.

Before run-

After run-

Page 33 of 46

Prepared by : Istiak Mahmud


PCB Designing and Arduino
Simulation

Circuit 6 : Seven Segment Display.


 Connect the Circuit.
 Write ARDUINO code.
 Compile code.
 Copy HEX file location.
 Paste it on ‘Program file’ box on ARDUINO.
 Run the Circuit.

Schematic-

After Run the Simulation-

Start End

Page 34 of 46

Prepared by : Istiak Mahmud


PCB Designing and Arduino
Simulation

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

Prepared by : Istiak Mahmud


PCB Designing and Arduino
Simulation

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

Prepared by : Istiak Mahmud

You might also like