square wave output PWM but voltage change to 5V

I am outputting three square waves and I need to change the output voltage into 5V. Is there any way I can change the voltage?

I use Cloud9

Here is my code:

search mouser for voltage translator ICs

On Thu, 2 May 2019 13:00:02 -0700 (PDT),
quiteadream@gmail.com declaimed the
following:

I am outputting three square waves and I need to change the output voltage
into 5V. Is there any way I can change the voltage?

I use Cloud9

Here is my code:

  Cloud9 and code is irrelevant... This is a hardware problem.

  You can not get 5V outputs from a Beagle without adding additional
hardware. Google "level shifter"

https://www.sparkfun.com/products/12009 (bidirection)
https://www.adafruit.com/product/1787 (one direction)
https://www.adafruit.com/product/1875 (bidirection)

Note that most of the bidirectional types are strictly signal level to go
from one chip to another. If you need to then drive larger loads (LEDs) you
may need to add a transistor or high-output buffer between the level
shifter and the load.

On Thu, 2 May 2019 13:00:02 -0700 (PDT),
quiteadream@gmail.com declaimed the
following:

>
>I am outputting three square waves and I need to change the output voltage
>into 5V. Is there any way I can change the voltage?
>
>I use Cloud9
>
>Here is my code:
>

  Cloud9 and code is irrelevant... This is a hardware problem.

  You can not get 5V outputs from a Beagle without adding additional
hardware. Google "level shifter"

https://www.sparkfun.com/products/12009 (bidirection)
https://www.adafruit.com/product/1787 (one direction)
https://www.adafruit.com/product/1875 (bidirection)

Note that most of the bidirectional types are strictly signal level to go
from one chip to another. If you need to then drive larger loads (LEDs) you
may need to add a transistor or high-output buffer between the level
shifter and the load.

If *all* the OP wants to do is drive some load at 5V, an
open-collector/open-drain transistor is all that is needed.