arduino oscilloscope


If you hook this ground lead up to the wrong point in your circuit, you can block your circuiting block your scope, bang, and it really is a big trap for young players and I’ve mentioned it before, but they wanted to know exactly under what circumstances that could Happen, if I could do some diagrams to explain it and things like that, well glad you asked let’s, try and sort it out so what’s actually causing the problem here well, it’s to do with the fact that the BNC connector, the outside ring of the metal outside Ring of the BNC connector on almost all benchtop oscilloscopes, like this are what’s called mains earth, grounded their mains earth reference. In other words, this metal shell, on the outside of the BNC, is connected directly via a very low impedance path, dead short through to the mains earth, on the back of the oscilloscope on the ISC connector and hence through to the mains earth in your system. So if I’ve got a power, cord here’s, an IC power cord is plugged happens to be plugged into the same power board as this oscilloscope it doesn’t have to be. It can be on the opposite side of the room, the opposite side of the house or factory or whatever the mains earth will be common and tied together throughout the whole system. So I’ve got my multimeter here, set to ohms let’s, make sure we probe the right thing: I’m going to probe earth the center earth, pin there and I’m going to probe that B and C and there it is not 0.

9 ohms it’s effectively a dead short there’s. Some there’s some DC resistance in there, but it’s a very low resistance path effectively. Well, it is a dead short through two mains earth and that can be problematic as I’ll, explain and because that outside shell of the BNC connector is connected directly through to your earth. Pin here you’re going to get the exact same response on your earth, pin there it is it’s a dead short look at that and because it’s a very low impedance path. This path is capable of actually carrying a lot of current. If you hook it up to the wrong point, and it can do a lot of damage this little ground attachment lead is probably the weak link in the whole system, because the shield of the the coax going back in the internal connections all going back to mains. Oh that’s, very, you know very chunky bits of copper in there, but this is probably the weak system, so this is going to blow up or vaporize. If you attach this to the wrong point – and you have enough energy in your system, you can blow this probe apart. In your hand, bang, and just as an aside on any multi channel scope like this, be at 2 or 4 channel like this one. These both of the BNC connectors are shorted together, so there you go they’re, shorted together and through 2 mains earth. So if you’ve got your two probes, like this they’re, both connected to your Silla scope, these two grounds are shorted together.

You can’t just put these willy nilly anywhere in your circuit, because, if you put them to anywhere that is not the same voltage potential ie, both ground or both plus 5 volts or whatever, then, if they’re different potentials, you short out that thing here’s a power supply, I’Ll show you if I connect one ground, lead to the positive output, another one to the negative bang. I shot the output that can ruin your day. Don’T. Do it, and not only that if that particular point in your circuit that you’re shorting out has a large amount of energy in it, and you get a huge current through this by shorting it out. Bang, you can blow up your probes and sparks can fly everywhere. Real nasty stuff, so let’s try and take a look at this and figure it out. What’S happening on a diagram here. Please excuse the crudity of the model. Didn’T have time to build it to scale or to paint it. So what I’m going to show here is three different scenarios. This is scenario number one and I’m going to assume a single probe, not the dual probe thing. I showed you before that’s a different thing. We’Re talking about this mains earth referenced problem. So what we’ve got here is we’ve got a scope. Okay and it’s got the BNC connector here and it’s got the. I AC mains input connector going down to earth down here and note the different symbols – the shezzy mains, ER symbol here – is different to internal ground symbols that’s just a little aside, it’s not really important for the purposes of this, but, as you saw with the measurement Before that, BNC is shorted directly through to mains earth and it’s also shorter directly through to the alligator clip on your probe here or your crocodile clip whatever you want to call it now, here’s your widget, your circuit, that your probe in and it for simplicity, sake, Let’S say it has a positive rail and an internal ground rail as well, and various points in your circuit that you’re probing okay, now let’s assume that it’s battery powered or what’s called floating it’s completely floating.

It is not referenced in any way back to main zorth it’s, just isolated in its own little world, it’s, not connected to anything else. Now that means in this scenario here you can connect this alligator clip through to any part of your circuit. It can be connected to ground, could be connected to your positive rail or any other part of your circuit, and you won’t do any damage at all. Why? Because there’s no current flow there’s no way there’s no loop here, it’s not going to flow anywhere current, just can’t magically flow down that alligator clip through the circuit unless there’s a return path. If you’ve got a floating system like this there’s, no way the current can flow through there, so you can hook that alligator clip in a floating circuit to any point in that circuit and you won’t do any damage. What you will do is actually put. If you connect it through to this point here in your circuit, then you’ve mains earth referenced that point in the circuit. What does that mean? Oh, it just picks it if connected at the street. It means if it doesn’t it may not do anything. In most cases, it’s not going to cause a problem at all unless there’s some, you know you’re working, two audio circuits in this home and all sorts of things, but we won’t go in pretty much scenario: number one isolated, widget, you’re, working on completely safe to hook Up the alligator clip or the probe to anywhere else in the circuit and because the probe is connected to the tip of the probe is connected to your 1 Meg input.

Impedance on your scope, let’s not talk about times 10 probes, and things like that is a 1 Meg resistor you, the worst. Your going to do is put a 1 Meg resistor across any point in your circuit, usually not a big deal. You certainly can’t blow anything up, not a problem. Alright, let’s, look at scenario. Number two we’ve got one of these isolated main supplies or a plug pack. We’Ve got our 110 or 240 volt mains coming in here and there’s no earth pin we’ve only got our active and our neutral there and we’ve got a isolation: transformer 50, 60 Hertz and there’s physical isolation, electrical isolation between the primary and the secondary windings. So there’s no direct electrical path is just a little bit of capacitance really, but you know there’s no direct electrical connection, so it’s an isolated supply, so I’ve just pictured here, it’s a you know: half wage bridge rectifier, but it can be a switching power supply. Switching plug pack or a regular transformer based plug pack makes no difference if it’s got that electrical isolator supply and no earth no earth connection at all then it’s exactly the same as scenario number one. With our battery supply no different, you can connect your alligator clip up to any point and you’ll circuit, any rail anything and you’re not going to blow anything up, no turns going to flow, because current can’t flow DC current can’t flow through this transformer in any sort Of loop at all completely safe now these isolated plug packs pretty easy to spot, because they’ve only got the two pins on them active in neutral, there’s, no third earth pin, some of them might have a third earth pin just for mounting, or they might have it To connect through to the internal transformer as a safety, but they will still be isolated and if you’re unsure, if it does have that third pin measure it take, the output here, use your meter measure it between the ground, pin or both pins.

Just to be sure and the earth pin, if you don’t measure that direct short, then it’s an isolated supplier and that can be a switching type or the old fashioned direct transformer type and the other type might be one of these switching plug packs. Another dead, giveaway it’s only got the two pins, the active and neutral it doesn’t have the third pin going in there now here’s an interesting one. This is my dell notebook power supply and, as you can see, it’s got three pins on the mains input cord and it certainly has the earth pin on the connector so let’s measure it let’s see what we get. Look at that it’s 1k, instead of a direct short this one, for whatever particular reason is our only 1k and that that’s pretty down low, and that can ruin your day that I would classify that as quite low impedance, not as low as a dead short. Of course, but still you wouldn’t want to go probing in such a system with your oscilloscope. If you had your notebook you’re trying to repair your notebook and your repairing it from this, then well, you know: you’ve got that 1k through two mains earth I’d. Be disconnecting this when I worked on it, if I had to probe it live and power it directly from its battery, so it was completely isolated. Now, let’s, look at scenario. Number three what’s called a mains earth referenced power supply remains earth, referenced, product or mains earth.

Reference system it’s the same as before it might have an isolation transformer in there, but it has that third earth connection which shorts out the secondary side it’s almost always the negative line, but you know it doesn’t have to be, but it almost always is the negative Line is shorted out and could be shorted to the primary, so you lose that isolation there. So this is now connected through to this mains earth. Back here back at your power point in your, I swore in your office war in your lab, wearing whatever it’s all connected right back and then that is connected through to your negative terminal, and your negative terminal is connected up here so effectively. Your circuit ground is now almost always once again. It doesn’t have to be the negative point in your product, but it almost always is so that is not only just a common ground inside your product, it’s also reference to mains earth. Now, why is this an issue? Well, look what happens now if we connect this alligator clip up to this positive rail up here, you know how it wasn’t a problem before no current flowed no danger whatsoever. Well, what happens now this positive rail current can flow through here through the shield of your BNC, through the oscilloscope down through mains earth down here back through your power board back into your the lead, the IC Li coming into your product all the way through here And up through your ground, bingo, congratulations! You’Ve, just shorted! That point there to that point there with a very low impedance connection through that alligator clip that crocodile clip and your scope probe and what happens.

Bang it blows up, or you know if, if this rail up here has a lot of energy, can supply a lot of energy, you can vaporize your earth. Lady can explode in your hand, real nasty stuff if it’s, a real low energy thing where your product might just shut down and it’s, not inherently like not massively dangerous. If your power supply is not capable of actually delivering a lot of current, then while your product is short out, you power rail and it doesn’t blow up, but you see it’s not going to work anymore. Okay, so you want to avoid that so that’s. Why? When you’re probing around with a mains earth reference oscilloscope, like almost all bench oscilloscopes, are, if you’re dealing with a mains earth referenced product, be very careful where you put that alligator clipped that crocodile clip in your circuit, because, if it’s not at the same point, which Is equipotential is the technical term or the same potential equal potential in there as your ground line, you’re going to short out that particular ever a voltage, rail or a signal wire, or something like that it’s kind of blow up ruin your day. So there you go. That’S, what happens with a mains earth reference system? Beware now: let’s have a look at some bench. Power supplies here, you’ll note that any good bench power supply will have three output terminals, positive, negative and what’s, usually a green one, which is a dead giveaway which they call ground.

Okay, it might be call grant that’s, actually mains earth back on the mains input lead on this thing. So normally, if you don’t, join these together, if you know if you haven’t joined them together at all these power supplies are floating they’re completely safe. You hook up your positive negative like this to your positive and negative terminals, and you can power your circuit. You can probe around you’re completely safe, but if you strap these two terminals together, like on this power supply over here, you see a lot of them will come with one of these straps that allow you to strap the mains earth through to the negative terminal and That instantly turns that isolated power supply into a mains earth reference power supply and the product you’re powering. You need to be very, very careful where you probe with an earthed oscilloscope. Now, why would you want to join these together? I won’t go into the reasons because it has to do. It depends on the system, your your actually are designing and things like that, so I won’t go into it, but if they are joined together and you mains F reference, it beware, but I don’t think I can leave it there without giving you a bonus. One number four USB products and it can be other connections as well, not just USB, but USB is a common example. These days let’s say you have your widget and it’s battery powered okay, it’s, normally completely isolated and completely safe to probe any way you want with your oscilloscope, but once you connect the USB lead through to your computer you’re in deep trouble.

Why? Because the us, the ground, pin on the USB connector, is almost always connected unless you’re going to isolated USB, which are very rare and very specialized it’ll, be connected through to the ground point of your circuit in there, and then that lead will go back to your. The USB port on your computer down here, which will be connected through to the ground point on your circuit board in your processor and everything else, but you’re the ground point in your PC is also mains earth reference. Almost all pcs are – and it goes through two mains earth directly through – and you can measure that so bingo your isolated product has just become mains earth reference by the mere fact of connecting up that USB, cable and you’ve got that dangerous loop scenario happening again and You’Ve got to be careful where you pro, where you connect the alligator clip or the ground lead on your oscilloscope. If you connect it up here, bang you’ve, just shorted the whole thing out again. Beware now! I know you won’t believe me unless I practically demonstrate it. So it will we’ve got an Arduino compatible board here, in this case it’s the free Tronics 11 board and if you’re powering your little Arduino board from you plug your isolated plug pack, power supply, remember no mains earth pin and you’re powering. It then you’re completely safe because it’s, isolated or you’re pairing it from the battery completely safe, it’s isolated.

