![]() |
How to wire a flashlight?
Our team wants to wire a normal 5v led flashlight to the robot and be able to turn it on and off. What is the best way to wire it?
|
Re: How to wire a flashlight?
It would be part of a CUSTOM CIRCUIT and need to be controlled in accordance with R53, and not violate R41, R55, R59, or any other rules I may have missed regulating CUSTOM CIRCUITs.
|
Re: How to wire a flashlight?
Quote:
|
Re: How to wire a flashlight?
1 Attachment(s)
We put a spotlight on our robot...a cheap $14 unit from Walmart. We only used the LED and reflector from the spotlight. The custom circuit consists of a LM7805 voltage regulator and 3.6 Ohm 5 Watt series resistor, and it also uses a Spike relay. The relay is controlled by a relay output on the roborio.
http://www.simple-electronics.com/20...regulator.html in case you don't know how to figure the resistance and wire up this type of custom circuit. |
Re: How to wire a flashlight?
You would need to use a relay wired to the Roborio and power the flashlight through the relay from the voltage regulator module
|
Re: How to wire a flashlight?
Also, you could use a resistor sized with 12 volts in mind and avoid the 7805. And like Mr. Forges says, control the 12V with a spike. Depending on how much the led draws, some teams have run them off a port of the pneumatics control module, though personally, I would prefer to use a spike.
|
Re: How to wire a flashlight?
Depending upon the amps, you might be able to power it off the 5v supply of the VRM. You would still have to have that power go through a relay.
|
Re: How to wire a flashlight?
Quote:
|
Re: How to wire a flashlight?
Quote:
However, looking at the Spike, it needs at least 9.5 volts, so it will not work switching 5 volts. So, the custom circuit would need its own custom switch. |
Re: How to wire a flashlight?
Quote:
|
Re: How to wire a flashlight?
2 Attachment(s)
Both when I was a senior in high school and this year (junior in college) we used a spike relay and voltage converter to turn on the flashlight through the PDP.
We used this flashlight. It's a 3V flashlight so we used this voltage converter. The flashlight was cut in half through the body and wires were added to the + terminal and the body (- side). This was connected to the voltage converter which was connected to the spike relay. |
Re: How to wire a flashlight?
Quote:
|
Re: How to wire a flashlight?
Quote:
|
Re: How to wire a flashlight?
Quote:
|
Re: How to wire a flashlight?
Quote:
|
Re: How to wire a flashlight?
Quote:
|
Re: How to wire a flashlight?
LEDs need to have the current to them limited somehow. Adding a resistor in series, will do this.
did you happen to look at the link I provided in my previous post? it kind of explains the resistor thing.... |
Re: How to wire a flashlight?
Quote:
If the flashlight is happy at 5 volts, then using one of the old 12-to-5-volt converters on the output of a Talon could work. But I'd suggest using a relay (e.g. a Spike) instead of a speed controller, so you never have the chance of making the converter itself unhappy with a PWM'd or reverse polarity input. |
Re: How to wire a flashlight?
Quote:
While it is possible to use PWM to control output voltage, like a switching power supply actually does, it requires a feedback loop and at some point a Spike and a resistor/regulator/converter would have done the job much easier (select the resistance and power rating as necessary to put the LEDs at the right voltage and current, use a series regulator to dissipate the extra voltage as heat or use a DC/DC converter module). Obviously if you use a resistor alone to reduce the voltage to your load the battery voltage will change as the battery discharges. So a series regulator or DC/DC converter may be more elegant but possibly physically heavier and larger. MrForbes's suggestion was the 7805 series regulator but it wasn't clear if the amount of current required by the light was specified. There are multiple packages for the 7805 depending on the current that will be drawn through it. It may also require a heatsink. A DC/DC converter is an even more complex circuit but the older 12V-5V DC/DC converters for the D-Link are frequently available and provide a healthy amount of current. Just remember those old DC/DC converters drop out if the battery goes below a specific voltage which was around 8VDC. |
Re: How to wire a flashlight?
Thanks for expanding on the info I provided. Note that I included a picture, which shows the LM7805 mounted to a piece of aluminum, which is a heat sink. Note also that the heat sink is mounted to a wood part, so it is insulated from the metal robot chassis, as required by the rules...since the metal tab on the LM7805 is connected to the negative battery terminal, through the PDP and Spike
|
Re: How to wire a flashlight?
Quote:
|
Re: How to wire a flashlight?
Quote:
The spike itself was discontinued at VEXPRO (http://www.vexrobotics.com/217-0220.html) but you may be able to find it somewhere else, or you can ask a veteran team who should have some stockpiled somewhere. |
Re: How to wire a flashlight?
Quote:
|
Re: How to wire a flashlight?
LEDs are basically current devices that have a voltage drop across them. They will have a maximum current they can handle before they burn up. Limiting the current in one way or another to less than their maximum current rating will allow them to survive a LONG time. This is what MrForbes is doing with the resistor in series with their LED and voltage regulator (LM7805).
This year we decided to add a "Photon Cannon" to our robot to aid the driver in shot alignment. To do this, we chose to use a constant current source LED driver and a 3W LED. Using the constant current source sets the current through the LED to either 330mA or 660mA, depending on how we configure the board, regardless of the battery voltage. This way it does not dim or flicker as we drive or manipulate things. We mounted a single lens 10cm (focal length of the lens) in front of the LED to give us a nicely collimated beam. The intensity of this beam is such that we decided not to leave the photon cannon on all the time, but switch it on only when needed. This is achieved by using a Spike relay. Let's just say, it works REALLY well. BTW, the LEDs we are using are are also available in Red, Green, and Blue. All of these work well and look really great! |
Re: How to wire a flashlight?
A little update...we never got around to making our little LM7805 cirucit properly, that is, we never secured the wires to anything, and one of the leads on the part broke off. Yesterday we got out an old 12v- 5v converter from a previous year KOP and wired it in place of the regulator chip, but kept the series resistor. seems to work fine.
Beam width on a light like this might be important, I expect there are several ways to get a spotlight effect. The spotlight we used with the reflector seems to be pretty good. |
Re: How to wire a flashlight?
To echo what other people have said, LEDs are diodes (it's in the name), so they have a couple things to remember.
Firstly, they are non-ohmic, meaning they don't behave according to regular ole' V=IR math. Secondly they have a polarity, calld bias. If you wire a diode in reverse bias, little current will flow, and it won't light up. If you wire it in forward bias, current will take off if you supply a voltage above something like .6-.7V, maybe a bit more or less depending on what your diode is made of. However, your diode will require much more than this voltage to light up (it depends on what LED you have, but somewhere in the neighborhood of a few volts most likely). When this voltage is supplied, current flows very quickly through the diode, in what you could think of as a short circuit, which, if enough current is flowing, will blow up your diode. That is why it is important to have a resistor in series with your LED, so that you can supply it with a high enough voltage to light up while limiting the current that flows through the LED so that it doesn't blow up. Make sure your resistor is rated for the amount of power you estimate will be dissipated through it, otherwise this can cause problems as well. |
Re: How to wire a flashlight?
Quote:
|
Re: How to wire a flashlight?
Quote:
Just remember, the voltage drop across each LED must be added as the LEDs are in series. The number of LEDs it can drive will be limited by the source voltage and the maximum voltage the driver can handle. Here is a quick hookup guide. It includes an example of putting the LEDs in series. |
Re: How to wire a flashlight?
Quote:
|
Re: How to wire a flashlight?
Quote:
As for you guys on 1418, I think that your best bet is to go with the LM7805 or the old voltage regulators for the radio. I would say that if you guys are stressing about weight to go with the 7805 and get a small, solderable breadboard at RadioShack or off of Amazon. The 7805 would be more work, though. The old radio regulator would probably be the simplest option. You guys could just wire that to the PDP on with a 20A breaker. Quote:
|
Re: How to wire a flashlight?
Walmart sells a nifty little (Tri~Headlight type) Multi LED $15.00~$20.00 Adjustable Headlamp on an adjustable elastic strap in the Camping section (White hi intensity center beam bulb, 3 different settings, high~medium~low), and 2 outer red or blue lower intensity LED bulbs and all the settings work great w/ the vision tape.
Best of all is that the light just happens to operate (as originally manufactured), on 4.5~5 volts (3 AA batteries originally as purchased inserted in a stacked triangle shape). So we just removed the batteries, drilled a hole for the wires in the battery hold down door/cap (said operable battery door still opens for inspection so they can see there are no batteries installed). We soldered properly sized 16 gauge wires to each end of the empty battery holder contacts and run it off the 5 volt 500ma side of the VRM. Said LED flashlight fits on the front of the Axis camera perfectly using that strap and a bit of velcro. And it is very aimable. Sort of neat to use Red when you are red alliance and reverse to Blue when you are blue....The white LED'S are very bright even on the low setting. Blinding on the high setting. The blue/red...Not so much. I will grab the make and model tonight for those interested and maybe post a pic. |
Re: How to wire a flashlight?
Quote:
|
Re: How to wire a flashlight?
Just a visual of the "Photon Cannon". #NotAFlashlight #NotALaser
![]() ![]() |
| All times are GMT -5. The time now is 11:01. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi