|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||||
|
|||||
|
Re: Led Tape Control
(I'm on Celestial's team)
Quote:
Quote:
Quote:
Quote:
Quote:
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
|
|||||
|
|||||
|
Re: Led Tape Control
Quote:
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 |
|
#3
|
|||
|
|||
|
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! |
|
#4
|
||||
|
||||
|
Re: Led Tape Control
Quote:
Quote:
Victors are another good idea, but we can just make our own PWM in the robot code for the spikes. |
|
#5
|
|||
|
|||
|
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.
|
|
#6
|
|||
|
|||
|
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?
|
|
#7
|
||||||
|
||||||
|
Re: Led Tape Control
Those change two little tiny LEDs that are on the cRIO. They are probably not what you want.
|
|
#8
|
|||
|
|||
|
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
|
|||
|
|||
|
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. |
|
#10
|
|||
|
|||
|
Re: Led Tape Control
Thanks! I didn't think about feeding inputs to it.
|
|
#11
|
|||||
|
|||||
|
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.
|
|
#12
|
|||||
|
|||||
|
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.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|