But if you take your USB cable here and it’s hooked up to my desktop computer here and we plug that in and we power our board there, it is it’s turned on repairing our board from our USB. What happens? We’Ve got our mains cable here, let’s measure mains earth and see what we get here’s the ground pin on our circuit. Look at that, not mine ohms! There you go because it’s got to go through or dicky stuff in the computer and things like it’s shorted to mains earth bingo. So you sweet little innocent Arduino board that you thought was isolated, has just become a real potential problem and if you try and probe around here with your oscilloscope or if you try to probe your circuit or your shield connected on to that with the with the Alligator clip on your crow probe and you put it anywhere other than that ground terminal is screwed you’re, going to short out the power supply the Arduino shut down it won’t blow up in your face, because the little power supply on the Arduino can’t generate. You know huge amounts of current and provide a large amount of energy, but it’s going to shut down short out your power supply. You might actually damage your power supply on your Arduino or you might damage your plug pack or something else. So that can be a real issue. Even if it’s battery powered you pern this thing from the battery or from the you it once you connect that USB lead up.

If instantly mains earth connected it you’ve ruined your day and don’t. Try this at home I’ll actually demonstrate it. We’Ve got our Arduino it’s working there’s. The LED is flashing away and it’s hooked up to our mains earth reference computer via the USB, and if I hook up the ground, lead to the ground. The earth lead on my oscilloscope up to the ground point on the circuit. No problem still continues to work. I can probe away everything’s safe, but if I connect this through to the power rail, the ground lead watch. This ready, don’t try this at home bang and you might be able to hear the computer reboot because the device is shut down. I’Ve just I’ve just shorted out my power supply nasty and if you do that to a high energy circuit, you can blow the thing up blow up your scope, probe nasty. But if I do the exact same thing again, powering it from the isolated plug pack – it’s, not mains earth referenced anymore, so I can plug my ground lead on to the ground and it’s fine, of course, and I can plug my ground lead anyway else on the Circuit that’s the same point that was causing it to short out before and it doesn’t do anything because this board is floating it’s, not it’s, isolated, it’s, not Maine’s earth reference. I can put that ground lid on any point in my circuit: that’s not going to affect it.

So what do you do if you’ve got one of these mains earth reference products and you can’t avoid it being Maine’s earth reference and you want to probe it safely? Working on you know, a high voltage, high energy switch, my main switch mode power supply, and you want to safely probe everything. Well, the way to do it is with a a high voltage differential probe and I’ll show you some examples of this here’s, a beak, a precision PR 60 Pro Braley talking. You know three hundred and something dollars for these are type of probes and, as you can see it converts, the single ended BNC input for the oscilloscope through to an isolated differential probe system like this. So you can input positive and negative anywhere in any product at all, mains are referenced or not, and there and be completely safe, and usually these probes are actually high voltage probe, so they actually have a times 10. So this one’s switchable between times 10 and times 110 uation. So it actually replaces your traditional times. 10 single ended, oscilloscope probe, but now is differential, completely isolated and they can be isolated to our. You know several their. You know hundred many hundreds of volts or several thousand volts in this case, our common mode, plusminus, 700 volts and the differential can be plus minus 700 volts as well and there’s other ones here’s an Agilent one same thing: you know single ended, oscilloscope input through to A differential probe output there it is that’s a high 100 megahertz high voltage, differential probe and there’s lots of other ones on the market.

There’S lacroix one, you know there’s a whole bunch yockeygal make them every man. This dog makes this high voltage differential probes and I highly recommend you are pick one up. It should be pretty much your standard kid, especially if you’re working on switch mode power supplies or something like that, they’re a little bit on the expensive side, but safety first, and there are other ways to get around the issue as well, and that is to use A mains isolation transformer like one of the ones shown here it. Basically it does exactly what it says: it isolates. The mains are 240 volt in earth, 240, volt out isolated and that’s designed to power your product under test, and it tells you here isolate test equipment. Like crows or protect, switch mode power supplies and things like that, but this can be used to isolate your oscilloscope so that your oscilloscope is not means earth reference anymore, but that’s not really the recommended way to do it. Your oscilloscope should remain for safety reasons: a grounded, a mains earth grounded product, so you should use the isolation transformer to power, your particular product under test – and this can be an essential bit of kit in any art test or repair lab. And if you’ve got a USB product – and you want to isolate that – you don’t want your USB cable to cause any issues. Then you can get one of these rather an obscure product, a USB isolator there’s, not too many of them around, but that basically Goods got a transformer in there with some high speed to what couple not only the power lines, but the data lines as well at Full USB our speed, these things aren’t particularly, are cheap.

