Forum Rule: Always post complete source code & details to reproduce any issue!

Thread: Teensy 4.1 5v pin tolerance question

1. Teensy 4.1 5v pin tolerance question

Dear forum members,

I'm new to the Teensy board and I just bought the Teensy 4.1 and I tried to Google what is the Teensy 4.1 5v tolerance but so far I could not find a clear answer
On the website https://www.pjrc.com/teensy/ there nothing mentioned about 3.3V/5V tolerant for the 4.1 version.

Are the digital input pins 5v tolerable ?

2. @Tom1:

The Teensy Wiki has the <info> you are looking for.

Good luck & have fun !!

Mark J Culross
KD5RXT

3. Not clear to me is if the T4 pins become 5V tolerant with enough series resistance. Certainly one can add resistance+diodes to protect from 5V.

4. Originally Posted by jonr
Not clear to me is if the T4 pins become 5V tolerant with enough series resistance. Certainly one can add resistance+diodes to protect from 5V.
@jonr:

Replies should not muddy the waters.

The answer to the OPs original question is stated very clearly in the referenced Wiki entry: "Some Teensys (LC, 3.0, 3.6, 4.0, and 4.1) can be damaged if they get more than 3.3 volts on any pin...".

Certainly, a variety of protection mechanisms (voltage dividers, series resistance, diodes, range limited op-amps, level convertors, etc.) can be added to help ensure that the 3.3 volt maximum input is never exceeded, but the maximum allowable value remains specifically limited to 3.3 volts at the input, which is what was being asked.

Mark J Culross
KD5RXT

5. @kd5rxt-mark

Once a question has been answered, it's often useful to discuss a solution to the problem that reader(s) may be trying to address. Replies shouldn't criticize such helpfulness.

6. Thanks Mark and everyone else replying!

What will be the best way to covert a 0-5v analog signal to 0-3.3v signal for the Teensy 4.1? To use a resistor divider (lets say 10K and a 20KΩ resistor)?
Or there is a better way to do it?

The 0-5v signal is coming from a mass air flow sensor (MAF) it's output voltage represent the rate of flow in the pipe and the I will like to get a very accurate measurement since it's for a medical device.

7. Actually, his point was important. The OP wanted to know if the T4.1 was 5V tolerant. The answer is no. Sometimes we get caught up in the details and don't directly address the question. I don't mind being reminded of that.

I do think the discussion of how to interface with 5V logic is worthwhile and encouraging the OP to elaborate on what they want to do is helpful.

And happy Independence Day! I hope none of your fireworks involve blue smoke!

8. Originally Posted by Tom1
Thanks Mark and everyone else replying!

What will be the best way to covert a 0-5v analog signal to 0-3.3v signal for the Teensy 4.1? To use a resistor divider (lets say 10K and a 20KΩ resistor)?
Or there is a better way to do it?
A divider will work and is pretty traditional. Certainly cheap but watch out for impedance requirements. And watch out for the actual voltage in - make sure your divided V out is still < 3.3V.

9. > watch out for impedance requirements

Yes - 1.1K and 2K would be better.

10. Originally Posted by jonr
> watch out for impedance requirements

Yes - 900 and 2K would be better.
Thanks!

Why 900 and 2K would be better?

11. I went the wrong way and corrected it. Because, per the manual, you want low impedance (< 4K) for the input to the ADC in the T4 to reduce errors. But if you otherwise have low impedance (say an op amp afterwards), then OK.

12. Originally Posted by Tom1
Thanks!

Why 900 and 2K would be better?
Because a resistor divider forms a low pass filter with stray capacitance and the pin input capacitances - too much resistance and the bandwidth is compromised. If you don't need high frequency signals you can use larger resistors (which may reduce power consumption somewhat).

The 10k/20k divider has an output impedance of around 6k7, which with 20pF of stray/input capacitance would have a time constant of 6700 x 20e-12 = 135ns. That would be fine for 115200 baud serial, but problematic for an SPI interface.

If you don't know the use, go with 1k/2k divider to be safe for a wide frequency range, for slower signals 10k/20k is fine.

An issue to beware of with low-value resistor dividers is phantom-powering if one device is powered down when the other isn't.

13. Originally Posted by MarkT
Because a resistor divider forms a low pass filter with stray capacitance and the pin input capacitances - too much resistance and the bandwidth is compromised. If you don't need high frequency signals you can use larger resistors (which may reduce power consumption somewhat).

The 10k/20k divider has an output impedance of around 6k7, which with 20pF of stray/input capacitance would have a time constant of 6700 x 20e-12 = 135ns. That would be fine for 115200 baud serial, but problematic for an SPI interface.

If you don't know the use, go with 1k/2k divider to be safe for a wide frequency range, for slower signals 10k/20k is fine.

An issue to beware of with low-value resistor dividers is phantom-powering if one device is powered down when the other isn't.

Zoom in: