yarmouk university
TRANSCRIPT
-
8/2/2019 Yarmouk University
1/17
Yarmouk UniversityHijjawi Faculty for Engineering Technology
Primary Project Presentation
Oscilloscope and FunctionGeneratorSupervised by:
Dr. Adnan A. ElnasanPrepared by:
Ayman Jebrel HabebMohammed Ali Shatnawi
Yahia Mohammed Alhami
-
8/2/2019 Yarmouk University
2/17
2
Presentation Overview.
Project description. Project motivations and objectives. Background:
Microcontrollers. Parallel Port Interface. DAC: Digital to Analog Converting.
Project Implementation:Main Problems and difficulties.
Software Implementation.Overall circuit. Functionality and Limitations.
Future work.
-
8/2/2019 Yarmouk University
3/17
3
Project description
Oscilloscope and function generator is very essential component inmost of engineering labs.
In our project we implement simplified PC based oscilloscope andfunction generator by using new and simple approach.
We will implement our idea using PIC microcontroller with Parallelport interface discussed later.
-
8/2/2019 Yarmouk University
4/17
4
Project objectives and motivations
To reduce the cost of basic equipments for electricalengineering labs.
Help students to practice their scientific research and solve
their problems and home works (availability).
Reduce the size of function generator and oscilloscope,make it portable and easy to carry.
Help universities to create new labs and to move quality oflearning process forward by computerizing almost allengineering labs.
-
8/2/2019 Yarmouk University
5/17
5
Project backgroundPIC Microcontroller
We use microcontroller to make future workmore easy (remove PC part) by decreasingthe role of the PC .
We must have good knowledge about signalgenerating, signal converting technique and
basic programming skills and devicesinterfacing so we have this background.
Microcontrollers are inexpensive microcomputersable to store and run stored program and able to
carry out mathematical and logic functions.
Consist of the Central Processing Unit (CPU),
Random Access Memory (RAM), Read OnlyMemory (ROM), input/output lines, timers andother peripherals such as an analog to digitalconverter (ADC) .
-
8/2/2019 Yarmouk University
6/17
6
Project background - contA877F16PIC Microcontroller
We Choose PIC 16F877A for following reason:
Interrupt capability, easy to use and easy to program.
Low cost (~ $10).
-
8/2/2019 Yarmouk University
7/17
7
Project background - contParallel port interfacing
A parallel port is a type of interface found on computers for connectingvarious peripherals.
Parallel port consist of two main buses Data Bus and Control Bus.
Data Bus is used to carry a byte stream, we used this feature tocarry data, Control bus is used to request a service from the PIC.
Parallel port has many operating modes, we choose one of them whichis bidirectional .
We used parallel port with our project to reduce
the effort of synchronization between the PIC and
the PC.
-
8/2/2019 Yarmouk University
8/17
8
Project background - contParallel port interfacing
The table below shows some of the parallel port pins and therehardware details.
-
8/2/2019 Yarmouk University
9/17
9
Project background - contDigital to Analog ConvertingDAC:
DAC is very important part of our project since we need toconvertDigital data generated from the PIC into Analog signal.
R = 2n
Vout = (D0/255 + D1/128 + D2/64 + D7/2)*5
Its important to remember that 16F877A support A/D converting butNOT support D/A converting so we must implement D/A converter.
-
8/2/2019 Yarmouk University
10/17
10
Project ImplementationDifficulty in implementation
Again the main problem or target is to generate and read varioussignal types with accepted Amplitude and frequency with the minimumcost.
During our research we have many problems here some of its:
Weak background in electronic components and its details andimplementation (we cover this point by hardworking).
There no built in DAC in the PIC so we need to implement it by
some suitable way.
There is nosimple or straight forward way to convert betweensignal types (Ex. to convert from square wave to sine wave).
Ambiguous and unexpected results some times.
-
8/2/2019 Yarmouk University
11/17
11
Project ImplementationSoftware Implementation
Basically we need multiple layer of coding to implement project idea.
To implement project software you need :VisualStudio.NET, PICC compiler, Protues v7.0.
-
8/2/2019 Yarmouk University
12/17
12
Project ImplementationSoftware Implementation
And send it to PC to plot
-
8/2/2019 Yarmouk University
13/17
13
Project ImplementationOscilloscopeynchronizationS
-
8/2/2019 Yarmouk University
14/17
14
Project ImplementationSynchronization Oscillator
-
8/2/2019 Yarmouk University
15/17
15
Project ImplementationOverall Circuit and Hardware implementation
-
8/2/2019 Yarmouk University
16/17
16
Project Implementation
Functionality and Limitations Functionality: We were successful in generating all necessary types of signals
with accepted amplitude and frequency.
We implement very functional oscilloscope and function
generator. We decrease the cost from 1300$ to 11$ only.
Main Limitations:
The main limitation is the PIC itself and its capabilities , it willbe very nice to obtain fastest and more efficient microcontroller
and we will see a big gap in the results also with more efficientPIC the cost will still very small.
Limitations in the available resources and the availability ofequipments.
-
8/2/2019 Yarmouk University
17/17
17
Future Work??? Very Nice ???
To implement same idea with faster PIC to obtain more frequency andamplitude.
To add LCD with the PIC and remove the part of the PC.
To generate all type of signal with some mathematical operations onthe signals.
To make the project hardware available to every one and to everystudent.