Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 7 of 7

Thread: T3.2 output 5v ?

  1. #1

    T3.2 output 5v ?

    The 3.2 is 5v tolerant

    Is it possible to get the pwm channels to output 5v instead of 3.3v
    Last edited by Gadget999; 05-30-2019 at 06:06 PM.

  2. #2
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Possible by adding a buffer chip, yes.

    Possible by only direct connection to Teensy 3.2's pins, no.

  3. #3
    Hi Paul

    A logic level convertor should to the trick. Can they jump 3.3v up to 5v as well as 5v down to 3.3v

  4. #4
    Senior Member brtaylor's Avatar
    Join Date
    Mar 2016
    Portland, OR
    Are you asking because of servos? Anecdotally, all seem to be fine with 3.3V logic, even on high voltage supplies.

  5. #5
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Depends on the type of level converter.

    Generally speaking, bidirectional converters can and they offer much more flexibility, but bidirectional circuits often have poor performance for PWM (and many other types of high speed signals). Unidirectional buffers usually offer better performance, with closely matched rise & fall times and propagation delays, which are highly desirable properties for preserving the PWM's duty cycle.

    Level conversion using transistors and pullup resistors tends to have vastly different properties for rising versus falling edges, which can distort or alter PWM signals, so you should probably avoid those types for converting PWM signals. Many companies marketing to makers sell cheap boards with these level converters, usually with descriptions that greatly over-promise the circuit's capabilities and usefulness. Truth is those transistor+resistors circuits have terrible performance for high speed signals and they badly corrupt signals like PWM and WS2812B (aka NeoPixel) data, where pulse widths matter.

    ....This is a question about PWM, right? Or maybe meant as a general conversation that just happened to mention PWM? Why you would need to "jump 3.3v up to 5v as well as 5v down to 3.3v" for PWM is something I'm having a hard time imagining.

  6. #6
    Hi Paul, yes I am looking to raise the voltage of a pwm output so i can drive another device.

    Can you recommend a circuit or a transistor that will perform.

  7. #7
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    How good & useful of a recommendation do you imagine I (or anyone) could give without knowing anything about the intended device you wish to use?

    For the common case of driving WS2812B LEDs, I usually recommend the 74HCT245 chip which we use on the Octo board.

    100 ohm series resistors are used used for driving CAT5 or CAT6 cable, which has 100 ohm characteristic impedance. That combination works very well for that application.

    So if your device is a secret and you can't say anything at all, then there's my blind recommendation. Use 74HCT245.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts