Go to Post IT ISN'T THE STUDENT'S JOB TO DISCIPLINE OTHER STUDENTS. That's why God invented mentors. Let them do their jobs. - Collin Fultz [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 18-02-2016, 15:01
MrForbes's Avatar
MrForbes MrForbes is offline
Registered User
AKA: Jim
FRC #1726 (N.E.R.D.S.)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Sierra Vista AZ
Posts: 5,963
MrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond repute
Re: How to wire a flashlight?

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.
Attached Thumbnails
Click image for larger version

Name:	light.jpg
Views:	515
Size:	132.0 KB
ID:	20105  

Last edited by MrForbes : 18-02-2016 at 15:05. Reason: added photo
  #2   Spotlight this post!  
Unread 18-02-2016, 15:43
JR0405's Avatar
JR0405 JR0405 is offline
#StaySavage
AKA: Jack Ross
FRC #5822 (Wolfbyte)
Team Role: Driver
 
Join Date: Jan 2016
Rookie Year: 2011
Location: Chicago, IL
Posts: 92
JR0405 has a spectacular aura aboutJR0405 has a spectacular aura aboutJR0405 has a spectacular aura about
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
  #3   Spotlight this post!  
Unread 18-02-2016, 15:43
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: 357
SuperBK is just really niceSuperBK is just really niceSuperBK is just really niceSuperBK is just really nice
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.
__________________
Brian K
Team 1225 Robotics Mentor
  #4   Spotlight this post!  
Unread 18-02-2016, 16:13
rich2202 rich2202 is offline
Registered User
FRC #2202 (BEAST Robotics)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Wisconsin
Posts: 1,171
rich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond repute
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.
  #5   Spotlight this post!  
Unread 18-02-2016, 16:52
Ari423's Avatar
Ari423 Ari423 is offline
LabVIEW aficionado and robot addict
AKA: The guy with the yellow hat
FRC #5987 (Galaxia)
Team Role: Mentor
 
Join Date: Mar 2015
Rookie Year: 2012
Location: Haifa, Israel
Posts: 553
Ari423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant future
Re: How to wire a flashlight?

Quote:
Originally Posted by rich2202 View Post
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.
I thought that custom circuits powered through a Spike would need to be powered off the 12V PDP output. I guess you could consider the Spike as part of the custom circuit and power it all off the VRM, but I don't know how much the inspectors or Spike will appreciate that.
__________________
2017-present: Mentor FRC 5987
2017-present: CSA for FIRST in Israel
2012-2016: Member FRC 423
2013: Programmer
2014: Head Programmer, Wiring
2015: Head Programmer, Wiring
2016: Captain, Head Programmer, Wiring, Manipulator, Chassis, CAD, Business, Outreach (basically everything)


  #6   Spotlight this post!  
Unread 18-02-2016, 17:47
rich2202 rich2202 is offline
Registered User
FRC #2202 (BEAST Robotics)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Wisconsin
Posts: 1,171
rich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond repute
Re: How to wire a flashlight?

Quote:
Originally Posted by Ari423 View Post
I thought that custom circuits powered through a Spike would need to be powered off the 12V PDP output.
There is no requirement that a Custom Circuit be powered off a 12V PDP output. The rules say a Custom Circuit can have up to a 40A breaker. I could not find a rule that says a Custom Circuit cannot be connected to the VRM.

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.
  #7   Spotlight this post!  
Unread 18-02-2016, 18:03
Peyton Yeung's Avatar
Peyton Yeung Peyton Yeung is offline
45 Alumni
AKA: Peyton Yeung
FRC #0461 (Westside Boiler Invasion)
Team Role: Coach
 
Join Date: Mar 2010
Rookie Year: 2009
Location: Kokomo, IN
Posts: 813
Peyton Yeung has a reputation beyond reputePeyton Yeung has a reputation beyond reputePeyton Yeung has a reputation beyond reputePeyton Yeung has a reputation beyond reputePeyton Yeung has a reputation beyond reputePeyton Yeung has a reputation beyond reputePeyton Yeung has a reputation beyond reputePeyton Yeung has a reputation beyond reputePeyton Yeung has a reputation beyond reputePeyton Yeung has a reputation beyond reputePeyton Yeung has a reputation beyond repute
Re: How to wire a flashlight?

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.
Attached Thumbnails
Click image for larger version

Name:	12733609_1251361154878718_4105179396945197937_n.jpg
Views:	199
Size:	57.1 KB
ID:	20106  Click image for larger version

Name:	12734098_1251361054878728_2292717664841859228_n.jpg
Views:	178
Size:	54.5 KB
ID:	20107  
__________________
461 Westside Boiler Invasion
2016 Tippy Quarter finalist, Warren Finalist, IN State Semi Finalist,B^3 Double Finalist
2015 Indy Semi finalist, Purdue Quarter Finalist, IN State Quarter Finalist, CORI QF, R2OC Finalist, RAGE Winner
2014 Boilermaker Semi finalist, Crossroads Quarter Finalist, & CAGE Quarter Finalist
45 Technokats
2013 Boilermaker Quarter finalist
2012 CAGE Semi finalist & Queen City Champion
2011 CAGE Quarter finalist & Midwest Semi finalist
2010 CAGE Quarter finalist, Boilermaker Champion, & Washington DC Quarter Finalist
  #8   Spotlight this post!  
Unread 18-02-2016, 20:42
TimTheGreat's Avatar
TimTheGreat TimTheGreat is offline
ArchdukeTim
FRC #1418 (Vae Victis)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2011
Location: Falls Church
Posts: 234
TimTheGreat has a spectacular aura aboutTimTheGreat has a spectacular aura aboutTimTheGreat has a spectacular aura about
Re: How to wire a flashlight?

Quote:
Originally Posted by Peyton Yeung View Post
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.
...Are the voltage converters from the years of the cRIO allowed? We still have ours.
__________________
There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult.



2012 - Gracious Professionalism - Greater DC
2014 - Regional Finalist - Virginia | Industrial Design - Virginia | Regional Finalist - Greater DC
2015 - Innovation in Control - Greater DC
2016 - District Event Winner - VAHAY | Innovation in Control - VAHAY | District Event Winner - MDBET | Industrial Design - MDBET | District Champion - CHCMP | Innovation in Control - CHCMP
  #9   Spotlight this post!  
Unread 18-02-2016, 21:01
rich2202 rich2202 is offline
Registered User
FRC #2202 (BEAST Robotics)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Wisconsin
Posts: 1,171
rich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond repute
Re: How to wire a flashlight?

Quote:
Originally Posted by TimTheGreat View Post
...Are the voltage converters from the years of the cRIO allowed? We still have ours.
Yes. You could wire a Spark to the PDP, and the output of the Spark goes to the Voltage Converter. That would allow you to turn on/off the voltage converter.
  #10   Spotlight this post!  
Unread 18-02-2016, 21:02
TimTheGreat's Avatar
TimTheGreat TimTheGreat is offline
ArchdukeTim
FRC #1418 (Vae Victis)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2011
Location: Falls Church
Posts: 234
TimTheGreat has a spectacular aura aboutTimTheGreat has a spectacular aura aboutTimTheGreat has a spectacular aura about
Re: How to wire a flashlight?

Quote:
Originally Posted by rich2202 View Post
Yes. You could wire a Spark to the PDP, and the output of the Spark goes to the Voltage Converter.
So we tried connecting the light straight to a talon and limiting the output to 4.5 volts, but it burned out the light. Will that happen with this?
__________________
There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult.



2012 - Gracious Professionalism - Greater DC
2014 - Regional Finalist - Virginia | Industrial Design - Virginia | Regional Finalist - Greater DC
2015 - Innovation in Control - Greater DC
2016 - District Event Winner - VAHAY | Innovation in Control - VAHAY | District Event Winner - MDBET | Industrial Design - MDBET | District Champion - CHCMP | Innovation in Control - CHCMP
  #11   Spotlight this post!  
Unread 18-02-2016, 21:36
Peyton Yeung's Avatar
Peyton Yeung Peyton Yeung is offline
45 Alumni
AKA: Peyton Yeung
FRC #0461 (Westside Boiler Invasion)
Team Role: Coach
 
Join Date: Mar 2010
Rookie Year: 2009
Location: Kokomo, IN
Posts: 813
Peyton Yeung has a reputation beyond reputePeyton Yeung has a reputation beyond reputePeyton Yeung has a reputation beyond reputePeyton Yeung has a reputation beyond reputePeyton Yeung has a reputation beyond reputePeyton Yeung has a reputation beyond reputePeyton Yeung has a reputation beyond reputePeyton Yeung has a reputation beyond reputePeyton Yeung has a reputation beyond reputePeyton Yeung has a reputation beyond reputePeyton Yeung has a reputation beyond repute
Re: How to wire a flashlight?

Quote:
Originally Posted by TimTheGreat View Post
So we tried connecting the light straight to a talon and limiting the output to 4.5 volts, but it burned out the light. Will that happen with this?
You should look into how much current is going through the talon at 4.5 volts.
__________________
461 Westside Boiler Invasion
2016 Tippy Quarter finalist, Warren Finalist, IN State Semi Finalist,B^3 Double Finalist
2015 Indy Semi finalist, Purdue Quarter Finalist, IN State Quarter Finalist, CORI QF, R2OC Finalist, RAGE Winner
2014 Boilermaker Semi finalist, Crossroads Quarter Finalist, & CAGE Quarter Finalist
45 Technokats
2013 Boilermaker Quarter finalist
2012 CAGE Semi finalist & Queen City Champion
2011 CAGE Quarter finalist & Midwest Semi finalist
2010 CAGE Quarter finalist, Boilermaker Champion, & Washington DC Quarter Finalist
  #12   Spotlight this post!  
Unread 18-02-2016, 22:28
MrForbes's Avatar
MrForbes MrForbes is offline
Registered User
AKA: Jim
FRC #1726 (N.E.R.D.S.)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Sierra Vista AZ
Posts: 5,963
MrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond repute
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....
  #13   Spotlight this post!  
Unread 19-02-2016, 10: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,112
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: How to wire a flashlight?

Quote:
Originally Posted by TimTheGreat View Post
So we tried connecting the light straight to a talon and limiting the output to 4.5 volts, but it burned out the light.
The output of a Talon is actually either 0 volts or battery voltage. It's pulsed fast enough to yield a variable average voltage, but apparently it's not fast enough to keep the LED from being fried due to too much current.

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.
  #14   Spotlight this post!  
Unread 19-02-2016, 14:14
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,620
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: How to wire a flashlight?

Quote:
Originally Posted by Alan Anderson View Post
The output of a Talon is actually either 0 volts or battery voltage. It's pulsed fast enough to yield a variable average voltage, but apparently it's not fast enough to keep the LED from being fried due to too much current.

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.
Seconding Alan's suggestion here: I had to read this topic over and over before I realized what people were suggesting. I would seriously think twice about using a FRC style electronic speed control as a power switch in an application like this. As a CSA I'd be looking at that wondering 'why?'. The Spike makes quite a bit more sense, is cheaper and probably smaller.

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.

Last edited by techhelpbb : 19-02-2016 at 14:30.
  #15   Spotlight this post!  
Unread 19-02-2016, 14:57
MrForbes's Avatar
MrForbes MrForbes is offline
Registered User
AKA: Jim
FRC #1726 (N.E.R.D.S.)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Sierra Vista AZ
Posts: 5,963
MrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond repute
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
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 03:42.

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