|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
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
|
|||||
|
|||||
|
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.
|
|
#3
|
|||
|
|||
|
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
|
||||||
|
||||||
|
Quote:
|
|
#5
|
|||||
|
|||||
|
Quote:
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. Last edited by Greg Ross : 17-02-2003 at 12:59. |
|
#6
|
|||
|
|||
|
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
|
|||||
|
|||||
|
Quote:
![]() |
|
#8
|
|||
|
|||
|
Re: turn on the light - question
Quote:
'===========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) |
|
#9
|
|||
|
|||
|
what's wrong with just plugging it into one of the 20amp fuses and grounding it?
|
|
#10
|
|||
|
|||
|
Quote:
|
|
#11
|
|||||
|
|||||
|
The best part?
relay8_fwd = 1 -- light turns clockwise relay8_rev = 0 relay8_fwd = 0 -- light turns counterclockwise relay8_rev = 1 |
|
#12
|
|||||
|
|||||
|
Quote:
It had no real purpose, but it was nifty to see. |
|
#13
|
||||
|
||||
|
I can imagine the excitement
![]() |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |