OCCRA
Go to Post 99.9999% of the FIRSTers are really nice - Denman [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Events   CD-Media   CD-Spy   FRC-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 02-09-2002, 12:47 PM
punarhero's Avatar
punarhero punarhero is offline
Registered User
#0696 (Clark Magnet Robotics)
Team Role: Programmer
 
Join Date: Jan 2002
Location: la crescenta
Posts: 67
punarhero is an unknown quantity at this point
Send a message via AIM to punarhero Send a message via Yahoo to punarhero
Light programming

Hi,
We just got the light and I hooked it on to a relay. It workd fine. I hooked it on to relay 3, which is assigned to p3_sw_trig and p3_sw_top, but we have a little problem.

The light is on untill I keep pressing the button, but I wanna do something else. I want to hit the top button once on joystick3 and have the light turn on. I mean I should have to hold down the button to keep the light running. And when I wanna turn the light off, I should be able to do it by hitting the trigger button once on joystick3.

Can anyone tell me the exact code I can insert to do this. I need it urgently.

Thanx
  #2   Spotlight this post!  
Unread 02-09-2002, 01:40 PM
FotoPlasma FotoPlasma is offline
\: |
no team
 
Join Date: Jul 2001
Rookie Year: 2001
Location: San Jose
Posts: 1,900
FotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond repute
Send a message via AIM to FotoPlasma
You want to use the joystick trigger or thumb button to toggle a relay on and off, if I read this correctly.

This thread has information on doing that which was very helpful to me, so it should help you.
__________________
I played hacky sack with Andy Baker.

2001-2004: Team 258, The Sea Dawgs
2005: Team 1693, The Robo Lobos
  #3   Spotlight this post!  
Unread 02-09-2002, 02:56 PM
Unsung FIRST Hero
Nate Smith Nate Smith is offline
FRC Key Volunteer Trainer
AKA: CrazyNate
no team
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Old Town, Maine
Posts: 1,029
Nate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to behold
Send a message via AIM to Nate Smith Send a message via Yahoo to Nate Smith
Keep in mind that in your actual final robot, the light has to turn on and off automatically. The easiest way to do this is to write a line of code that sets one relay to be always on in forward, and hook the light to that relay. The safety feature of the Master CPU that disables all outputs when the disable signal is sent from the Arena controller, or when no signal is recieved from the OI, will take care of the rest...
__________________
Nate Smith
nsmith@smythsoft.com
12 seasons, 4 teams, and more time logged behind the scorekeeper's table than I care to remember...
returning for 2011? only time will tell...
  #4   Spotlight this post!  
Unread 02-09-2002, 03:01 PM
AWiser's Avatar
AWiser AWiser is offline
Registered User
#0846
 
Join Date: Nov 2001
Location: San Jose
Posts: 70
AWiser is an unknown quantity at this point
Send a message via AIM to AWiser Send a message via Yahoo to AWiser
When using the default code, you have to plug in the relay to relay output 8. It will now turn on when the robot does. I think that this is required by FIRST to have it like this.

Also remember that it has to turn in a certain direction...
__________________
~Alex Wiser~ <Team #846 (Lynbrook)>

There are three kinds of people in the world:

Those who can count...
and those who can't
  #5   Spotlight this post!  
Unread 02-09-2002, 09:14 PM
punarhero's Avatar
punarhero punarhero is offline
Registered User
#0696 (Clark Magnet Robotics)
Team Role: Programmer
 
Join Date: Jan 2002
Location: la crescenta
Posts: 67
punarhero is an unknown quantity at this point
Send a message via AIM to punarhero Send a message via Yahoo to punarhero
I was able to keep the light on when the CPU turned on on, and turn if off when the CPU turned off. I thought we had to have the capability of tuning it on and off, but as u guys say. Have u guys toggled ur lights or just make it turn on and off with the master CPU
  #6   Spotlight this post!  
Unread 02-09-2002, 11:39 PM
Unsung FIRST Hero
Nate Smith Nate Smith is offline
FRC Key Volunteer Trainer
AKA: CrazyNate
no team
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Old Town, Maine
Posts: 1,029
Nate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to behold
Send a message via AIM to Nate Smith Send a message via Yahoo to Nate Smith
Per somewhere in the rules:
"the light must be connected in such a way that it turns on when the robot is enabled and off when it is disabled"...read: automatic(no toggle switches for the light, as much as we'd like them to save power)
__________________
Nate Smith
nsmith@smythsoft.com
12 seasons, 4 teams, and more time logged behind the scorekeeper's table than I care to remember...
returning for 2011? only time will tell...
  #7   Spotlight this post!  
Unread 02-10-2002, 12:12 AM
Lloyd Burns Lloyd Burns is offline
Registered User
FRC #1246 (Agincourt Robotics)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Toronto
Posts: 292
Lloyd Burns is an unknown quantity at this point
Rule 2.1.2 Rotating Light, and rule c26 state basically what Nate said.

Rule M8 also covers aspects of the light (mounting to be visible, &c).

Although I couldn't find the place where it is stated, I'm sure teams will leave the light on all through the match, so as not to distract the officials.
  #8   Spotlight this post!  
Unread 02-10-2002, 12:19 AM
kmcclary's Avatar
kmcclary kmcclary is offline
Founder 830/1015;Mentor 66/470/1502
FRC #0470 (Alpha Omega Robotics)
Team Role: Engineer
 
Join Date: Aug 2001
Rookie Year: 1994
Location: Ann Arbor, MI
Posts: 489
kmcclary has a reputation beyond reputekmcclary has a reputation beyond reputekmcclary has a reputation beyond reputekmcclary has a reputation beyond reputekmcclary has a reputation beyond reputekmcclary has a reputation beyond reputekmcclary has a reputation beyond reputekmcclary has a reputation beyond reputekmcclary has a reputation beyond reputekmcclary has a reputation beyond reputekmcclary has a reputation beyond repute
AWiser wrote:

> Also remember that [the rotating light] has to turn in a certain direction...

Huh??? Is there such a rule??? Please state the rule number that says that it has to turn in a certain direction.

Please correct me if I'm wrong, but as far as I can see, the rules only state that you have to have it running SOME way any time the robot is enabled. After all, it is just a warning light. The direction doesn't matter for that usage.

- Section 2.1.2 only states that which color wires go where on the spike.
- M8 only talks about its visibility.
- C26 talks about it being driven by a relay module (spike) & it's to be auto ENABLED whenever the robot is running and off otherwise.

Our rotating light is simply a motor and a light bulb. It doesn't care about polarity. Now if your light has a semiconductor module inside running it, that WOULD be a different story (but even then I see nothing that says you couldn't swap the two motor leads inside it for grins to make it run the other way :-).

- Keith McClary, Advisor, Huron High Team 830 "Rat Pack"
__________________
Keith McClary - Organizer/Mentor/Sponsor - Ann Arbor MI area FIRST teams
ACTI - Automation Computer Technologies, Inc. (Sponsoring FIRST teams since 2001!)
MI Robot Club (Trainer) / GO-Tech Maker's Club / RepRap-Michigan) / SEMI CNC Club
"Certifiably Insane": Started FIVE FRC teams & many robot clubs (so far)!
2002: 830 "Rat Pack" | 2003-5;14: 1015;1076 "Pi Hi Samurai" | 2005-6: 1549 "Washtenuts"/"Fire Traxx"
2005-(on): 1502 "Technical Difficulties" | 2006-(on): FIRST Volunteer!
2009-(on): 470 "Alpha Omega" | WAFL | Sponsor & "Floating Engineer" for MI Dist 13 (Washtenaw Cnty)
2011: 3638 "Tigertrons" | 2013-(on): 4395 "ViBots" | 2014-(on) 66 "Grizzlies"
"Home" Teams: 66, 470, 1076, 1502, 4395
Local FIRST alumni at or coming to Ann Arbor (UM/EMU/WCC/Cleary)?
...We Want YOU as a Mentor! Please email me for info!
Support CDF Reputation - If a posting helped, thank 'em with rep points!
"It must be FRC build season when your spouse and children become 'Action Items 8 & 9'..."
  #9   Spotlight this post!  
Unread 02-10-2002, 09:41 AM
Unsung FIRST Hero
Warren Boudreau Warren Boudreau is offline
Registered User
FRC #0180 (Team SPAM)
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 1999
Location: Stuart, FL
Posts: 344
Warren Boudreau has a reputation beyond reputeWarren Boudreau has a reputation beyond reputeWarren Boudreau has a reputation beyond reputeWarren Boudreau has a reputation beyond reputeWarren Boudreau has a reputation beyond reputeWarren Boudreau has a reputation beyond reputeWarren Boudreau has a reputation beyond reputeWarren Boudreau has a reputation beyond reputeWarren Boudreau has a reputation beyond reputeWarren Boudreau has a reputation beyond reputeWarren Boudreau has a reputation beyond repute
Section 2.1.2 Rotating Light gives explicit details on wiring up the light. I think polarity does matter. The drive system on the light likes to work in one direction and not the other.

Also, we got scolded for not using relay 8 forward to power the light. From what I could gather, it has to do with disabling the robot remotely during the competition.
__________________
Warren B

Don't be afraid to think outside of the box. As long as you stay in the frame perimeter.
  #10   Spotlight this post!  
Unread 02-10-2002, 10:29 AM
Curtis Williams Curtis Williams is offline
Registered User
#0588 (Team 588)
Team Role: College Student
 
Join Date: Jan 2002
Rookie Year: 2001
Location: Jacksonville, FL
Posts: 122
Curtis Williams is on a distinguished road
Send a message via ICQ to Curtis Williams Send a message via AIM to Curtis Williams Send a message via MSN to Curtis Williams Send a message via Yahoo to Curtis Williams
You can put the light on any relay, but you need to set that relay to always be in foreward. When the robot is disabled, all the outputs are disconnected by the master processor, so the light turns off. The judges probably dont want you to have direct control of the light for safety reasons. If you want to cut off the light for testing, just unplug the data cable to the relay. Just remember to plug it back in before you go to a match.
  #11   Spotlight this post!  
Unread 02-11-2002, 01:21 PM
CaptainPlaid's Avatar
CaptainPlaid CaptainPlaid is offline
Registered User
#0314 (Megatron Oracles "Big MO")
 
Join Date: Jan 2002
Location: Flint, MI
Posts: 60
CaptainPlaid is an unknown quantity at this point
The rule on rotation actually comes from the wiring more than the light itself. You have to use specific color-coded wire to connect the light. The rotation was more of an issue 2 years ago when we only had the one lead on the light. Now that it is a two wire set-up just hook up the two wires correctly and you will be all set.
__________________
I have not failed. I have just found 10,000 ways that won't work.
Thomas Edison
  #12   Spotlight this post!  
Unread 02-12-2002, 10:54 AM
punarhero's Avatar
punarhero punarhero is offline
Registered User
#0696 (Clark Magnet Robotics)
Team Role: Programmer
 
Join Date: Jan 2002
Location: la crescenta
Posts: 67
punarhero is an unknown quantity at this point
Send a message via AIM to punarhero Send a message via Yahoo to punarhero
Thanx u all

I wasn't aware of the rule about the light always being on. I thought it might be like last year, when we had our light toggle. But thanx anyway to u all
  #13   Spotlight this post!  
Unread 02-12-2002, 11:09 AM
Unsung FIRST Hero
Mike Betts Mike Betts is offline
Electrical Engineer
no team
Team Role: Engineer
 
Join Date: Dec 2001
Rookie Year: 1995
Location: Homosassa, FL
Posts: 1,443
Mike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond repute
After all, it is just a warning light...

Not true...

Yes, the light does serve as a warning. However, the biggest reason for having such a large light with colored lenses is so that the spectators can determine which robots are on which team.

In the first year of the "alliances", even the operators had a hard time remembering who was on your team and who was opposing you.

As far as the technical question is concerned, simply hook up the spike to relay 8 and wire the light red(+) and black(-) and move on... You should have bigger issues to worry about.
__________________
Mike Betts

Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013

As easy as 355/113...
  #14   Spotlight this post!  
Unread 02-12-2002, 02:18 PM
kmcclary's Avatar
kmcclary kmcclary is offline
Founder 830/1015;Mentor 66/470/1502
FRC #0470 (Alpha Omega Robotics)
Team Role: Engineer
 
Join Date: Aug 2001
Rookie Year: 1994
Location: Ann Arbor, MI
Posts: 489
kmcclary has a reputation beyond reputekmcclary has a reputation beyond reputekmcclary has a reputation beyond reputekmcclary has a reputation beyond reputekmcclary has a reputation beyond reputekmcclary has a reputation beyond reputekmcclary has a reputation beyond reputekmcclary has a reputation beyond reputekmcclary has a reputation beyond reputekmcclary has a reputation beyond reputekmcclary has a reputation beyond repute
Light direction

Everyone is still missing the point of my question.

Yes, the light HAS to ALWAYS be on whenever the robot is enabled.

Yes, you must wire the red to M+, black to M-, etc...

Yes, you must wire it to a spike, and command it to simply turn on in the loop, and NOT turn it off anywhere in your code.

Doing it this way insures that it acts properly WRT the game. Since you have to keep hitting a spike with an ON command of SOME kind to keep it running or it shuts itself off, simply hitting with an ON command of one kind each loop has the SIDE EFFECT of autoenabling of the light whenever the robot is on, and turning it when the robot is disabled (very cute... :-).

However, no one has still shown me a RULE that states the SPIN DIRECTION of the rotating light matters. If for example you followed ALL the wiring rules and simply placed a "reverse" statement at the top of the loop instead of "forward", it would follow ALL the design rules and look and behave JUST the same EXCEPT for turning the other way around while on. No big deal, and I don't see ANY place where it says that is illegal.

BTW, there IS a reason why I ask <grin>, but unfortunately with our latest design change makes answer moot and more for curiosity for future possibilities than anything else.

If someone sees ANYWHERE in the rules (or in a ruling) that says the light MUST rotate THIS PARTICULAR WAY, please quote the rule.

Thanks!

- Keith McClary, Advisor, Huron High Team 830 "Rat Pack"
__________________
Keith McClary - Organizer/Mentor/Sponsor - Ann Arbor MI area FIRST teams
ACTI - Automation Computer Technologies, Inc. (Sponsoring FIRST teams since 2001!)
MI Robot Club (Trainer) / GO-Tech Maker's Club / RepRap-Michigan) / SEMI CNC Club
"Certifiably Insane": Started FIVE FRC teams & many robot clubs (so far)!
2002: 830 "Rat Pack" | 2003-5;14: 1015;1076 "Pi Hi Samurai" | 2005-6: 1549 "Washtenuts"/"Fire Traxx"
2005-(on): 1502 "Technical Difficulties" | 2006-(on): FIRST Volunteer!
2009-(on): 470 "Alpha Omega" | WAFL | Sponsor & "Floating Engineer" for MI Dist 13 (Washtenaw Cnty)
2011: 3638 "Tigertrons" | 2013-(on): 4395 "ViBots" | 2014-(on) 66 "Grizzlies"
"Home" Teams: 66, 470, 1076, 1502, 4395
Local FIRST alumni at or coming to Ann Arbor (UM/EMU/WCC/Cleary)?
...We Want YOU as a Mentor! Please email me for info!
Support CDF Reputation - If a posting helped, thank 'em with rep points!
"It must be FRC build season when your spouse and children become 'Action Items 8 & 9'..."
  #15   Spotlight this post!  
Unread 02-12-2002, 03:50 PM
Ian W. Ian W. is offline
College? What?
no team (Gompei and the Herd)
Team Role: College Student
 
Join Date: Jan 2002
Rookie Year: 2002
Location: Worcester, MA | Smithtown, NY
Posts: 1,464
Ian W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to all
Send a message via AIM to Ian W.
well, i think it's more of the fact that the light doesn't turn the other way. i'm not completely sure, but i remember reading that somewhere here.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Please...no more steenkin' light! Andrew General Forum 37 04-17-2003 10:06 PM
light visibility Erinn888 General Forum 30 02-17-2003 02:56 PM
About the light that need to be seen from four side archiver 2000 3 06-23-2002 10:01 PM
Important info about light Jay Lundy Technical Discussion 10 04-12-2002 10:37 AM
How many posters does it take to change a lightbulb? Brandon Martus Chit-Chat 7 02-22-2002 06:48 PM


All times are GMT -5. The time now is 08:37 PM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi