View Single Post
  #11   Spotlight this post!  
Unread 06-02-2016, 22:21
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is offline
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,647
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: PNP versus NPN sensors

Quote:
Originally Posted by Ether View Post
Could a simple (and quite inexpensive) NPN transistor be made to work?
I'm hesitant about that without my Art of Electronics to remind me about transistor fundamentals. I think that's alright, but you should have high values for the resistors. Probably dividing down till the base voltage is less than 3.3V. If I remember correctly, an NPN has a diode from base to collector which would be forward biased if you drive the base with more than 3.3V. Which I think would be bad, or atleast wouldn't work properly.

Quote:
Originally Posted by adciv View Post
The roborio is not the digital side car. Per specs, the DIO ports can take up to 16v. They were designed with being able to take 12v in mind.
That's fascinating information, where did you find it? The RoboRIO specs that I looked at when formulating my answers stated 5.25V max for the logic high of the DIOs, with no mention of a max voltage. The analog IO is listed as +-16V protection, but there's no reason to assume that carries over to the DIO.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter