Instructables
Picture of DIY - USB OSCILLOSCOPE IN A MATCHBOX
I present a "BEST OF CLASS", "Full-Featured"  DIY-USB OSCILLOSCOPE which is  "Truly DIY".

My aim is to provide a cheap  Digital-Storage-Oscilloscope for Students,  Budding Engineers and the Hobbyist.

This USB-Oscilloscope could be part of the laboratory equipment in educational establishments.

Build this DIY-Oscilloscope for just $15

I wish to acknowledge the inputs from the following designs which have led to this optimized solution:

DPScope SE - the simplest real oscilloscope/logic analyzer on the planet, by womai, http://www.instructables.com/id/DPScope-SE-the-simplest-real-oscilloscopelogic-/

DPScope - Build Your Own USB/PC-Based Oscilloscope,by womai
http://www.instructables.com/id/DPScope-Build-Your-Own-USBPC-Based-Oscilloscope/

LCS-1M - A Full-Featured, Low-Cost Hobby Oscilloscope,by womai
http://www.instructables.com/id/LCS-1M-A-Full-Featured-Low-Cost-Hobby-Oscillosc/

PC SOUND-CARD SCOPE INTERFACE FACILITATES DC RESTORATION, by me
http://www.instructables.com/id/PC-SOUND-CARD-SCOPE-INTERFACE-FACILITATES-DC-RESTO/

Universal Analog Hardware Testbench, by me
http://www.instructables.com/id/Universal-Analog-Hardware-Testbench/

Analog Experiments Anywhere,by me
http://www.instructables.com/id/Analog-Experiments-Anywhere/

Two-Channel PC Based Oscilloscope USB, by Gaurav Chaudhary
http://www.circuitvalley.com/2011/07/two-channel-pcbased-oscilloscope-usb.html
 
Responding to comments and suggestions from many members :
 
I am sharing the micro-controller fuse .Hex file for the dsPIC30F2020.
 
The Host PC software has been written in both 'Visual Basic.Net' and open source 'Python' providing a cross-platform GUI based solution for both  Windows and Linux platforms.

 
Remove these adsRemove these ads by Signing Up

Step 1: Specifications

Picture of Specifications
Input
No of Channels Two
Analog bandwidth (Large Signal), 0.30/0.30/0.70 MHz ,For Gain 1/2/5
Analog bandwidth (Small Signal), 12/6/7 MHz ,For Gain 1/2/5
Input impedance 1 Meg Ohm
Input connection  3 mm Audio Jack
 
Vertical Scale 
+12.5V to -12.5V , Gain 1
+6.25V to - 6.25V, Gain 2
+2.50V to -2.50V,  Gain 5
 
Offset
 -12.5V to +7.50V ,  Gain 1
 -6.25V to +13.75V, Gain 2
-2.50V to +17.50V,  Gain 5
 
Sampling Rate  
1 Mbps to 20  Mbps ,1 uses/sample to 0.05usec/sample ,ETS  Mode (repetitive signals)
10bps to 500 kbps, 100ms/sample to 2uses/sample , Normal Mode
 
Trigger
Ch1 / Ch2 / Auto

Trigger Polarity
Rising / Falling edge

Trigger Range
+12.5V to -12.5V, Gain 1
+6.25V to - 6.25V, Gain 2
+2.50V to -2.50V,  Gain 5
 
Display Modes
Ch1 + Ch2  vs. time 200 Samples each
Ch1 vs. time 200 Samples
Ch2 vs. time 200 Samples
XY Ch1 + Ch2 vs. time 200 Samples each
DFT Ch1 400 Samples
DFT Ch2  400 Samples
 
Capture Modes 
Single / Repeat / Store
 
Save Modes
Data to CSV Fig to multiple formats
 
PC Software
VB.Net 2.0  / Python 2.6/2.7 Virtual Com Port 115200 bps
 
Power Supply
USB +5V , 150 mA
1-40 of 57Next »
nirdla288 days ago

Hi! I have read about your project and it is amazing! I wanted to make one of these too so if you have time, maybe you could send me an email along with the necessary information needed to create this project. My email is aldrinsagum18@yahoo.com Thanks! Have a nice day!

gmeadows311 days ago

Hi again,

Ajoy, you kindly sent the files for your scope, I wonder if you could also send the gandafit files as I would like to build an SMD version if possible.

Thank you

gary.meadows@ntlworld.com

ajoyraman (author)  gmeadows310 days ago

Gmeadows3, Sorry I do not have the files from gandafit.

