View Single Post
  #3   Spotlight this post!  
Unread 17-02-2014, 16:35
CodeMonkey01 CodeMonkey01 is offline
Registered User
FRC #3939 (RoboKnights)
Team Role: Programmer
 
Join Date: Feb 2013
Rookie Year: 2008
Location: Virginia
Posts: 7
CodeMonkey01 is an unknown quantity at this point
Re: Using an Interposing Relay

Quote:
Originally Posted by Alan Anderson View Post
The only problem I see is that the way you have it drawn, it won't do what you expect. If you leave a Digital Input pin unconnected, an internal pullup resistor will bring it to +5v and it will read True. Your relay will connect +5v to it, leaving the value unchanged. If you instead connect "ground" to it when the relay is activated, the input will read False and you can tell the difference.
Sorry about the confusion. We are aware of this, and that is how this is setup. The 5v and 12v are just notes as to the line voltage and not the specific pin as the direction on that line is bidirectional. Thank you for mentioning that mistake.

Quote:
Originally Posted by Alan Anderson View Post
However, the relay might not be necessary. What is the part number of your sensor? If it is NPN output, it doesn't actually provide 12 volts on the output pin. All it can do is pull the pin to ground, and that is perfectly compatible with the DIO on the Digital Sidecar.
Our mentor, a 'Technical Consultant' from 'Rockwell Automation' who provided the part has told us that is is preferred to use this method. Now You may be right, but since we have this setup working right now, we will stick with it and prepare the solution you suggested in case we need to swap it for competition.

Thank you again for your quick reply.
Reply With Quote