Electronic – arduino – Visualize the Arduino PWM’s output by means an oscilloscope

arduinooscilloscopepwm

I'd like to visualize the PWM signal from an Arduino Uno board with an oscilloscope.

I'd like to use this layout:

enter image description here

Is this a safe connection?

In other words, might I have problems because the oscilloscope and tha PC's PSU share the same earth ground?

I need to connect the Arduino to the PC by USB cable because I need to run software from the PC to the Arduino.

Update:

I've connected the oscilloscope and it works fine.

When I change the duty cycle percentage (from 0% to 100%) in Matlab/Simulink I can see it directly on the oscilloscope.

update

Best Answer

Yes, this is exactly how the equipment are supposed to be connected.

Earthed/grounded PC, earthed/grounded scope.

Safest for you and the probed equipment, there is no danger of damage.

Even better if both the PC and the scope are connected to same dual wall socket or same power strip, so it can be sure that they are grounded at the strip or wall socket, instead of long wires within the wall if they are on separate wall sockets. It also guarantees that they are powered from the same mains fuse and mains phase.