Go to Post We can be equal, but not truly the same. - Molten [more]
Home
Go Back   Chief Delphi > Technical > Programming
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 17-02-2003, 10:48
powercat powercat is offline
Registered User
no team
 
Join Date: Jan 2003
Location: Kansas
Posts: 14
powercat is an unknown quantity at this point
turn on the light - question

Greetings,
Our rotating beacon is currently on whenever the robot has power. Should
I set it to only power on when comp_mode is 1. That way its off, until the start of the competition ?

just want to do it right.

thanks.
  #2   Spotlight this post!  
Unread 17-02-2003, 11:07
Greg Ross's Avatar
Greg Ross Greg Ross is offline
Grammar Curmudgeon
AKA: gwross
FRC #0330 (Beach 'Bots)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Hermosa Beach, CA
Posts: 2,245
Greg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond repute
Send a message via AIM to Greg Ross Send a message via Yahoo to Greg Ross
Re: turn on the light - question

You need to hook up your light to a spike relay connected to one of the relay outputs on the robot controller. In your program, all you need to do is be sure that that relay is on all the time. The robot controller will take care of turning it off when your robot is disabled.
__________________
Greg Ross (The Grammar Curmudgeon formerly known as gwross)
S/W Engineer, Team 330, the Beach 'Bots
<--The Grammar Curmudgeon loves this cartoon.
“Life should not be a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming "Wow! What a Ride!" Hunter S. Thompson
"Playing a practical joke means doing something mean and calling it funny." Me
  #3   Spotlight this post!  
Unread 17-02-2003, 11:30
powercat powercat is offline
Registered User
no team
 
Join Date: Jan 2003
Location: Kansas
Posts: 14
powercat is an unknown quantity at this point
Right now, I have it on a relay that is on all the time. (when power is applied to
the robot). Other than that, I need to do nothing else with the light ? Sorry but I want to get it right.
  #4   Spotlight this post!  
Unread 17-02-2003, 11:45
rbayer's Avatar Unsung FIRST Hero
rbayer rbayer is offline
Blood, Sweat, and Code
no team (Teamless Orphan)
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Minnetonka, MN
Posts: 1,087
rbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of light
Send a message via AIM to rbayer
Quote:
Originally posted by powercat
Right now, I have it on a relay that is on all the time. (when power is applied to
the robot). Other than that, I need to do nothing else with the light ? Sorry but I want to get it right.
That is correct. Whenever the robot is in "disabled" mode, all relays and PWMs will be set to 0 or 127, respectively, regardless of what your code is telling them to do. This is to insure that it is impossible to drive before or after the match.
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php
  #5   Spotlight this post!  
Unread 17-02-2003, 12:57
Greg Ross's Avatar
Greg Ross Greg Ross is offline
Grammar Curmudgeon
AKA: gwross
FRC #0330 (Beach 'Bots)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Hermosa Beach, CA
Posts: 2,245
Greg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond repute
Send a message via AIM to Greg Ross Send a message via Yahoo to Greg Ross
Quote:
Originally posted by powercat
Right now, I have it on a relay that is on all the time. (when power is applied to
the robot). Other than that, I need to do nothing else with the light ? Sorry but I want to get it right.
Are you saying that you already had your light hooked up as Rob and I described, and you still observed the behavior you described in your original post? Or are you just expressing incredulity that my advice was correct?

Take a look at the Robot Electrical Blueprint. Near the lower left corner it shows how your light and its relay need to be connected electrically. (It omits the ground wire from the relay back to the distribution panel. If you need help with that let us know.) You'll note that the light is isolated from the rest of the electrical system by the relay. (That is, the light wires are not connected to the same terminals as any other wires.)

If your light is connected as shown, then you have a bad spike relay.
__________________
Greg Ross (The Grammar Curmudgeon formerly known as gwross)
S/W Engineer, Team 330, the Beach 'Bots
<--The Grammar Curmudgeon loves this cartoon.
“Life should not be a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming "Wow! What a Ride!" Hunter S. Thompson
"Playing a practical joke means doing something mean and calling it funny." Me

Last edited by Greg Ross : 17-02-2003 at 12:59.
  #6   Spotlight this post!  
Unread 17-02-2003, 13:05
powercat powercat is offline
Registered User
no team
 
Join Date: Jan 2003
Location: Kansas
Posts: 14
powercat is an unknown quantity at this point
Sorry, not trying to offend anyone.
I have the rotating light connected to
relay8.

relay8_fwd = 1

set that in the code.

when power is applied to the robot, the
red light starts rotating immediately. I
have not tried the disable button on our competition port dongle to see if the light stops when it is pressed.

Am going to have to check real quick.
  #7   Spotlight this post!  
Unread 17-02-2003, 14:00
Greg Ross's Avatar
Greg Ross Greg Ross is offline
Grammar Curmudgeon
AKA: gwross
FRC #0330 (Beach 'Bots)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Hermosa Beach, CA
Posts: 2,245
Greg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond repute
Send a message via AIM to Greg Ross Send a message via Yahoo to Greg Ross
Quote:
Originally posted by powercat
Sorry, not trying to offend anyone.
No offense taken. Just trying to understand.
__________________
Greg Ross (The Grammar Curmudgeon formerly known as gwross)
S/W Engineer, Team 330, the Beach 'Bots
<--The Grammar Curmudgeon loves this cartoon.
“Life should not be a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming "Wow! What a Ride!" Hunter S. Thompson
"Playing a practical joke means doing something mean and calling it funny." Me
  #8   Spotlight this post!  
Unread 20-02-2003, 09:33
TangoBravo1318 TangoBravo1318 is offline
Registered User
#1199 (Aesthetics)
 
Join Date: Feb 2003
Location: PA
Posts: 9
TangoBravo1318 is an unknown quantity at this point
Send a message via AIM to TangoBravo1318
Re: turn on the light - question

Quote:
Originally posted by powercat
Greetings,
Our rotating beacon is currently on whenever the robot has power. Should
I set it to only power on when comp_mode is 1. That way its off, until the start of the competition ?

just want to do it right.

thanks.
ok. thats correct, all you have to do is put a section of code in that looks like this:

'===========Turn on rotating light ====================
relay8_fwd=1
relay8_rev=1

'==============================================

Depending on your electricians, your light will turn on either on FWD or REV. Change one to 0 and if it dosent turn on, change the other to 0 and that one to 1. Also, the OI takes care of the light, and other "stuff". That has the same effect as "disabled" (unplugging your OI)
__________________
- Curtis
  #9   Spotlight this post!  
Unread 20-02-2003, 10:49
Lord Nerdlinger Lord Nerdlinger is offline
Registered User
#1047
 
Join Date: Jan 2003
Location: Irvine
Posts: 98
Lord Nerdlinger has a little shameless behaviour in the past
what's wrong with just plugging it into one of the 20amp fuses and grounding it?
  #10   Spotlight this post!  
Unread 20-02-2003, 12:43
TangoBravo1318 TangoBravo1318 is offline
Registered User
#1199 (Aesthetics)
 
Join Date: Feb 2003
Location: PA
Posts: 9
TangoBravo1318 is an unknown quantity at this point
Send a message via AIM to TangoBravo1318
Quote:
Originally posted by Lord Nerdlinger
what's wrong with just plugging it into one of the 20amp fuses and grounding it?
The light is only supposed to be on when the robot is enabled. Basically, you dont want the robot to be flashing in the pits. The best way (and, to my knowledge ,the ONLY way) is the way i described earlier.
__________________
- Curtis
  #11   Spotlight this post!  
Unread 20-02-2003, 22:08
Jared Russell's Avatar
Jared Russell Jared Russell is offline
Taking a year (mostly) off
FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
 
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,077
Jared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond repute
The best part?

relay8_fwd = 1 -- light turns clockwise
relay8_rev = 0

relay8_fwd = 0 -- light turns counterclockwise
relay8_rev = 1
  #12   Spotlight this post!  
Unread 21-02-2003, 22:53
JLambert's Avatar
JLambert JLambert is offline
Registered User
#0151 (Wild Cards)
 
Join Date: Jan 2003
Location: Nashua, NH
Posts: 49
JLambert is an unknown quantity at this point
Send a message via ICQ to JLambert Send a message via AIM to JLambert Send a message via Yahoo to JLambert
Quote:
Originally posted by Abwehr
The best part?

relay8_fwd = 1 -- light turns clockwise
relay8_rev = 0

relay8_fwd = 0 -- light turns counterclockwise
relay8_rev = 1
The lead programmer on our team used this as a little extra 2 years ago. He made some auto-balancing code, and when the robot was balanced on the bridge, the light reversed directions.
It had no real purpose, but it was nifty to see.
__________________
Justin Lambert
02-03: Programmer Team #151
  #13   Spotlight this post!  
Unread 22-02-2003, 17:33
Greg McCoy's Avatar
Greg McCoy Greg McCoy is offline
boiler up!
FRC #3940 (CyberTooth)
Team Role: Engineer
 
Join Date: Feb 2002
Rookie Year: 2002
Location: Kokomo, IN
Posts: 484
Greg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond repute
Send a message via AIM to Greg McCoy
I can imagine the excitement
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 17-04-2003 23:06
compressor and light question... archiver 2001 5 24-06-2002 00:47
Important info about light Jay Lundy Technical Discussion 10 12-04-2002 11:37
How many posters does it take to change a lightbulb? Brandon Martus Chit-Chat 7 22-02-2002 19:48
A quick question Joelster Technical Discussion 6 10-02-2002 09:09


All times are GMT -5. The time now is 13:48.

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