|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Using the PCM to control a LED
We're using a custom LED assembly for illuminating the retro-reflective tape and it needs ~300 milliamps at 12V, meaning we can't use DIO, and because it heats up so quickly, we can't directly hook it up to the VRM(having the LED be on during the whole match would probably destroy the LEDs). I would have traditionally done this with a boring transistor, but it was 4 am(when the best ideas are formed) in the morning, and we had no transistors. That's when it suddenly came to us: we already had a device that had regulated 12V outputs which can be controlled via code: the PCM! We hooked up the LED to one of the solenoid outputs on the PCM, and it worked just fine. We checked the manual to see whether doing that was legal or not, and according to Table 4-4 under R53, CUSTOM CIRCUITS(I assume that our LED assembly is considered a CUSTOM CIRCUIT) can be controlled using the PCM. However, I still have the urge to ask: is this legal? It just feels so odd and honestly, it's something I wouldn't have allowed if I wrote the rules.
Kinda off-topic: third party fans for ESCs aren't allowed but wiring lights to solenoid slots is. Rules are weird. |
|
#2
|
||||
|
||||
|
Re: Using the PCM to control a LED
Quote:
|
|
#3
|
|||
|
|||
|
Re: Using the PCM to control a LED
Alright, it's comforting to see that another team has done this.
|
|
#4
|
|||
|
|||
|
Re: Using the PCM to control a LED
You could also use a Spike relay to control your LEDs.
|
|
#5
|
|||||
|
|||||
|
Re: Using the PCM to control a LED
The last row of table 4-4 (R53) explicitly allows 1 custom circuit to be controlled by each PCM channel.
Do keep a good eye on the per-channel and total current drawn by the PCM in any given state. Another alternative is to use a 12V opto-isolated relay module. These can be controlled from DIO ports or relay ports, and are much smaller and less expensive than a spike for custom circuit loads of up to 10A. |
|
#6
|
|||
|
|||
|
Re: Using the PCM to control a LED
Quote:
Just curious is all... |
|
#7
|
||||
|
||||
|
Re: Using the PCM to control a LED
A 300ma 12v led could be easily cooled by using a 3w led heatsink like the kinds you can find on ebay or local electronics stores. If the led is on a star, using thermal paste and screws to attach it to the chassis would heatsink it enough alone (the stars are usually isolated).
|
|
#8
|
|||
|
|||
|
Re: Using the PCM to control a LED
Quote:
|
|
#9
|
||||
|
||||
|
Re: Using the PCM to control a LED
We use both an LED ring light from Superbright LEDS for the camera targeting as well as a high-power LED for manual targeting. Both lights are driven off the same Spike relay module which we've used in past years.
Note: our lights are pointed upward and we only turn them on when we need to use them. Otherwise they stay off so as not to unduly distract the opposing castle defenders. |
|
#10
|
||||
|
||||
|
Re: Using the PCM to control a LED
Any info on your setup with the Spike relay would be appreciated... i am trying ot get this going with a 12v to 3.3V converter but the 2 LEDs flashlight i used so far don't seem to hold up.... I have a nice bright light at forst, remove power then re-apply and then i can barely see it....
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|