Go to Post It seems ironic to me that a robotics competition would come down to human error, which is precisely what the field of robotics attempts to prevent. - David8696 [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-01-2011, 20:10
WizenedEE's Avatar
WizenedEE WizenedEE is offline
Registered User
AKA: Adam
FRC #3238 (Cyborg Ferrets)
Team Role: Leadership
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Anacortes, WA
Posts: 395
WizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to all
Re: Led Tape Control

(I'm on Celestial's team)

Quote:
Originally Posted by DonRotolo View Post
...but this is a DIFFERENT PWM than what is used to control Jaguars and servos. The PWM outputs of the Sidecar won't work for you.
So the jaguar outputs are similar to standard servo outputs and don't just turn on and off depending on how fast the motor should turn? I guess that makes sense, because the jaguar has those special abilities rather than just being an h-bridge.

Quote:
Originally Posted by DonRotolo View Post
In this case, you just want to display 3 colors (Red, White, Blue). Why not run to Radio Shack and buy an LED in each color and just connect those? Lighter, cheaper, simpler to implement. Just be sure to use a dropping resistor to bring the 12 volts down into the LEDs range - the package or an Internet resource should help you there.
We might just go with that, but we're under the weight limit. I was also thinking of having some sort of victory dance with them.


Quote:
Originally Posted by 3p1c w1n View Post
How does that work? I thought you could only attach one device, like a compressor, and it's either on or off.
Well, the LEDs are hard-wired to +12V and just need to be controlled by grounding them. If we attached one lead to the green and one lead to the blue, we could get blue by running the "motor" one way, which would provide +12V to one side (making nothing happen for lack of voltage differential) and GND to the other side (making the blue light up). However, the spike probably wouldn't let us make each side GND (it would just disconnect them if we turned it off) or 12V (why would it?)

Quote:
Originally Posted by Foster View Post
For Lunacy we had a LED light strip to signify that a ball was ready to shoot. They came from a car supply place and were controlled by a Spike. We used blue, but they come in red, blue and white, about 12 LED's in a 24" strip. Can you post the link to your tri-color strips?
http://www.adafruit.com/index.php?ma...ducts _id=285

Quote:
Originally Posted by Foster View Post
You could even go wild and have it be solid on for the low, slow flash for the med and fast flash for the high so your robot partners know where you going.
Haha great idea!

What wiring up MOSFETs instead of spikes? It's a custom circuit anyway, and MOSFETs weigh aabbbooouuttt 1% of what a spike weighs and 6% of what it costs, and is much easier to control.
  #2   Spotlight this post!  
Unread 16-01-2011, 20:17
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: Led Tape Control

Quote:
Originally Posted by WizenedEE View Post
However, the spike probably wouldn't let us make each side GND (it would just disconnect them if we turned it off) or 12V (why would it?).
Yes it will. In LabVIEW, the Relay Set is an enumerated type with 4 states: On (both sides 12v), Off (both sides gnd), Forward (one side 12v, one side side gnd), and Reverse (other side 12v, and other side gnd).

The spike is really two relays, and the three-pin cable contains two digital lines (fwd and rev) plus ground. The first coil (fwd) switches m+ between GND and 12v, and the second coil (rev) switches m- between GND and 12v. The output is never disconnected. Hope that makes sense
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
  #3   Spotlight this post!  
Unread 16-01-2011, 20:36
Foster Foster is offline
Engineering Program Management
VRC #8081 (STEMRobotics)
Team Role: Mentor
 
Join Date: Jul 2007
Rookie Year: 2005
Location: Delaware
Posts: 1,392
Foster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond repute
Re: Led Tape Control

Thanks for the link to the Adafruit site, those LED's look great.

Output devices like motors, compressors, etc need to be controlled by Victors or Spike like devices. You could always ask the GDC for approval to build a custom circuit to drive the LED's. Since it's part of your game play, you can't use the decoration rule. You could see if the Victors will drive them to the bright/dim that you want and see if the GDC will let you put a non motor on the device.

We went with the Spikes to make sure there were no inspection issues.

Good luck!
__________________
Foster - VEX Delaware - 17 teams -- Chief Roboteer STEMRobotics.org
2010 - Mentor of the Year - VEX Clean Sweep World Championship
2006-2016, a decade of doing VEX, time really flies while having fun
Downingtown Area Robotics Web site and VEXMen Team Site come see what we can do for you.
  #4   Spotlight this post!  
Unread 16-01-2011, 21:48
WizenedEE's Avatar
WizenedEE WizenedEE is offline
Registered User
AKA: Adam
FRC #3238 (Cyborg Ferrets)
Team Role: Leadership
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Anacortes, WA
Posts: 395
WizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to all
Re: Led Tape Control

Quote:
Originally Posted by Foster View Post
Output devices like motors, compressors, etc need to be controlled by Victors or Spike like devices. You could always ask the GDC for approval to build a custom circuit to drive the LED's. Since it's part of your game play, you can't use the decoration rule. You could see if the Victors will drive them to the bright/dim that you want and see if the GDC will let you put a non motor on the device.
I assume you're looking at <R03>? That's a weird rule -

Quote:
Originally Posted by 2011 Game Manual
<R03> Custom circuits and COTS electronics are expressly prohibited if they:
A. Interfere with the operation of other ROBOTS.
B. Directly affect any output devices on the ROBOT.
Wouldn't Jaguars and Spikes be COTS electronics? Although it does say you can use anything in the KOP, so that rule would take preference? I'll probably ask the GDC if lights are considered output devices.

Victors are another good idea, but we can just make our own PWM in the robot code for the spikes.
  #5   Spotlight this post!  
Unread 17-01-2011, 00:58
3p1c w1n 3p1c w1n is offline
Registered User
FRC #1529
 
Join Date: Jan 2010
Location: Indianapiolis
Posts: 53
3p1c w1n is an unknown quantity at this point
Re: Led Tape Control

I think I will just stick to LED's of one color per spike for simplicity. Really noob question, but what vi would I use for a spike? The only thing I've used a spike for is the compressor, which has it's own set of vi.
__________________
~Team 1529 Cybercards~
  #6   Spotlight this post!  
Unread 17-01-2011, 01:20
3p1c w1n 3p1c w1n is offline
Registered User
FRC #1529
 
Join Date: Jan 2010
Location: Indianapiolis
Posts: 53
3p1c w1n is an unknown quantity at this point
Re: Led Tape Control

under utilities I found "FRC LEDs.vi". It allows a choice of 2 LED types, FPGA LED and User LED. The state is either on, off, or toggle. Is this anything close to what I want?
__________________
~Team 1529 Cybercards~
  #7   Spotlight this post!  
Unread 17-01-2011, 09:23
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,567
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Led Tape Control

Quote:
Originally Posted by 3p1c w1n View Post
under utilities I found "FRC LEDs.vi". It allows a choice of 2 LED types, FPGA LED and User LED. The state is either on, off, or toggle. Is this anything close to what I want?
Those change two little tiny LEDs that are on the cRIO. They are probably not what you want.
  #8   Spotlight this post!  
Unread 17-01-2011, 10:32
Steve Warner Steve Warner is offline
Controls / Programming
FRC #0234 (Cyber Blue)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Indiana
Posts: 41
Steve Warner is an unknown quantity at this point
Re: Led Tape Control

While the Spike has 4 output states, last year the WPILib C++ Relay class only allowed 3 states. The state where both outputs were switched to +12v was not allowed. I guess they did not consider it useful. In the off-season we tried including the Relay class code in our project and modifying it to allow the 4 states and it worked. I have not seen the source code for 2011 (is it available?) but I am hoping they changed it to allow all 4 states. I don't know how LabView or Java work.
  #9   Spotlight this post!  
Unread 17-01-2011, 11:22
Foster Foster is offline
Engineering Program Management
VRC #8081 (STEMRobotics)
Team Role: Mentor
 
Join Date: Jul 2007
Rookie Year: 2005
Location: Delaware
Posts: 1,392
Foster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond repute
Re: Led Tape Control

I would propose that you ask the GDC if custom electronics can be used to run the lights.

If you get turned down then I would ask if a Spike controls the power to the custom circuit that drives the LED would be acceptable. The GDC is super safety minded and that is one of the reasons for the output via a Spike, Victor or Jaguar. The cRio safety code controls the output to them.

As far as the Spike vi goes, the one for the compressor is good. It wants the robot to be enabled and then uses the value from the pressure sensor to turn the spike on and off. You would feed inputs into the vi as if you were the pressure sensor.

Remember, it's always faster to ask the GDC rather than fooling around in a CD thread collecting opinions on what the GDC will say.
__________________
Foster - VEX Delaware - 17 teams -- Chief Roboteer STEMRobotics.org
2010 - Mentor of the Year - VEX Clean Sweep World Championship
2006-2016, a decade of doing VEX, time really flies while having fun
Downingtown Area Robotics Web site and VEXMen Team Site come see what we can do for you.
  #10   Spotlight this post!  
Unread 17-01-2011, 11:38
3p1c w1n 3p1c w1n is offline
Registered User
FRC #1529
 
Join Date: Jan 2010
Location: Indianapiolis
Posts: 53
3p1c w1n is an unknown quantity at this point
Re: Led Tape Control

Quote:
Originally Posted by Foster View Post
As far as the Spike vi goes, the one for the compressor is good. It wants the robot to be enabled and then uses the value from the pressure sensor to turn the spike on and off. You would feed inputs into the vi as if you were the pressure sensor.
Thanks! I didn't think about feeding inputs to it.
__________________
~Team 1529 Cybercards~
  #11   Spotlight this post!  
Unread 17-01-2011, 12:03
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: Led Tape Control

There is a VI to set a relay. It is much better than trying to use the Compressor VI to set the relay. The compressor VI (in LabVIEW) creates a new thread, constantly getting the pressure switch and writing the relay. Under the WPI Robotics Library palette, go to Actuators->Relay and use the Relay Open and Relay Set VI's.
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
  #12   Spotlight this post!  
Unread 18-01-2011, 08:14
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,770
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: Led Tape Control

The Spike relay is not rated for rapid ON/OFF operation if you are intending to make flashy lights. If the LED device you are using requires a simple ON/OFF power connection, and it draws less that 20 amps, the Spike is a perfect fit.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
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:00.

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