There are very fairly nice thing, but it isolates us being USB out. The output is completely isolated data and power, so there you go. I hope you found that interesting, so just be careful and watch out for mains earth reference systems next time, you’re probing your oscilloscope, you don’t want to blow up your oscilloscope. You don’t blow up your probe and most of all, you don’t want to blow up yourself.


arduino oscilloscope Video







arduino oscilloscope news








arduino oscilloscope Social






See the world through the eyes of this camera-equipped, snake-like robot.
safe image.php?d=AQB2kdm3zOD71KQX&w=720&h=720& content%2Fuploads%2F2019%2F09%2FUntitled 2 3 - arduino oscilloscope

This 3D-printed prosthesis uses computer vision to adjust its grip depending on the object.
safe image.php?d=AQD dQbotzfS6mLl&w=720&h=720&url=fbstaging%3A%2F%2Fgraph.facebook - arduino oscilloscope
Dpu8nRwD normal - arduino oscilloscope
Sat Mar 23 19:09:26 +0000 2013

RT @Keysight_UK: How to Make a Mini #Oscilloscope at Home. via @arduino

Visualizzazione della forma d’onda PWM e della comunicazione SPI di Arduino MKRVidor4000

Davide Anselmi photo


Mortymore photo









(Visited 18 times, 1 visits today)

About The Author

You might be interested in

Comment (20)

  1. Very useful, indeed !! My (newbie ?) question would then be: why the heck ground the scope ?? Why not using a battery-powered one (Agilent 6000, Tek TDS3K,…), or even power a bench scope with an isolation transformer ?? Or the other way around: why/when would it be interesting to have the scope earth-grounded ?

  2. Hello, if I use a AC generator 110V/4500W and plug an UPS into the generator and then provide power to my projects, should this provide enough inference when using my Rigol 1054Z Oscilloscope?

    Thanks for this awesome video that is so greatly appreciated!!!

  3. Our professor made us watch this exact video in my intro to EE class before we were allowed to use oscilloscopes. It feels weird stumbling on this video a few years later.

  4. What do you think.about pocket oscilloscope for minimum use for working on a tube radios ?,mine was very cheap little thing ,and I will have to learn how to use it ,but I seen other techs use them.and they seem handy .just wonder what you think.

  5. If you need to make a voltage measurement between two points in a circuit, you can use two scope probes that are ground reference, then use subtract measurement on oscilloscope to get the voltage difference. Saves money on differential probes and is a simple and effective solution.

  6. damn! I didn’t even think the USB would short right to earth ground, tested even my laptop charger and just as I worried, DC plug on negative shorts right to Earth pin on AC side, little over 1Ω resistance. Good think that I should be aware of, and no teacher ever taught me that lol. Not that I’d ever ‘try’ to short it, but now I know to really not short it.

  7. Yesterday i experienced on my own. I stupid idiot connected a probe ground to a output of a rectifilter in a switching power supply (approximately -105V dc ref. in my country) . Very nice fireworks.. The input EMI filter in psu has blown out. Stupid fuse is fine, thanks to not polarised (not grounded plug) the LIVE and NEUTRAL was swapped and the fuse is of course just on LIVE rail..

  8. Hey guys newbie here 🙂 I have a rigol on its way to me. My first little play with it was to see some audio play through it. I have a bunch of synthesizers and i also have abelton computer software which generates digital synthesisers and effects etc.
    This is what i want i want to dd, for example I have a ipad, macbook laptop , windows desktop pc and analog synthesiser..

    Ok ill start with ipad. Since the ipad is battery powered its safe to probe the aux output of the ipad and see the waveforms of audio. but if the ipad is plugged into the wall does this mean its not safe to probe the aux cable. I want to do this with all my platforms above.
    I have to computers which both have external soundcards. Is it safe to use a cable going straight from soundcard to oscilloscope using a bnc to xlr, rca 3.5mm audio jack etc

    Sorry guys for any confusion, newbie here just want to probe all my music sources 🙂 any help much appreciated.


Your email address will not be published. Required fields are marked *