Go to Post Something has gone awry this year in FIRST. I think more teams are concerned with winning and their robot that they don't even stop to think about the kids on their team, or the learning experiences of others. - Amanda Morrison [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #31   Spotlight this post!  
Unread 16-03-2016, 10:11
apm4242 apm4242 is offline
Registered User
FRC #4242
 
Join Date: Jan 2013
Location: United States
Posts: 85
apm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud of
Re: Lights to help aim

I don't have the code with me right now but I'll post screen shots later tonight.

If you can't wait, it's very similar to Team 358's Labview examples except ours uses a button toggle with "Off" and "Forward" as relay inputs. Don't forget to initialize in Begin.vi and end in Finish.vi.

Team 358's site seems to be down for the moment but Mark McLeod posted a .doc file with everything in it - http://www.chiefdelphi.com/forums/at...1&d=1454513427
Reply With Quote
  #32   Spotlight this post!  
Unread 16-03-2016, 18:23
apm4242 apm4242 is offline
Registered User
FRC #4242
 
Join Date: Jan 2013
Location: United States
Posts: 85
apm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud of
Re: Lights to help aim

See attached for LabView screen shots. A few notes -

Wiring the blue relay values to the selector was tricky. If someone knows a better way, feel free to correct this but here's what I did - right click on Relay Set and create a constant. Sever the connection between the new constant and the Relay Set. Connect the new constant to the Select and then wire the Select output to the Relay Set. Now the Select will accept and return blue values.

Selecting "On" and "Off" as the relay values did not work - the flashlight just quickly flashed and stayed off. We had to set it to "Forward" and "Off".

The Relay vi's are in the WPI Robotics Library > Actuators > Relay area.

The feedback nodes are finicky. Sometimes they don't turn green when wired to a Boolean on the first try and the arrows may need to be switched (right click). The button toggle code is straight out of Team 358's guide. I highly recommend it. It's the best.
Attached Thumbnails
Click image for larger version

Name:	Flashlight_Relay_Example.jpg
Views:	84
Size:	125.9 KB
ID:	20375  
Reply With Quote
  #33   Spotlight this post!  
Unread 21-03-2016, 21:38
Coach Seb's Avatar
Coach Seb Coach Seb is offline
Registered User
AKA: Sebastien Cournoyer
FRC #5860 (Full Metal Muskrats)
Team Role: Coach
 
Join Date: Sep 2015
Rookie Year: 2015
Location: Algonac, MI
Posts: 107
Coach Seb is an unknown quantity at this point
Re: Lights to help aim

At my first attempt, the light was very bright and it look awesome. Then as soon as i remove power and re-apply the voltage, then it was very dimmed....

I figure i burn the LED or something like that so i proceeed to wire LED flashlight #2, and exactly same thing happen... at first it was bright and just like i want it, then, remove the voltage to the LED and reconnect and it turn on but was very light....

?Is there a cycle to reset or something weird I have to do?
Reply With Quote
  #34   Spotlight this post!  
Unread 21-03-2016, 22:56
apm4242 apm4242 is offline
Registered User
FRC #4242
 
Join Date: Jan 2013
Location: United States
Posts: 85
apm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud of
Re: Lights to help aim

Quote:
Originally Posted by Coach Seb View Post
At my first attempt, the light was very bright and it look awesome. Then as soon as i remove power and re-apply the voltage, then it was very dimmed....

I figure i burn the LED or something like that so i proceeed to wire LED flashlight #2, and exactly same thing happen... at first it was bright and just like i want it, then, remove the voltage to the LED and reconnect and it turn on but was very light....

?Is there a cycle to reset or something weird I have to do?
Did you remove the round circuit board inside the flashlight? When functioning normally, there are 3 modes - high, low, flash. When you press the on/off button down half way, the mode switches and it remembers your last mode setting. The circuit board controls this function. It sounds like you might be simulating this by removing and reapplying the voltage.
Reply With Quote
  #35   Spotlight this post!  
Unread 21-03-2016, 23:16
Coach Seb's Avatar
Coach Seb Coach Seb is offline
Registered User
AKA: Sebastien Cournoyer
FRC #5860 (Full Metal Muskrats)
Team Role: Coach
 
Join Date: Sep 2015
Rookie Year: 2015
Location: Algonac, MI
Posts: 107
Coach Seb is an unknown quantity at this point
Re: Lights to help aim

Yes, we removed the circuit board and solder the LED directly to the voltage converter.

Anybody experience this?
Reply With Quote
  #36   Spotlight this post!  
Unread 21-03-2016, 23:25
apm4242 apm4242 is offline
Registered User
FRC #4242
 
Join Date: Jan 2013
Location: United States
Posts: 85
apm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud of
Re: Lights to help aim

Strange. We didn't see this. What flashlight and voltage converter are you using? Can you trace the source of the voltage drop with a multimeter to see if it's in the LED, relay, or spike? In other words, try checking if the LED is getting whatever the converter is supposed to put out
Reply With Quote
  #37   Spotlight this post!  
Unread 22-03-2016, 00:20
ejscribner ejscribner is offline
Drive Team & Coach
FRC #2972
 
Join Date: Jan 2016
Rookie Year: 2013
Location: Boulder, CO
Posts: 15
ejscribner is an unknown quantity at this point
Re: Lights to help aim

Is the use of a laser pointer allowed on the robot? I feel like a laser would be exceedingly helpful for aiming and such.
Reply With Quote
  #38   Spotlight this post!  
Unread 22-03-2016, 00:35
ollien ollien is offline
Registered User
FRC #5202
 
Join Date: Feb 2015
Location: United States
Posts: 318
ollien has a spectacular aura aboutollien has a spectacular aura aboutollien has a spectacular aura about
Re: Lights to help aim

Quote:
Originally Posted by ejscribner View Post
Is the use of a laser pointer allowed on the robot? I feel like a laser would be exceedingly helpful for aiming and such.
No. Typically, visible lasers are of Class II/III. The blue box on R9 says that you can only use Class I lasers.
Reply With Quote
  #39   Spotlight this post!  
Unread 22-03-2016, 07:42
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,113
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: Lights to help aim

Quote:
Originally Posted by Coach Seb View Post
Yes, we removed the circuit board and solder the LED directly to the voltage converter.
I don't know what kind of flashlight you started with. If it's a typical LED, then you have probably fried it by letting it have too much current. You need to have a resistor in series with it to set the current to a level where the LED will work properly.
Reply With Quote
  #40   Spotlight this post!  
Unread 22-03-2016, 07:51
Coach Seb's Avatar
Coach Seb Coach Seb is offline
Registered User
AKA: Sebastien Cournoyer
FRC #5860 (Full Metal Muskrats)
Team Role: Coach
 
Join Date: Sep 2015
Rookie Year: 2015
Location: Algonac, MI
Posts: 107
Coach Seb is an unknown quantity at this point
Re: Lights to help aim

I bought the exact same thing that was recommended by apm4242....

- LED Flashlight with zoom
- DC-DC Voltage Converter/Regulator
- Spike Relay

I'll check the voltage again... last night we had 10V on the spike relay, i did not check the voltage after the converter yet as we assumed we fried the spike... but yet between test it worked... still wondering...
Reply With Quote
  #41   Spotlight this post!  
Unread 22-03-2016, 08:54
JesseK's Avatar
JesseK JesseK is offline
Expert Flybot Crasher
FRC #1885 (ILITE)
Team Role: Mentor
 
Join Date: Mar 2007
Rookie Year: 2005
Location: Reston, VA
Posts: 3,682
JesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond repute
Re: Lights to help aim

I need to do more than a cursory look at electronics for legality, but is it possible to run two flashlights off of one spike relay? We'd like to run one flashlight off of the positive signal and a different flashlight off of the negative signal. Our electronics team has an idea of how it may work, but nothing concrete until they're back from Spring Break.
__________________

Drive Coach, 1885 (2007-present)
CAD Library Updated 5/1/16 - 2016 Curie/Carver Industrial Design Winner
GitHub
Reply With Quote
  #42   Spotlight this post!  
Unread 22-03-2016, 08:57
apm4242 apm4242 is offline
Registered User
FRC #4242
 
Join Date: Jan 2013
Location: United States
Posts: 85
apm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud of
Re: Lights to help aim

I was under the impression that the voltage converter made the resistor unnecessary. Not using the resistor worked for us. For reference, this is what Alan is talking about - https://www.sparkfun.com/tutorials/219
Reply With Quote
  #43   Spotlight this post!  
Unread 22-03-2016, 10:40
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,113
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: Lights to help aim

Quote:
Originally Posted by JesseK View Post
I need to do more than a cursory look at electronics for legality, but is it possible to run two flashlights off of one spike relay? We'd like to run one flashlight off of the positive signal and a different flashlight off of the negative signal.
That will work fine. Use the Spike's M+ terminal as the "plus" for one flashlight, the M- terminal as the "plus" for the other, and connect the "minus" of both flashlights to the V- terminal where the ground wire is coming from the PDP. You'll need to know that setting the Spike FORWARD will turn on one light, setting it REVERSE will turn on the other, and setting it ON will turn them both on. OFF will of course turn them both off.

It used to be normal to run two pneumatic solenoid valves from one Spike in exactly this way.
Reply With Quote
  #44   Spotlight this post!  
Unread 22-03-2016, 14:05
Ninjastahr's Avatar
Ninjastahr Ninjastahr is offline
FRC Member
FRC #3928 (Team Neutrino)
Team Role: Programmer
 
Join Date: Feb 2016
Rookie Year: 2014
Location: Iowa
Posts: 30
Ninjastahr is an unknown quantity at this point
Re: Lights to help aim

Honestly, I would use a SuperBright LED ring. You just put it around the camera, and you can HSL/HSV Threshold the image to find the goal. Our team has used this technique and I know for a fact that it works, and doesn't *quite* blind people. Though, it does come close sometimes...
Reply With Quote
  #45   Spotlight this post!  
Unread 22-03-2016, 16:09
Michael Hill's Avatar
Michael Hill Michael Hill is offline
Registered User
FRC #3138 (Innovators Robotics)
Team Role: Mentor
 
Join Date: Jul 2004
Rookie Year: 2003
Location: Dayton, OH
Posts: 1,575
Michael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond repute
Re: Lights to help aim

I've been wondering...is there an advantage to using a flashlight rather than the LED ring? Is it just a cost/availability thing or is there some technical advantage as well? #KnowsNothingAboutCV
Reply With Quote
Reply


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 02:08.

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