Go to Post "And that right there is the Sharpie line between right and wrong. Guess which side you cut on?" - Cypher [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 15-03-2015, 09:45
Qbot2640's Avatar
Qbot2640 Qbot2640 is offline
Registered User
AKA: Terry McHugh
FRC #2640 (Hotbotz)
Team Role: Mentor
 
Join Date: Sep 2012
Rookie Year: 2012
Location: Reidsville, NC
Posts: 473
Qbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond repute
Arduino - RoboRIO Question

We've created an Arduino based indicator that we want to use, which gets triggered by the relay signal that is sent to a Spike. (One action is activated when the motor is run in one direction, and a different action is activated when the motor is run the other direction. A third "neutral" action runs when the motor is not engaged.)

Before installing, we measured the voltage of the red and white PWM wire leads (with respect to the black) and found them to be very close to +5v (for each direction the motor is run, respectively).

Using the 5V supply from the Arduino itself to simulate the voltage from the PWM wire signals, the program worked perfectly off the robot.

When we put the indicator on the robot, it remained in the "neutral" third action no matter what we did with the motor. When we checked the voltage again (white and red from PWM WRT black), we found it to be now only approximately 1 volt.

So I guess my questions (finally) are (1) Why does the voltage read 5 Volts when not attached, and only 1 Volt when attached...and (2) Is this normal or have we done something wrong. Then (3) If this is normal, we can use an analog input...what minimum voltage should we expect at each signal pin, so we know what to use as our "trigger" value?
__________________

2012 Palmetto Regional Winners (Thanks 2059, 2815, and 287).
2012 Newton 14th Seed
2013 Chesapeake Regional Imagery Award Winners
2014 North Carolina Regional Imagery Award Winners
2014 Greater DC Regional Team Spirit Award Winners
2015 North Carolina Regional Finalists (Thanks 3971 and 587)
  #2   Spotlight this post!  
Unread 15-03-2015, 10:19
techhelpbb's Avatar
techhelpbb techhelpbb is offline
Registered User
FRC #0011 (MORT - Team 11)
Team Role: Mentor
 
Join Date: Nov 2010
Rookie Year: 1997
Location: New Jersey
Posts: 1,624
techhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond repute
Re: Arduino - RoboRIO Question

Without a circuit diagram it sounds like you are overloading something.
How much current does your circuit input draw when it works correctly?
  #3   Spotlight this post!  
Unread 15-03-2015, 10:29
Qbot2640's Avatar
Qbot2640 Qbot2640 is offline
Registered User
AKA: Terry McHugh
FRC #2640 (Hotbotz)
Team Role: Mentor
 
Join Date: Sep 2012
Rookie Year: 2012
Location: Reidsville, NC
Posts: 473
Qbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond repute
Re: Arduino - RoboRIO Question

Quote:
Originally Posted by techhelpbb View Post
Without a circuit diagram it sounds like you are overloading something.
How much current does your circuit input draw when it works correctly?
I haven't measured, but it is only a bunch of LED's and they should be independently powered by the Arduino, which we have plugged into a 12V supply from the new VRM.

Without a circuit diagram, I'll try to explain...eight groups of LED's are wired to the digital pins 6-13 - configured as outputs (anodes) and to ground (cathodes). Red PWM wire to pin 1 (configured as input) and White PWM wire to pin 2 (also input). Black PWM wire to ground.

Program runs only as if there is no voltage on either of the red or white PWM wires...however the robot works perfectly - motor goes forward and reverse exactly as controlled. When we checked the red and white wire voltage with everything connected, the voltage was much lower than the 5V we expected.
__________________

2012 Palmetto Regional Winners (Thanks 2059, 2815, and 287).
2012 Newton 14th Seed
2013 Chesapeake Regional Imagery Award Winners
2014 North Carolina Regional Imagery Award Winners
2014 Greater DC Regional Team Spirit Award Winners
2015 North Carolina Regional Finalists (Thanks 3971 and 587)
  #4   Spotlight this post!  
Unread 15-03-2015, 10:47
techhelpbb's Avatar
techhelpbb techhelpbb is offline
Registered User
FRC #0011 (MORT - Team 11)
Team Role: Mentor
 
Join Date: Nov 2010
Rookie Year: 1997
Location: New Jersey
Posts: 1,624
techhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond repute
Re: Arduino - RoboRIO Question

Quote:
Originally Posted by Qbot2640 View Post
motor goes forward and reverse exactly as controlled. When we checked the red and white wire voltage with everything connected, the voltage was much lower than the 5V we expected.
What motor are you describing?
  #5   Spotlight this post!  
Unread 15-03-2015, 10:54
Qbot2640's Avatar
Qbot2640 Qbot2640 is offline
Registered User
AKA: Terry McHugh
FRC #2640 (Hotbotz)
Team Role: Mentor
 
Join Date: Sep 2012
Rookie Year: 2012
Location: Reidsville, NC
Posts: 473
Qbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond repute
Re: Arduino - RoboRIO Question

Quote:
Originally Posted by techhelpbb View Post
What motor are you describing?
We have split the PWM going to our lift motor's relay...the cable now simultaneously controls the Spike, and thus the lift motor...and is input for the indicator LED apparatus through the Arduino.

The motor is still responding, though the Arduino is not receiving a sufficient voltage to activate the indicator action.
__________________

2012 Palmetto Regional Winners (Thanks 2059, 2815, and 287).
2012 Newton 14th Seed
2013 Chesapeake Regional Imagery Award Winners
2014 North Carolina Regional Imagery Award Winners
2014 Greater DC Regional Team Spirit Award Winners
2015 North Carolina Regional Finalists (Thanks 3971 and 587)
  #6   Spotlight this post!  
Unread 15-03-2015, 11:06
techhelpbb's Avatar
techhelpbb techhelpbb is offline
Registered User
FRC #0011 (MORT - Team 11)
Team Role: Mentor
 
Join Date: Nov 2010
Rookie Year: 1997
Location: New Jersey
Posts: 1,624
techhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond repute
Re: Arduino - RoboRIO Question

Quote:
Originally Posted by Qbot2640 View Post
We have split the PWM going to our lift motor's relay...the cable now simultaneously controls the Spike, and thus the lift motor...and is input for the indicator LED apparatus through the Arduino.

The motor is still responding, though the Arduino is not receiving a sufficient voltage to activate the indicator action.
Try disconnecting the split and just driving the Arduino.
Make sure to check the voltages before you hook up just the Arduino.

Last edited by techhelpbb : 15-03-2015 at 11:10.
  #7   Spotlight this post!  
Unread 15-03-2015, 11:34
billbo911's Avatar
billbo911 billbo911 is offline
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,384
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: Arduino - RoboRIO Question

Without a circuit diagram, I can only make suggestions that are nothing more than a guess.
That said, the first thing I would suggest is making certain that you are also tying ground from the RoboRio to the ground on the Arduino.
The next step I would do would be to put 10k ohm pull down resistors on the inputs to the Arduino. That would make sure that you have a solid ground reference, and not have the inputs to the Arduino floating.
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist
  #8   Spotlight this post!  
Unread 15-03-2015, 11:43
Qbot2640's Avatar
Qbot2640 Qbot2640 is offline
Registered User
AKA: Terry McHugh
FRC #2640 (Hotbotz)
Team Role: Mentor
 
Join Date: Sep 2012
Rookie Year: 2012
Location: Reidsville, NC
Posts: 473
Qbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond repute
Re: Arduino - RoboRIO Question

Quote:
Originally Posted by billbo911 View Post
Without a circuit diagram, I can only make suggestions that are nothing more than a guess.
That said, the first thing I would suggest is making certain that you are also tying ground from the RoboRio to the ground on the Arduino.
The next step I would do would be to put 10k ohm pull down resistors on the inputs to the Arduino. That would make sure that you have a solid ground reference, and not have the inputs to the Arduino floating.
We have the black (ground) wire from the Spike's PWM going to ground on the Arduino...is that sufficient for grounding the RoboRIO to the Arduino as suggested...and for the pulldown resistors, do I just wire the red and white each through a 10K to ground? I did have it that way on the "off-board" but eliminated the resistors when I went to the robot.
__________________

2012 Palmetto Regional Winners (Thanks 2059, 2815, and 287).
2012 Newton 14th Seed
2013 Chesapeake Regional Imagery Award Winners
2014 North Carolina Regional Imagery Award Winners
2014 Greater DC Regional Team Spirit Award Winners
2015 North Carolina Regional Finalists (Thanks 3971 and 587)
  #9   Spotlight this post!  
Unread 15-03-2015, 12:34
billbo911's Avatar
billbo911 billbo911 is offline
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,384
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: Arduino - RoboRIO Question

Quote:
Originally Posted by Qbot2640 View Post
We have the black (ground) wire from the Spike's PWM going to ground on the Arduino...is that sufficient for grounding the RoboRIO to the Arduino as suggested...and for the pulldown resistors, do I just wire the red and white each through a 10K to ground? I did have it that way on the "off-board" but eliminated the resistors when I went to the robot.
Yes and yes. Additionally, don't define the inputs on the Arduino as "Input Pullup". That would negate the action of the pull downs.
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist
  #10   Spotlight this post!  
Unread 15-03-2015, 13:41
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Arduino - RoboRIO Question

[Disclaimer: I cannot find a schematic to the Spike internals. What I say here is from many-years-old memory and not guaranteed.]

The Spike inputs are not logic level signals. They actually provide power to an optical isolator. The current is supposed to be limited to 40 ma; I do not know what voltage that ends up corresponding to.

The roboRIO Relay outputs have a 40k resistor to ground, so there is no need for a pulldown on the Arduino inputs.
  #11   Spotlight this post!  
Unread 15-03-2015, 13:57
billbo911's Avatar
billbo911 billbo911 is offline
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,384
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: Arduino - RoboRIO Question

Quote:
Originally Posted by Alan Anderson View Post
....

The roboRIO Relay outputs have a 40k resistor to ground, so there is no need for a pulldown on the Arduino inputs.
True. I was not aware of the internal pull-down resistors.
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist
  #12   Spotlight this post!  
Unread 15-03-2015, 22:06
SuperBK's Avatar
SuperBK SuperBK is offline
Registered User
AKA: BrianK
FRC #1225 (Amperage Robotics)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Henersonville, NC
Posts: 358
SuperBK is just really niceSuperBK is just really niceSuperBK is just really niceSuperBK is just really nice
Re: Arduino - RoboRIO Question

I would probably connect the Arduino to a digital output from the robotRio and just have the program control the digital outputs wherever its controlling the spike.
__________________
Brian K
Team 1225 Robotics Mentor
  #13   Spotlight this post!  
Unread 17-03-2015, 18:30
techhelpbb's Avatar
techhelpbb techhelpbb is offline
Registered User
FRC #0011 (MORT - Team 11)
Team Role: Mentor
 
Join Date: Nov 2010
Rookie Year: 1997
Location: New Jersey
Posts: 1,624
techhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond repute
Re: Arduino - RoboRIO Question

Much like your I/O issue you've left this topic in an indeterminate state
So did you figure the issue out?
  #14   Spotlight this post!  
Unread 17-03-2015, 22:35
Qbot2640's Avatar
Qbot2640 Qbot2640 is offline
Registered User
AKA: Terry McHugh
FRC #2640 (Hotbotz)
Team Role: Mentor
 
Join Date: Sep 2012
Rookie Year: 2012
Location: Reidsville, NC
Posts: 473
Qbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond repute
Re: Arduino - RoboRIO Question

Quote:
Originally Posted by techhelpbb View Post
Much like your I/O issue you've left this topic in an indeterminate state
So did you figure the issue out?
Actually, no. I though I had something with the resistor to ground suggestion, then Alan pointed out that there is already a large resistance in the relay outputs to ground. SuperBK's suggestion is a good one, but programming is not our strength this season, so I don't want to ask the programmers to add any complexity at all. I wrote an Arduino program that uses the analog inputs, and a while loop for greater than ... I'll try that. It should be able to detect the very low voltage we are reading. Otherwise, we'll just run a decorative program. Thanks, though!

(SuperBK is a recent acquaintance...and will be at the NC Regional with us on Thursday...perhaps I'll monopolize some more of his time!)
__________________

2012 Palmetto Regional Winners (Thanks 2059, 2815, and 287).
2012 Newton 14th Seed
2013 Chesapeake Regional Imagery Award Winners
2014 North Carolina Regional Imagery Award Winners
2014 Greater DC Regional Team Spirit Award Winners
2015 North Carolina Regional Finalists (Thanks 3971 and 587)

Last edited by Qbot2640 : 17-03-2015 at 22:38.
  #15   Spotlight this post!  
Unread 18-03-2015, 10:21
The Doctor's Avatar
The Doctor The Doctor is offline
Robotics is life
AKA: Hackson
FRC #3216 (MRT)
Team Role: Programmer
 
Join Date: Mar 2014
Rookie Year: 2013
Location: United States
Posts: 158
The Doctor is on a distinguished road
Re: Arduino - RoboRIO Question

AFAIK the red pwm wire is 5v and not a data line.
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 20:31.

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