Teensy 4.1 5v pin tolerance question

Status
Not open for further replies.

Tom1

Member
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 :confused:
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 ?
What about the analog input pins?
 
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.
 
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
 
@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.
 
Thanks Mark and everyone else replying! :eek:

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.
 
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!
 
Thanks Mark and everyone else replying! :eek:

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.
 
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.
 
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.
 
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.

SDS00007.jpg

Zoom in:
SDS00008.jpg
This is the analog input of the flow rate.
It seems like that 1ms sampling rate will be enough to get a really good reading of the signal. So I guess even 30KΩ resistor divider should not effect the reading?
 
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.
Thanks for your reply. Where in the manual you saw it?
 
Status
Not open for further replies.
Back
Top