Professional Documents
Culture Documents
Pico Scope
Pico Scope
Microcontroller Projects
FOR SALE::: SMD Breakout Board For SMD Prototype
Inroduction
More and more experiments are now ‘PC-assisted.’ Also conventional acquisition systems are very expensive. Since
portable PCs are today common and a USB link is a better solutionhere we present an oscilloscope using USB port of the
PC that operates at up to 10 kHz with ±16V input voltage. It has much more improved features than the PC-based
oscilloscope . The oscilloscope uses IC PIC18F2550 from Microchip as the main controller, which makes the oscilloscope
compact as there is no need of additional power supply for the entire circuit board.
Circuit description
At the heart of this oscilloscope is USB2.0-compliant microcontroller PIC18F2550 from Microchip. You can also use IC18F2445 in
avobe figrue shows the circuit of the two-channel PC-based oscilloscope. MCP6S91 from Microchip Technology is an
analogue programmable gain amplifier that is well suited to driving analogue-to-digital converters (ADCs) and an analogue
1 de 16 5/8/2013 16:41
Microcontroller Projects: Two-Channel PC Based Oscilloscope USB http://www.circuitvalley.com/2011/07/two-channel-pcbased-oscilloscope...
input to a PIC microcontroller. Two MCP6S91 programmable gain amplifiers (IC4 and IC5) make it possible to choose the
input ranges for each of the two channels, by selecting a gain from 1:1 to 32:1. The amplifiers are small, cheap and easy to
use. A simple three-wire serial peripheral interface (SPI) allows the PIC to control them through pins 5, 6 and 7.
The MCP6S91 amplifier is designed with CMOS input devices. It is designed to not exhibit phase inversion when the input
pins exceed the supply voltages. The maximum voltage that can be applied to the input pin is –0.3V (VSS) to +0.3V (VDD).
Input voltages that exceed this absolute maximum rating can cause excessive current into or out of the input pins. Current
beyond ±2 mA can cause reliability problems. Applications that exceed this rating must be externally limited with a resistor
to the input pin.(pin 3), which is an analogue input, should be at a voltage between VSS and VDD. The voltage at this pin
shifts the output voltage. The SPI interface inputs are chip-select (CS), serial input (SI) and serial clock (SCK). These are
Schmitt-triggered, CMOS logic inputs.
The only disadvantage is that these amplifiers accept only positive signals. That’s why voltage-shifting amplifiers LF353
(IC2A and IC3A) are used,one each for each channel input (see Fig. 1). The LF353 is a JFET input operational amplifier
with an internally compensated input offset voltage. The JFET input device provides wide bandwidth, low input bias currents
and offset currents. This voltage-shifting amplifier results in a high input impedance and an attenuation factor of 1:4.5. A
±16V input signal is then shifted to the0-5V range when the programmed gain is 1:1.
Two halves of the LF353 (IC2B and IC3B) are used as voltage followers to provide a low-impedance shifting voltage
(Vref) to the programmable amplifiers. This voltage must be precisely adjusted with two 4.7-kiloohm presets to measure
precisely 2.5V level on the inputs of IC2 and IC3 when the input signals are grounded.
Because LF353 opamps need a symmetrical supply voltage, a small DC-DC voltage converter ICL7660 (IC1) is used
to feed –5V to LF353. With its small 8-pin DIP package, it needs only two polarised capacitors. ICL7660 can be replaced
with a MAX1044. The MAX1044 and ICL7660 are monolithic, CMOS switched-capacitor voltage converters that invert,
double, divide or multiply a positive input voltage.These are pin compatible with the industry-standard LTC1044
All the data is transmitted on the D+/D- symmetrical pins using a variable bit rate. The position of a resistor (R13) on D+ or
D- allows you to choose between the full-speed (12 Mbps) and lowspeed modes (1.5 Mbps). Note that the
IC18F2550/2455 devices have built-in pull-up resistors designed to meet the requirements of low-speed and fullspeed
speed USB. The UPUEN bit (UCFG=4) enables the internal pull-ups. In this project, R13 is not used. External pullup may
also be used. The VUSB pin may be used to pull up D+ or D-. The pull-up resistor must be 1.5 kilo-ohms (±5%) as required
by the USB specification
The program for the microcontroller is written in ‘C’ language. MPLAB 8.70 along with MPLAB_C18 is used as the software
tool for development. The software tools can be downloaded for free from website ‘www.microchip.com.’ Based on
Microchip’s application notes, the program for the chip is centered on a main loop continually polling the USB transceiver
state. This loop never stops and each USB operation is done in one pass. All operations are initiated by the host (the PC),
which ends a 16-byte command
The first command byte determines the chip actions. The four possible actions are:
1. Command 80h: Clears the EEPROM calibration memory
2. Command 81h: Receives parameters, and stores the gain-error compensation for the two channels.
3. Command 83h: Initiates a zero calibration sequence of the two chan The first command byte determines the chip
actions. The four possible actions are:
4. Command 80h: Clears the EEPROM calibration memory
5. Command 81h: Receives parameters, and stores the gain-error compensation for the two channels.
6. Command 83h: Initiates a zero calibration sequence of the two channel.
2. Now you can start the driver installation process. To download drive click here . The goal is to select a good driver
(mchpusb.inf) by choosing the ‘specific location’ option. Don’t let Windows take a generic driver by default.
3.When you are done with installation, go to ‘device manager’ and check whether ‘USB2-MiniOscilloscope’ is under ‘other
device’ in ‘view devices by type'option. Otherwise, repeat Steps 1 and 2.
2 de 16 5/8/2013 16:41
Microcontroller Projects: Two-Channel PC Based Oscilloscope USB http://www.circuitvalley.com/2011/07/two-channel-pcbased-oscilloscope...
application program looks like a small digital oscilloscope as shown in the screenshot below. Various settings for operations
are given in the following menu bars:
1. Inputs: Selects the active channels
2. Sampling: Sets time-base and number of samples
3. Trigger: Sets the triggering condition
4. Cursors: Selects horizontal or vertical cursor positions
5. Num: Shows numerical sampled values, with an export command (text file format)
6. Config: Configures gain and offset errors
Calibration is to be done as described below before reading the output signals on the monitor screen by clicking ‘channels
calibration’ under ‘config’ menu bar. Feed the input waveforms (say, sine, rectangular, sawtooth, etc) from the source. Click
‘go’ button. The output waveform will be displayed on the monitor screen. Channel-1 and channel-2 output waveforms can
be differentiated by screen and red lines, respectively. By default, the time base is 200 s per division and amplitude is 4V
per division. You can set these parameters as per your requirements.
The first step is to adjust the zero offset error. Connect the two analogue inputs to the ground level and tune the two
4.7- kilo-ohm presets until pin 2 of both MCP6S21 is at 2.5V. A more precise tuning can be achieved through ‘OscilloPIC’
software. Choose the smallest calibration value at ±0.5V for both the inputs.
The ‘zero calibration’ command tells the PIC to start its own internal compensation for all calibrations. Don’t forget
to connect the inputs to the ground while calibrating.
The second parameter to check is the gain error. By clicking the ‘gain calibration’ command, it’s possible to specify a
small correction factor. This can be done after several measurements. You have to know the actual levels sine and
triangular waveforms and the measured levels (with the cursors) for the two channels. The gain error is less than 0.1 per
cent. The number of samples can be set between ‘10’ and ‘500.’ The minimum sampling 10 s for two channels.
Construction
assembly on a bread board.
3 de 16 5/8/2013 16:41
Microcontroller Projects: Two-Channel PC Based Oscilloscope USB http://www.circuitvalley.com/2011/07/two-channel-pcbased-oscilloscope...
An actual-size, single-side PCB layout for the two-channel PC-based USB oscilloscope circuit is shown in Figure and
its component layout . Since the circuit is compact, the construction is easy.
4 de 16 5/8/2013 16:41
Microcontroller Projects: Two-Channel PC Based Oscilloscope USB http://www.circuitvalley.com/2011/07/two-channel-pcbased-oscilloscope...
It is advised to use IC bases for mounting IC1 through IC7 on the PCB for easy troubleshooting. The USB connector
(CON1) must be firmly soldered and fixed on the board. It is located on the extreme right of the board (refer Figure.).
Two BNC connectors can be used for the input signals for channels ‘1’and ‘2,’ respectively. The connectors can be fixed on
the front panel of the enclosure. The performance of the oscilloscope can be improved by changing the PIC and its ADC
with a faster model. AD9238 (20 MS/s) is a good choice. This fast, parallel ADC converter could be used with a powerful
DSP PIC.
5 de 16 5/8/2013 16:41
Microcontroller Projects: Two-Channel PC Based Oscilloscope USB http://www.circuitvalley.com/2011/07/two-channel-pcbased-oscilloscope...
you may also like 30 volts Panel Volt Meter Using Pic mcu
54 comments:
1.
VanangamudiAugust 2, 2011 at 7:47 PM
ReplyDelete
2.
Pasan DinukaAugust 31, 2011 at 7:18 PM
ReplyDelete
3.
Gaurav ChaudharySeptember 1, 2011 at 8:02 AM
hi Vanangamudi
The total cost in Delhi is around 500 INR
if any of these components are not available at your place you can ask me ..
Thank you
ReplyDelete
Replies
1.
gurkiratFebruary 2, 2012 at 11:12 AM
hi gaurav plz send me d coding of pc based oscillscope n tell me d location where i can get this ic
Delete
2.
MayankMay 8, 2012 at 6:20 PM
hey , thanks for schematic , but i cannot source the microcontroller and opamps , where can i find them in
india .
i live in remote city so it'
s impossible to find such devices .
Delete
3.
sebin jamesNovember 4, 2012 at 1:58 PM
6 de 16 5/8/2013 16:41
Microcontroller Projects: Two-Channel PC Based Oscilloscope USB http://www.circuitvalley.com/2011/07/two-channel-pcbased-oscilloscope...
Delete
Reply
4.
PereSeptember 2, 2011 at 2:34 PM
ReplyDelete
Replies
1.
Ruben CiprianoMay 24, 2013 at 5:48 AM
Delete
2.
Ruben CiprianoMay 24, 2013 at 5:50 AM
could contact me? will like to know more about this oscilloscope of the sound card.
contaco: Rubenebur_19@hotmail.com
Delete
Reply
5.
Gaurav ChaudharySeptember 2, 2011 at 4:54 PM
Hi Pere
This is not a professional thing, this is just to learn few working principals.
ReplyDelete
6.
gurkiratSeptember 9, 2011 at 10:46 AM
ReplyDelete
Replies
1.
aidil yeahJuly 30, 2012 at 9:30 PM
Delete
Reply
7.
7 de 16 5/8/2013 16:41
Microcontroller Projects: Two-Channel PC Based Oscilloscope USB http://www.circuitvalley.com/2011/07/two-channel-pcbased-oscilloscope...
hi bro do you have any link to buy mcp6s91 or is there any equvalent?
ReplyDelete
8.
Gaurav ChaudharyNovember 2, 2011 at 10:31 PM
ReplyDelete
Replies
1.
kanmaniFebruary 11, 2012 at 3:14 PM
Delete
2.
Gaurav ChaudharyFebruary 11, 2012 at 8:47 PM
send me a mail at
mailchaduarygaurav{at}gmail.com
Delete
3.
kanmaniFebruary 15, 2012 at 10:58 PM
Delete
Reply
9.
hosesniffer75November 25, 2011 at 1:08 AM
Cool project. Is it possible to get the C code you used to program the PIC?
ReplyDelete
Replies
1.
rahulApril 9, 2012 at 1:22 AM
Delete
Reply
10.
kanmaniJanuary 31, 2012 at 9:35 PM
ReplyDelete
11.
elesh rudraFebruary 23, 2012 at 11:05 PM
ReplyDelete
12.
deepak karmakarMarch 9, 2012 at 3:30 PM
sir i have upgraded the avr usbasp with the help of ur given code(at89xx )series
it could burn the at16,at32
but it couldnt detect the at89c51,,
will u pleaseee help me.
ReplyDelete
13.
deepak karmakarMarch 9, 2012 at 3:32 PM
ReplyDelete
14.
March 25, 2012 at 1:29 AM
ReplyDelete
15.
March 25, 2012 at 1:30 AM
kes.628@gmail.com
ReplyDelete
16.
vandiApril 6, 2012 at 9:25 PM
Hi!
8 de 16 5/8/2013 16:41
Microcontroller Projects: Two-Channel PC Based Oscilloscope USB http://www.circuitvalley.com/2011/07/two-channel-pcbased-oscilloscope...
ReplyDelete
17.
hirakMay 8, 2012 at 11:20 PM
HI FRIEND CAN I USE LM358 INSTEAD OF LF353 AND IS THERE ANY EQUIVALENT OF MCP6S91?
ReplyDelete
Replies
1.
Gaurav ChaudharyMay 8, 2012 at 11:32 PM
LF353 is a jfet opamp it has very high input impedance , LM358 is general purpose opamp it will attenuate the
signal a little bit .but you can use LM358 there is nothing so big to worry about
MCP6S91 has no alternatives
if you need some part then you can ask me i can help you send me email.
Delete
Reply
18.
DausYgBeZzJune 12, 2012 at 3:41 PM
dausygbezz@gmail.com
ReplyDelete
Replies
1.
aidil yeahJuly 30, 2012 at 9:34 PM
Delete
Reply
9 de 16 5/8/2013 16:41
Microcontroller Projects: Two-Channel PC Based Oscilloscope USB http://www.circuitvalley.com/2011/07/two-channel-pcbased-oscilloscope...
19.
aidil yeahJuly 30, 2012 at 9:24 PM
are the software can only run to the window xp & vista only. can'
t window 7 use the software. please replay ,,,
because i am interesting
ReplyDelete
20.
tatopowerAugust 3, 2012 at 3:32 AM
thank you
ReplyDelete
21.
ibrahim ragabAugust 27, 2012 at 1:26 PM
What is the highest voltage can be measured in this circuit, you could apply the AC voltage is 220 volts.
ReplyDelete
Replies
1.
Gaurav ChaudharyAugust 27, 2012 at 8:07 PM
Delete
Reply
22.
kutumba raoAugust 31, 2012 at 11:39 PM
hi sir,
this is kutumba rao from hyderabad, A.P. Pl, help me. i want PIC18F2550 PC based scope kit with software(GUI). pl
send the price and payment method. E-mail:kbraochandu@gmail.com
ReplyDelete
Replies
1.
kutumba raoSeptember 2, 2012 at 8:44 PM
hi sir, i am try this project. but not working. pl, send the HEX file and GUI
otherwise pl give me the working kit. pl, help me.
Delete
2.
kutumba raoSeptember 3, 2012 at 7:28 PM
hi sir, i am doing hobby electronics, basically B.Tech ECE student. i con't purchase CRO. that' s why i am
impressing the project. there is no commercial activity. thank you for your supporting. pl give me the price
detail of the kit.
Delete
3.
kutumba raoSeptember 5, 2012 at 10:14 PM
hi sir, my requirement is ready made kit. it is not available, give me the one set of 1.PCB, 2.PIC18F2550[with
code(hex file dump and tested ok)], 3.MCP6S91, 4.LF353. pl give me the price details and SBI bank A/C no.
thank you your support.
Pl, give me the your contact number cell/ telephone.
Delete
Reply
10 de 16 5/8/2013 16:41
Microcontroller Projects: Two-Channel PC Based Oscilloscope USB http://www.circuitvalley.com/2011/07/two-channel-pcbased-oscilloscope...
23.
Bhaswati DasSeptember 2, 2012 at 7:29 PM
hello sir..i am a m.tech student..can i apply the same procedure of the above mentioned project for doing the 4
channel digital oscilloscope?if no,can you please help me out in doing this?
ReplyDelete
Replies
1.
Gaurav ChaudharySeptember 2, 2012 at 8:32 PM
hello Bhaswati
Delete
Reply
24.
Bhaswati DasSeptember 2, 2012 at 7:37 PM
sir can you please give your contact no so that i can contact you over phone
ReplyDelete
Replies
1.
Gaurav ChaudharySeptember 2, 2012 at 8:34 PM
i would prefer to communication via email , chat, skype you can find my email any where on the blog . please
11 de 16 5/8/2013 16:41
Microcontroller Projects: Two-Channel PC Based Oscilloscope USB http://www.circuitvalley.com/2011/07/two-channel-pcbased-oscilloscope...
Delete
Reply
25.
Bhaswati DasSeptember 2, 2012 at 10:49 PM
its absolutely ok sir...but i didnt find ur email address..can u plz give ur email address..
ReplyDelete
Replies
1.
Gaurav ChaudharySeptember 3, 2012 at 1:05 AM
mailchaduarygaurav{at}gmail.com
Delete
Reply
26.
johnson kennadySeptember 3, 2012 at 1:35 PM
Hello Mr.Gaurav
Best wishes for you work. Sir, im doing my project based on msp430 Microcontroller in order to measure ECG
signals. i designed the Visual basic program to get the ADC value from the serial port using microsoft visual basic
2008 express edition. it works nice. what i want is to create oscilloscope in order to display ECG waveform based
on value received from the serial port.
i want to create my own oscilloscope using Visual Basic. i have seen your work for displaying waveform.
1. Please tell me that " how to create real time waveform graph using VB?
2. Please tell me the simple sample program to create waveform graph
3. There is no tool of waveform chart in this edition. how to add that tool to microsoft visual basic editor?
ReplyDelete
27.
12 de 16 5/8/2013 16:41
Microcontroller Projects: Two-Channel PC Based Oscilloscope USB http://www.circuitvalley.com/2011/07/two-channel-pcbased-oscilloscope...
hello
can i replace the mcp6s91 with another one
plz give me example
ReplyDelete
Replies
1.
Gaurav ChaudharyOctober 8, 2012 at 5:03 PM
MCP6S91 is not directly replaceable from any other device, ofcourse there are lost of PGA available in the
market but to use them you need a little change in the software too. and pinout may also be different.
Delete
Reply
28.
fazyNovember 12, 2012 at 2:10 AM
Hello!
Thanks:
Peter
ReplyDelete
29.
Himanshu SharmaJanuary 18, 2013 at 12:15 PM
Hi Gaurav,
I read your project of Two-Channel PC Based Oscilloscope USB. I have question below about this:
ReplyDelete
30.
MadMacsFebruary 16, 2013 at 6:28 PM
ReplyDelete
31.
Azmir RahimFebruary 28, 2013 at 6:13 PM
Hello Sir,
can you give me the coding for this microcontroller .... email me rimza19@yahoo.com
I will glad if you help me... ^^
ReplyDelete
32.
nithinMay 14, 2013 at 1:51 PM
hello sir i m in urgent need of this project. can i get it from u at the earliest.
ReplyDelete
13 de 16 5/8/2013 16:41
Microcontroller Projects: Two-Channel PC Based Oscilloscope USB http://www.circuitvalley.com/2011/07/two-channel-pcbased-oscilloscope...
33.
bedrockelectroMay 25, 2013 at 11:46 AM
Hi,
nice project but there a problem while installing software it says it says version of tabcl32.ox is outdated and while
doing setup it says runtime error setup not sucessfull can please send an email about this at
Bedrockelectro@gmail.com
ReplyDelete
34.
bedrockelectroMay 25, 2013 at 11:50 AM
ReplyDelete
Add comment
Load more...
Donation
Labels
Meters (6)
Programmer (5)
Robotics (1)
14 de 16 5/8/2013 16:41
Microcontroller Projects: Two-Channel PC Based Oscilloscope USB http://www.circuitvalley.com/2011/07/two-channel-pcbased-oscilloscope...
Tutorial (1)
Total Pageviews
Acesso Negado
Accesso ao site/pagina:
http://www.facebook.com/plugins/likebox.php?h
Followers
Blog Archive
2012 (10)(1)
October
September (4)
March(18)
2011 (2)
February (3)
December (3)
November (2)
September (2)
August (4)
July (3)
60 Mhz Frequency Meter / counter
Two-Channel PC Based Oscilloscope USB
Pickit 2 clone The Universal Microchip PIC
June (1)
Progra...
May (1)
April (2)
About Me
Gaurav Chaudhary
I m a Electronics/Software Design Engineer
From Dehradun. Anybody have doubts in
electronics system design and software
system design may ask questions any time
15 de 16 5/8/2013 16:41
Microcontroller Projects: Two-Channel PC Based Oscilloscope USB http://www.circuitvalley.com/2011/07/two-channel-pcbased-oscilloscope...
16 de 16 5/8/2013 16:41