|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
OI control box, LED questions
I have been planning on adding a custom control box to our teams controls this year, but I need some help with a few things.
First, is there a way to have an LED in the box correspond to an LED on the OI? For example- is there a way to make an LED on the light up with the switch 1 LED on the OI? Second, is there a way to use the competition port instead of one of the port ports for the box? I would include the competition switches in with the box. Thanks! |
|
#2
|
|||||
|
|||||
|
Re: OI control box, LED questions
1) Yes, you can light up external LEDs.
2) No, you CANNOT use the competition port. Check out http://www.thebluealliance.net/2006/...stom-controls/ for a PDF with a wiring guide and some other useful hints. |
|
#3
|
||||
|
||||
|
Re: OI control box, LED questions
This is correct that you can't use the competition ports for control wiring in the competition. You must connect directly between the OI controller and the field wiring. However, I recommend building autonomous and disable switches into your OI panel with a cable that you plug into the competition port while practicing and testing the robot. Building these into the panel keeps them from getting lost.
|
|
#4
|
||||
|
||||
|
Re: OI control box, LED questions
Seen the blue alliance link (tons of help).
HOW would I wire the LEDs for sw1/2/3? I saw the pwm ones, but what about switches? I was planning on building the competition switches into the box anyways. I was asking about the port because I heard someone mention they had done it. I was doubtful, so that just confirms my suspicions. Thanks. |
|
#5
|
|||||
|
|||||
|
Re: OI control box, LED questions
There are built in pull-up resistors in the OI. All you need to do is connect the correct end of the LED to the pin controlling its state and the other end to any of the ground pins. Do you know how to wire a DB15 connector for custom controls?
|
|
#6
|
|||||
|
|||||
|
Re: OI control box, LED questions
As you saw, the external LED drivers on the IFI operator interface only support the eight signals that correspond to the "PWM" and "Relay" lights. If you want feedback from limit switches, you'll just have to make the software control one of the LED signals you can use.
|
|
#7
|
||||
|
||||
|
Re: OI control box, LED questions
Okay, I think I get it. I would have to use the relay lights on the OI for switch lights, instead of relay lights? Where in the coding do the pins for the relay lights get mapped to relay lights (or is it in the OI's code)?
Finally, is there a way to hook up an LED display (4 digit) to the OI? We were thinking that an LED display to display the pressure in the pneumatics would be a great feature. We would like to hook something like this up to the OI. Ignoring external power rules, could we make it work? |
|
#8
|
|||||
|
|||||
|
Re: OI control box, LED questions
Quote:
Quote:
Quote:
Quote:
|
|
#9
|
||||
|
||||
|
Re: OI control box, LED questions
I know theres already an LED screen on the OI, but we would like to keep that open, along with the user byte, if possible.
As for the light mappings in the code, I'm not talking about where it ells the light whether to turn on or off, I'm talking about where it says that pinX = relay1_green. I found where it sets the p1_x, y, switch, trig, and the other inputs, but I couldn't find the outputs. Is there a guide out there for using the dashboard port for inputs/outputs? |
|
#10
|
|||||
|
|||||
|
Re: OI control box, LED questions
Quote:
Quote:
|
|
#12
|
||||
|
||||
|
Re: OI control box, LED questions
I'm looking for the dashboard port pinouts, that manual only has the port 1, port 2, port 3, and port 4 pinouts.
You originally told me to check the dashboard program's files, but those files only have bit/byte lists/references, no pin mappings. |
|
#13
|
|||||
|
|||||
|
Re: OI control box, LED questions
I apologize for not understanding your question fully. I think what you want to know now is in the OI reference manual section "7. Dashboard Port" on page 12:
Quote:
|
|
#14
|
|||||
|
|||||
|
Re: OI control box, LED questions
You can't have your cake and eat it too. The LED will only display whatever is set to the user byte, and while it is displaying that, none of the LED outputs will light up.
|
|
#15
|
||||
|
||||
|
Re: OI control box, LED questions
I downloaded the available dashboard files from IFI, but saw no pin mapping, only a bit/byte list. Is there a pin-out list somewhere?
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| pic: a control box | CD47-Bot | Extra Discussion | 30 | 16-03-2004 00:08 |
| Control Box Bling | phrontist | General Forum | 4 | 08-02-2004 21:07 |
| Custom Control Box | D.Viddy | Programming | 3 | 15-02-2003 11:35 |
| Box Control | Tton | General Forum | 2 | 12-02-2003 23:38 |
| control box | archiver | 2000 | 8 | 24-06-2002 00:20 |