element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • 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
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • 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
Personal Blogs
  • Community Hub
  • More
Personal Blogs
Nico teWinkel's Blog Learning to 'scope with Multicomp
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: ntewinkel
  • Date Created: 20 Mar 2022 1:00 AM Date Created
  • Views 1546 views
  • Likes 13 likes
  • Comments 6 comments
  • oscilloscope
  • MP720015
  • multicomp
Related
Recommended

Learning to 'scope with Multicomp

ntewinkel
ntewinkel
20 Mar 2022

I recently received a Multicomp MP720015 from element14 as part of a contest prize. It's a very nice little unit, but I know nothing about oscilloscopes so it's a learning curve. I mean a learning opportunity Smile

Luckily for me, baldengineer was kind enough to produce a few videos and blogs about the subject! Thank you James! your tutorials are exactly what I needed Slight smile

So I pulled out an extra Arduino Uno I have here to get the very first basic pattern to test: the Blink sketch.
(I don't recall if I had to speed up the blinking to get this result)

image

Turns out that gives a nice easy square wave (? is that the term?) to look at. Yay it works!

Then I tried with AnalogWrite, as James did in his video, and all I got was muckymuck garbage to look at. hmm... why?
I gave up that evening as it was getting late, but later realized it was likely because I was using pin D13 which has the built-in LED on it. I specifically used it so I could see the LED at the same time as the scope result, but I think it was affecting the output voltage levels. Yes, I did press the auto-set button a few times without luck.

So today I changed the sketch to use pin 9, and success! I can now see how PWM looks:

image

Scope showing Arduino AnalogWrite

I haven't had any luck trying to scope fading with analogWrite, and I don't know if that's a limitation with the scope or with the user :D

Fun start though.

I also tried out the DMM (multimeter) functions, and it appears to be nice, stable, and accurate. It does take much longer to start up than my regular multimeters, so for quick one-off readings I'll likely just use those. For more involved work I can see it being useful especially when also using the scope functions.

-Nico

  • Sign in to reply

Top Comments

  • baldengineer
    baldengineer over 3 years ago +2
    Heads up, pin 13 does NOT support analogWrite(). If you go peer inside of the function's code (line 276), you'll find that on non-PWM pins, it just turns the pin ON or OFF based on the value you passed…
  • aspork42
    aspork42 over 3 years ago +1
    Awesome! Looks like a cool scope!
  • Jan Cumps
    Jan Cumps over 3 years ago +1
    > haven't had any luck trying to scope fading with analogWrite You should see the high part of the signal go narrower and broader, when the analogWrite() vallue changes. The PWM frequency stays the same…
  • DAB
    DAB over 3 years ago

    An oscilloscope can be lots of fun, as is the world of analog devices.

    There is a much larger world out there than just ones and zeros.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • baldengineer
    baldengineer over 3 years ago

    > I haven't had any luck trying to scope fading with analogWrite, and I don't know if that's a limitation with the scope or with the user.

    It depends on how fast you change the analogWrite() value in code. If you put the analogWrite into a loop, across multiple triggers you should see the pulse width changing.

    for (int x=0; x<255; x++) {
      analogWrite(9,x);
      delay(1); // see difference with and without
    }

    With the 1 millisecond delay, you'll never see the PWM change on the screen (in a single acquisition.) Without, you *might* catch it. Either way, you'll see the pulse width change as the scope re-triggers.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Jan Cumps
    Jan Cumps over 3 years ago

    >  haven't had any luck trying to scope fading with analogWrite

    You should see the high part of the signal go narrower and broader, when the analogWrite() vallue changes. The PWM frequency stays the same.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • aspork42
    aspork42 over 3 years ago

    Awesome! Looks like a cool scope!

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • ntewinkel
    ntewinkel over 3 years ago in reply to baldengineer

    > "Heads up, pin 13 does NOT support analogWrite()"

    Aaahhhhh. ok that makes a lot more sense now - I wondered why the LED would make that big a difference. I forgot about that detail of not all pins supporting PWM.

    Thanks for the clarification Slight smile

    edit: you know, the funny thing is that for pin 9 I specifically verified that it was capable of PWM (checking for the ~ as you mentioned), but I totally failed to think of looking at D13 for that detail Face palm

    • 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 © 2025 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.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube