element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products & Partners
    Products & Partners
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino Projects
  • Products & Partners
  • Arduino
  • Arduino Projects
  • More
  • Cancel
Arduino Projects
Blog A simple DIY Oscilloscope with Arduino Uno and Mega
  • Blog
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • More
  • Cancel
  • New
Join Arduino Projects to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: e14 Contributor
  • Date Created: 26 Dec 2014 11:05 AM Date Created
  • Views 40131 views
  • Likes 20 likes
  • Comments 79 comments
  • mega
  • ardbeginner
  • tft
  • oscilloscope
  • uno
  • arduino
Related
Recommended

A simple DIY Oscilloscope with Arduino Uno and Mega

e14 Contributor
e14 Contributor
26 Dec 2014

My DIY Oscilloscope, how i got my signal image

 

Content :

- Description

- Screenshots

- Video

- Credits and links

 

Descriptions

 

I am experimenting with RF and IR signals in various frequencies and had some trouble with the receivers and needed to see what kind of signal i was receiving.

I cannot afford a real oscilloscope but i knew about the older Arduino oscilloscopes.

 

After trying many different versions of code and tutorials, I was unable to get a single one to work, and all the tutorials and guides around was 2-3 years old.
Not sure if it is the IDE or the actual hardware that has changed in such a way that it didn't work anymore.

 

I finally found a working oscilloscope from a Japanese website, (linked below) and a working TFT screen library,

meaning i could read the various signals received.

 

Clearly the limitations are 0-5v but that is fine, what i needed to know is either wave type and frequency, and this is sufficient.
It also gives me an indication of the amplitude which is just a nice bonus.

 

But what I'm most happy with, is the two channel feature, i often use the second channel as a reference point to be able to

differentiate the main channel on the screen.

 

 

Some screenshots..

This is the .96" OLD test, single wave test imageimage

 

 

 

imageimageimage

2.4" TFT screen on the Uno,    two right images same screen on a Mega.

 

 

A youTube vidoe i made on the experience.

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

 

 

 

Credits and Links :

 

My compilation of the Oscilloscope and TFT library  ( what you see on the video and images ) :

https://dl.dropboxusercontent.com/u/19761809/arduino/Vaupell-Oscilloscope.zip

 

 

Original Oscilloscope link (code by : Noriaki Mitsunaga ) :

http://n.mtng.org/ele/arduino/oscillo-j.html

 

 

Original TFT display link ( TFT shield library source ) :

http://www.smokeandwires.co.nz/blog/a-2-4-tft-touchscreen-shield-for-arduino/

 

TFT library :

Library : https://github.com/Smoke-And-Wires/TFT-Shield-Example-Code

Attachments:
Vaupell-Oscilloscope.zip
  • Sign in to reply

Top Comments

  • e14 Contributor
    e14 Contributor over 11 years ago in reply to 4ringfan +2
    True, I highly recomened if using ribbon cable, buy a roll, and add the ends yourself, much much cheaper. I usually buy them home in 10 meters at a time. But, I try to use cable as little as possible,…
  • 4ringfan
    4ringfan over 11 years ago +1
    I just received a LCD TFT shield that I had ordered for no particular reason. Now I'm going to have to play with it. Thanks for the incentive!
  • e14 Contributor
    e14 Contributor over 11 years ago in reply to e14 Contributor +1
    Nope just one of them. The problem was the Screen it took up all my pins on the arduino uno. You could do a messy workaround, either by soldering something onto the SD pins (since were not using them anyway…
  • jc2048
    jc2048 over 10 years ago in reply to e14 Contributor

    The buttons work by changing the voltage that is read by input pin A3 on the Arduino.

     

    With no buttons pressed, the voltage at A3 is 4.69V.

     

    If you press SW10 (Menu) the voltage goes to 0V. [The switch connects the input to GND]

     

    If you press SW9 (CH1 range down) you have a potential divider with 100 ohms up to 5V and 10 ohms down to GND. The voltage = 10/(100+10) * 5, which is 0.45V

     

    If you press SW8 (CH2 range down) you have a potential divider with 100 ohms up to 5V and 20 ohms [10+10] down to GND. The voltage = 20/(100+20) * 5, which is 0.83V

     

    And so on.

     

    Here are all the voltages

     

    SW10 Menu              0
    SW9  CH1 range down    0.45
    SW8  CH2 range down    0.83
    SW7  TIME/Div (slow)   1.43
    SW6  TRIG_MODE         1.87
    SW5  Send              2.58
    SW4  TRIG_MODE         3.03
    SW3  TIME/Div (fast)   3.59
    SW2  CH2 range up      3.9
    SW1  Ch1 range up      4.26
    SW0  Start/Hold        4.56
    No button pressed      4.69

     

    I think I've calculated them correctly, but you might want to check them again.

     

    To test your circuit, put a meter on A3, press each button in turn and check that the voltage is close to the value above. There will be a bit of difference, because your resistors only have a certain tolerance, but it should be fairly close. If any are a long way out you might have a wrong value resistor or a bad connection.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • e14 Contributor
    e14 Contributor over 10 years ago in reply to jc2048

    in Romania, the frequency of the mains is 50Hz and the voltage is 230Vac with an error of +-6%.

    Every time i measure it's between 227-230Vac.

     

    recycler66 i worked on it last evening, the buttons seem do do something..i did't figured it out yet, i need a pwm generator made wit an arduino probably, to really understand what do they do.

     

    Also when you press for example channel down it drops the signal to the 0(Gnd) but it doesn't change the values shown in the top right corner of the screen (volts/divission for example) when i press the volts/divission button.

     

    I'll figure it out(i hope) this weekend;))

     

    Cheers guys, i like this community.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • jc2048
    jc2048 over 10 years ago in reply to e14 Contributor

    Is the period of the sine wave the same as for the mains in your locality?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • jc2048
    jc2048 over 10 years ago in reply to e14 Contributor

    I'd say ohms [the potentiometer is labelled as being 10k].

     

    It gives about 3mA through the chain, which is reasonable, but when you press the Menu key it takes 50mA from the supply which is a bit high. You could try multiplying all the values by 10 - that would reduce the current draw whilst leaving all the voltage levels the same [so you wouldn't need to change the software]. Go too far, though, and you'll have problems with noise giving false detection of the switches (which might be the reason that they ended up with those values).

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • e14 Contributor
    e14 Contributor over 10 years ago in reply to e14 Contributor

    Also the difference in waveform (supply vs usb cable) i fixed it last night...it's because some analog pin it's not correctly defined and used.

     

    Mihai Arald.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
<>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube