mrusk
January 9, 2023, 7:09pm
1
Hello everyone,
Using DigitalWrite function on a digital output pin my Arduino Uno board generates a Square wave between +2.5V and -2.5V. (reference GND)
I would like to create a Square wave between 0V and + 5V.
Why the Square wave have 0V mean value instead of +2.5V?
post a schematic.
post an image of your project.
and
Post the code in code tags.
Please.
How were the measurements performed?
1 Like
You've got your oscilloscope set to AC coupled.
This. An Arduino UNO can not output any value going below 0 Volts (Ground). If you set your scope's vertical input(s) to DC coupling you should see a wave form between 0.0 and about 5.0 volts.
Ron
mrusk
January 10, 2023, 6:57am
6
Thank you for your advices after a reset of the oscilloscope the problem was resolved.
mark this item as solved.
system
Closed
July 9, 2023, 7:01am
8
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.