While considering an SMD version it is still important to keep the PIC micro-controller as a DIP package because it needs a heat-sink.

I would recommend the version from JHx hari who has created a wonderful PCB with the PIC and some minimum non SMD components on the Top and all possible SMD components on the bottom. This appears an ideal allocation.

I built this version and am attaching two representative images. The only small change done is locating the reset switch in some spare space on the Top.

Many thanks to JHx hari who has kindly shared his design files.

Dsc00127.jpgDsc00128.jpg
Hi Ajoy,
thanks once again for the response. I agree that this version seems to be the best. It was just that I thought I could get a one sided board solution which I feel more confident in making, and the pic could still remain a DIP package.
I will first have a go at trying to create a single side PCB from the schematics but will attempt this version if I am unsuccessful.
Thank you for all your help and the files, I have been in the electronics business as a test and repair eng for many years and have used some very high end scopes in that time, yet I have never had one of my own. Now I am retired with time on my hands (but little money) I am eager to rectify the situation. This will be a very pleasing project for me.

Best wishes

Gary
gandalfit made it!5 months ago

I built a mostly SMD version of the scope. As can be seen from the image I made a few rookie mistakes. Apart from this the scope is working very well.

I use it for debugging other test setups and I am collaborating with some students that might use it for their projects.

If anyone are interested in the diagram in Eagle format or the gerber files I am happy to share them.

Thank you very much for the project.

board.jpg
hi,I would very much appreciate your files for the neat scope version if you could send to gary.meadows@ntlworld.com. Thank you in advance. Gary
ajoyraman (author)  gmeadows311 days ago

I have also sent you versions from JHx hari & Heartman!

yaly12 days ago

how much is its resolution ?

ajoyraman (author)  yaly11 days ago

The resolution id 8-Bits.

DougM112 days ago

I am very interested in building this oscilloscope. Would you be able to send me the plans? Thank you! dougamosher (at) gmail.com

ajoyraman (author)  DougM111 days ago

Done and thanks for the interest!

aaaaoooo12 days ago

Very good build for low cost , will help many engineers alike

Heartman13 days ago

Hi,

some news about this awesome project.
I worked in collaboration with Ajoy to design a new interface.
In the same time, he added some improvements also to polish the project,
and make it as a professionnal tool.

You will find an archive including the PCB, the Windows software, and the PIC firmware files, on my blog, HeartyGFX.
It's a French blog, but you have a translation button that will help you to follow, in your native language.

Here is some screen captures showing the new interface, and the AJScope in the 3D printed box.

Ajoy, again many thanks for this great tool very useful for the electro-hobbyist community.

Boitier_dspicoscope_2.pngDSPICoscope_Windows_Software_01.pngDSPICoscope_Windows_Software_02.pngDSPICoscope_Windows_Software_03.pngDSPICoscope_Windows_Software_04.png
ajoyraman (author)  Heartman13 days ago

Thank You! Heartman for the fantastic GUI and your help in ironing out the scope functionality. Collaborating with you has been a wonderful experience.

dhmarkley21 days ago

I would love to build your matchbox oscilloscope! Can you please forward me the plans? dhmarkley (at) gmail.com

ajoyraman (author)  dhmarkley21 days ago

Sent two additional PCB deigns that are more professional courtesy JHx Hari & Heartman Heartygfx.

Hi Ajoy,

I would like to build matchbox oscilloscope. Can you please forward the design files to naidu.smartprojects(at)gmail.com.

Thanks

Naidu

Dear Ajoy, may I have the SMD version of the PCB please? I really want to make one. My email is: d.q.a.nguyen (at) gmail.com

Thanks so much and best wishes!

Dave

ajoyraman (author)  mariocaptain21 days ago

Sent the files, enjoy!

Ajoy, it's very kind of you. I really appreciate the advice & guidance.

Dave

GChoules21 days ago

Ajoyraman: Thank you for this very interesting project. I am a hobbyist, just learning electronics, and I think this could be very useful next project for me. But can you tell me the difference between this oscilloscope and the "USB Student Oscilloscope" I saw on your website? The other appears to be more recent, but is it more capable?

ajoyraman (author) 5 months ago

JHx who has built a smd version of this scope says:

"i build your matchbox osciloscope and it worked ok from the begining. thank you."

He uses it as a automotive diagnostic tool.

The Gerber files are available on request.

Thanks JHx.

IMG_20140318_093612.jpgIMG_20140318_093844.jpg
m2k2 ajoyraman1 month ago

I'd appreciate if you could send those files to m2k2@raz-dva.cz.

