When you're around my motors redline.
Home
Go Back   Chief Delphi > Technical > Control System > FRC Control System
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 08-02-2017, 19:44
rudun's Avatar
rudun rudun is online now
Registered User
FRC #0496 (Royals)
Team Role: Coach
 
Join Date: Jan 2009
Rookie Year: 2005
Location: Babylon
Posts: 48
rudun is an unknown quantity at this point
Can't Measure 5v off Relay pins

I am using this code to get a spike to work.

Code:
	public Robot() {
		lightSwitch = new Relay(2);
		//lightSwitch.setDirection(Relay.Direction.kForward);
		lightSwitch.set(Relay.Value.kOn);
		
	}
However am getting an orange/red light and no output. I have tried measuring the 5v off of the robo rio pins and am getting zero voltage. Going from fwd to gnd or rev to gnd, using a multi-meter. I am at loss at this point as why
Reply With Quote
  #2   Spotlight this post!  
Unread 08-02-2017, 20:13
GeeTwo's Avatar
GeeTwo GeeTwo is online now
Technical Director
AKA: Gus Michel II
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Slidell, LA
Posts: 3,796
GeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond repute
Re: Can't Measure 5v off Relay pins

Typically, only the declarations go in the initializer routine. I don't know whether this will work at all, but it's not the right way; you want to put the set in a periodic method.

The relay ports will not be activated until the robot is enabled in any case. Have you enabled the robot?
__________________

If you can't find time to do it right, how are you going to find time to do it over?
If you don't pass it on, it never happened.
Robots are great, but inspiration is the reason we're here.
Friends don't let friends use master links.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 12:56.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi