Go to Post Andy Baker can legally touch the Red and Blue Carpet simultaneously. - Taylor [more]
Home
Go Back   Chief Delphi > Technical > Electrical
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 16-02-2016, 20:21
Kevin Pai's Avatar
Kevin Pai Kevin Pai is offline
Registered User
FRC #5964 (Praetorians)
Team Role: Programmer
 
Join Date: Feb 2016
Rookie Year: 2015
Location: Voorheesville
Posts: 11
Kevin Pai is an unknown quantity at this point
PWM Cable Voltage

Hello everyone, we are using PWM cables to connect to the Roborio colored White, Black, and Red. What is the voltage of each of these individual colored wires?
Thanks, Kev
  #2   Spotlight this post!  
Unread 16-02-2016, 20:29
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,075
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: PWM Cable Voltage

Quote:
Originally Posted by Kevin Pai View Post
Hello everyone, we are using PWM cables to connect to the Roborio colored White, Black, and Red. What is the voltage of each of these individual colored wires?
Thanks, Kev
If you want a correct and unambiguous answer, it would help if you would explain why you are asking.


  #3   Spotlight this post!  
Unread 16-02-2016, 20:39
Kevin Pai's Avatar
Kevin Pai Kevin Pai is offline
Registered User
FRC #5964 (Praetorians)
Team Role: Programmer
 
Join Date: Feb 2016
Rookie Year: 2015
Location: Voorheesville
Posts: 11
Kevin Pai is an unknown quantity at this point
Re: PWM Cable Voltage

We need to connect 2 of the 3 cables of the PWM to a limit switch, so that it can connect to the Roboview. We need to find the voltage of the cables so that we can connect the ground cable and the charged one.
  #4   Spotlight this post!  
Unread 16-02-2016, 21:06
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,075
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: PWM Cable Voltage

Quote:
Originally Posted by Kevin Pai View Post
We need to connect 2 of the 3 cables of the PWM to a limit switch, so that it can connect to the Roboview. We need to find the voltage of the cables so that we can connect the ground cable and the charged one.
What is a "Roboview"? What is the intended purpose of the limit switch?



  #5   Spotlight this post!  
Unread 16-02-2016, 23:18
ATannahill ATannahill is offline
Registered User
AKA: Alex Tannahill
no team
 
Join Date: Feb 2008
Rookie Year: 2008
Location: Southfield, Michigan
Posts: 3,258
ATannahill has a reputation beyond reputeATannahill has a reputation beyond reputeATannahill has a reputation beyond reputeATannahill has a reputation beyond reputeATannahill has a reputation beyond reputeATannahill has a reputation beyond reputeATannahill has a reputation beyond reputeATannahill has a reputation beyond reputeATannahill has a reputation beyond reputeATannahill has a reputation beyond reputeATannahill has a reputation beyond repute
Re: PWM Cable Voltage

Please tell us what you are trying to do. I do not know anything about Roboview but I also do not know anything about connecting a limit switch to a PWM port and having a beneficial result. You might need to take a step back and ask a simpler question (i.e. "How do I wire a limit switch?")

A factual answer is that the wires has no voltage. Voltage is the difference in potential energy between two points being evaluated (such as the ends of the wires). For there to be a potential difference you need to have something between the points (a resistor, a capacitor, air, etc.), the wire (while technically a resistor) is not significant enough to cause a voltage between the two points.

The pins on the roboRIO PWM ports do have voltage when compared to the negative input terminal. When the cable is plugged in properly (black on the outside) the black wire has 0 volts, the red wire has 5 volts and the white wire carries a signal voltage meaning it changes between 0 and 5 volts based on software on the roboRIO.

If that sounds confusing, feel free to ignore it and just address my first paragraph.
  #6   Spotlight this post!  
Unread 16-02-2016, 23:32
Mr V's Avatar
Mr V Mr V is offline
FIRST Senior Mentor Washington
FRC #5588 (Reign)
Team Role: Coach
 
Join Date: Feb 2011
Rookie Year: 2009
Location: Maple Valley Wa
Posts: 996
Mr V has a reputation beyond reputeMr V has a reputation beyond reputeMr V has a reputation beyond reputeMr V has a reputation beyond reputeMr V has a reputation beyond reputeMr V has a reputation beyond reputeMr V has a reputation beyond reputeMr V has a reputation beyond reputeMr V has a reputation beyond reputeMr V has a reputation beyond reputeMr V has a reputation beyond repute
Re: PWM Cable Voltage

The voltage potential you see on each wire depends on what port of the RoboRio you connect it to.

If you want to use a PWM cable to monitor a limit switch you'll want to plug it into a DIO port. Plugged into a DIO port the red wire is 5v the black wire is ground, while the white wire is your signal wire.

You'll want to connect the white wire and black wire to your switch that is activated when pressed. Then in code you want to configure the pin as an input and look for the voltage on the signal wire to go low. There is an internal pull-up resistor so it will show voltage when not connected to ground.
__________________
All statements made on Chief Delphi by me are my own opinions and are not official FIRST rulings or opinions and should not be construed as such.




https://www.facebook.com/pages/Team-...77508782410839
  #7   Spotlight this post!  
Unread 17-02-2016, 00:20
GeeTwo's Avatar
GeeTwo GeeTwo is offline
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,606
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: PWM Cable Voltage

Connected to a PWM port with the standard wire setup, the black wire is the 0V reference, Red is approximately 6V (intended to provide power to servos), and the white wire switches back and forth between 0V and 5V to provide a pulse width modulated (PWM) signal intended to control a servo or motor controller.
__________________

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.
  #8   Spotlight this post!  
Unread 17-02-2016, 00:31
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,075
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: PWM Cable Voltage

Quote:
Originally Posted by GeeTwo View Post
the white wire switches back and forth between 0V and 5V to provide a pulse width modulated (PWM) signal intended to control a servo or motor controller.

The actual pulse height (in volts) is substantially less than 5 volts when connected to certain models of motor controller.


Closed Thread


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

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