Thank you very much!

ajoyraman (author)  m2k21 month ago
Great ! You would be the 9th to build this scope. Files sent. Best wishes.

Hi, can I also give it a try?
I'd appreciate if you could send those files to sabotenboy_london@goo.jp.

Thank you very much!

w_ingel ajoyraman4 months ago

I would love too a copy of your GBL files! willy1142@gmail.com

Thanks!

I would love a copy of your GBL files! paul@paulkruger.us

ajoyraman (author)  stuffdone4 months ago

I have sent you the Gerber files. Both my design and those kindly shared by JHx for the SMD version.

This project has now been successfully built by several members!!

Just in case someone needs to view gerber give this open source viewer a try.

http://sourceforge.net/projects/gerbv/

Heartman1 month ago

Hi,

I made it!

Ajoy, you did an awesome work.
I redesigned the PCB, double side, easy to do with the toner transfert methode.

It use an external TTL>USB converter,
I tried different converters, all works as well. the PCB size is as a credit card.

The project files to make the PCB, will be available on my blog, soon.

Regards,

DSPICoscope_Final.pngDSPICoscope_plugged.pngDSPICoscope_PCB_01.png
piotreeek2 months ago

First of all I'd like to congratulate on a wonderful and simple project.

I have a question, though - how do you program your dsPICs? I have been using AVRs so far, so I don't have experience and knowledge needed and I can't find a suitable programmer and a decent piece of software. Please help or at least point out where to search.

I have designed a nice 5x10cm board with mostly SMD parts in Eagle that I can share if anyone wants it.

ajoyraman (author)  piotreeek2 months ago
Thanks for the good words which are a source of encouragement!

I use a pickkit2 for programming the dsPic. Many pickit2 clones are available on the net.

Great work on the PCB. Once you populate the SMD board I request you to feature it with pictures under the "I made it" section. You could upload the files or send them to me for sharing with others.

Hey!

I got a no reply message (time out) from the microprocessor.

I am pretty sure that the board (design, connections, soldering) are okay.

The microchip is programmed well and I didn't change the fisebits.

I double-checked the voltages on the legs of microprocessor.

Any recommendations? Do i need to set the baudrate of virtual com port or 9600 is fine? What to check first?

I checked the FTDI communication, by brideing the Tx and Rx leg on the dsPIC side - it works properly.

miguel75 made it!2 months ago

An interesting project, thanks for sharing.
I've also done redesigning the pcb to adapt it to my needs. And I'm recomentando this instructable to my friends.
Congratulations Mr. ajoyraman

This is my version of this scope, but has a few beginner mistakes I have to correct.

2014-05-31 12.57.28.jpg2014-06-01 21.11.01.jpg
ajoyraman (author)  miguel752 months ago

Thank you miguel75 for building this version with non-smd components!

miguel75 also reported that he was able to run the Python GUI successfully.

Certainly you can use the python version, but the default installation in windows lacks many modules are needed. I comment that I had to install in case anyone needs them.
Default install: python-2.7.7.msi
Additional moduls: pyserial-2.7.win32_py3k.exe
numpy-1.5.1-win32-superpack-python2.7.exe
matplotlib-1.3.1.win32-py2.7.exe
pyparsing-2.0.2.win32-py2.7.exe
python-dateutil-2.2.win32-py2.7.exe
numpy-MKL-1.8.1.win32-py2.7.exe
six-1.6.1.win32-py2.7.exe

After installing this, is when I could run "Aj_Scope2_V2.7.pyc"

ajoyraman (author) made it!4 months ago

I built another piece of hardware based on the smd version PCB files provided by JHx.

1. The unit is very compact.

2. It functions as well as the prototype unit.

3. JHx has intelligently placed all standard components (PIC microcontroller, USB connector, Cylindrical capacitors) on the top side & all the smd devices (FDTI chip, PGAs, 3.3V regulator) on the bottom side. All major soldering is only on the bottom.

4. It's very easy to fabricate.

The PCB design files are available on request.

Aj_hari.jpg
paulckruger4 months ago

How about this little gem?

http://www.futurlec.com/Mini_USB.shtml

It is a complete controller board using the USB chip that is used in this project. $13.00

ajoyraman (author)  paulckruger4 months ago

Thanks for the gem!

The design files shared by JHx who has built an SMD version has been done in a professional way. I can send them to any member who desires.

Eternal6610 months ago
thats cool, i think using analog buffer in input will be helpful and handle high voltage in input!
1-40 of 57Next »