Go to Post I am definitely as much a student as any one of the kids on the team. - Hieb [more]
Home
Go Back   Chief Delphi > Technical > Control System
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 07-10-2007, 22:53
Bryan Herbst's Avatar
Bryan Herbst Bryan Herbst is offline
Registered User
AKA: Bryan
FRC #2052 (KnightKrawler)
Team Role: Mentor
 
Join Date: Sep 2007
Rookie Year: 2007
Location: Minneapolis, Minnesota
Posts: 544
Bryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond repute
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?
__________________
Team 2052- Knightkrawler
Mentor and volunteer
  #2   Spotlight this post!  
Unread 08-10-2007, 00:27
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,112
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: OI control box, LED questions

Quote:
Originally Posted by Tanis View Post
Where in the coding do the pins for the relay lights get mapped to relay lights (or is it in the OI's code)?
It's in the user_routines.c file, I think at the end of either process_data_from_master_uP() or Default_routine() (don't rely on my memory for proper spelling or capitalization of the function names).

Quote:
Finally, is there a way to hook up an LED display (4 digit) to the OI?
The OI already has a 4-digit LED display. You can use the "user byte" feature to send an eight-bit integer to be shown on it.

Quote:
We were thinking that an LED display to display the pressure in the pneumatics would be a great feature.
We did exactly that for our 2004 robot. A "diagnostic select" switch let us choose among pneumatic pressure and feedback from the turret, elbow, and wrist position sensors. It turned out not to be very useful during competition, but it helped a lot for setting limits and presets when programming.

Quote:
We would like to hook something like this up to the OI. Ignoring external power rules, could we make it work?
If you want to do something like that, using the dashboard port is probably the best way to do it. External power is not an issue for things connected to it, and you can send back six bytes of arbitrary data without restriction. You can also cheat and repurpose unused PWM channels as extra data bytes (though I think the value FF is forbidden, and gets sent as FE).
  #3   Spotlight this post!  
Unread 09-10-2007, 16:01
Bryan Herbst's Avatar
Bryan Herbst Bryan Herbst is offline
Registered User
AKA: Bryan
FRC #2052 (KnightKrawler)
Team Role: Mentor
 
Join Date: Sep 2007
Rookie Year: 2007
Location: Minneapolis, Minnesota
Posts: 544
Bryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond repute
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?
__________________
Team 2052- Knightkrawler
Mentor and volunteer
  #4   Spotlight this post!  
Unread 09-10-2007, 16:43
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,112
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: OI control box, LED questions

Quote:
Originally Posted by Tanis View Post
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.
Those pins are a hardware feature of the OI. There's no code associated with them, other than the code which turns the LEDs on or off. You can find the pinout in the OI reference guide that you can download here; look for the documentation of ports 1 and 3.
Quote:
Is there a guide out there for using the dashboard port for inputs/outputs?
It's output only. The dashboard specification is included in the .zip file with the Dashboard Viewer program.
  #5   Spotlight this post!  
Unread 11-10-2007, 16:15
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,112
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: OI control box, LED questions

Again, you can find the pinout in the OI reference guide that you can download here.
  #6   Spotlight this post!  
Unread 12-10-2007, 18:02
Bryan Herbst's Avatar
Bryan Herbst Bryan Herbst is offline
Registered User
AKA: Bryan
FRC #2052 (KnightKrawler)
Team Role: Mentor
 
Join Date: Sep 2007
Rookie Year: 2007
Location: Minneapolis, Minnesota
Posts: 544
Bryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond repute
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.
__________________
Team 2052- Knightkrawler
Mentor and volunteer
  #7   Spotlight this post!  
Unread 13-10-2007, 00:20
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,112
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: 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:
Connect the DASHBOARD port to the RS-232 serial port of a computer using a DB9 Male-Female Pin-to-Pin cable (maximum length 6 ft.).
  #8   Spotlight this post!  
Unread 22-10-2007, 15:36
Bryan Herbst's Avatar
Bryan Herbst Bryan Herbst is offline
Registered User
AKA: Bryan
FRC #2052 (KnightKrawler)
Team Role: Mentor
 
Join Date: Sep 2007
Rookie Year: 2007
Location: Minneapolis, Minnesota
Posts: 544
Bryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond repute
Re: OI control box, LED questions

I'm still a bit lost here.

You said that I would likely be able to run an LED display through the dashboard port, so how would I do it? Which pins would I hook it up to? How do I reference these pins in the code?
__________________
Team 2052- Knightkrawler
Mentor and volunteer
  #9   Spotlight this post!  
Unread 24-10-2007, 00:18
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,112
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: OI control box, LED questions

Displaying a number is more involved than simply connecting LEDs to pins. Since you said you wanted a four-digit display, I was suggesting that you use the dashboard output to do it. Unless you want to design and program your own circuit to decode the data stream, it's going to involve a computer with a serial port.
  #10   Spotlight this post!  
Unread 24-10-2007, 15:38
Bryan Herbst's Avatar
Bryan Herbst Bryan Herbst is offline
Registered User
AKA: Bryan
FRC #2052 (KnightKrawler)
Team Role: Mentor
 
Join Date: Sep 2007
Rookie Year: 2007
Location: Minneapolis, Minnesota
Posts: 544
Bryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond repute
Re: OI control box, LED questions

We already (sorta) haver a plan for that.

We are going to be hooking the OI up to something similar to this (figure 6, near the bottom of the page). All we need right now is a way to interface it with the OI. Currently, our plan only needs two analog outputs from the OI.
__________________
Team 2052- Knightkrawler
Mentor and volunteer
  #11   Spotlight this post!  
Unread 24-10-2007, 16:43
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,112
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: OI control box, LED questions

Quote:
Originally Posted by Tanis View Post
All we need right now is a way to interface it with the OI. Currently, our plan only needs two analog outputs from the OI.
The OI has no analog outputs. It has eight pins that are designed to drive LEDs with no additional circuitry, and it has the dashboard serial data connection. That's all.
  #12   Spotlight this post!  
Unread 26-10-2007, 16:14
Bryan Herbst's Avatar
Bryan Herbst Bryan Herbst is offline
Registered User
AKA: Bryan
FRC #2052 (KnightKrawler)
Team Role: Mentor
 
Join Date: Sep 2007
Rookie Year: 2007
Location: Minneapolis, Minnesota
Posts: 544
Bryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond repute
Re: OI control box, LED questions

Okay, well sounds like were just going to scrap this idea then.

Final question- what you recommend making the control box out of? The entire platform, including the area we plan to put the OI and joysticks on. Currently we have a bit of lexane sitting around, but we're open to other suggestions. Also, what do you recommend doing to color/paint designs on the control area?
__________________
Team 2052- Knightkrawler
Mentor and volunteer
  #13   Spotlight this post!  
Unread 09-10-2007, 17:47
Unsung FIRST Hero
Greg Marra Greg Marra is offline
[automate(a) for a in tasks_to_do]
FRC #5507 (Robotic Eagles)
Team Role: Mentor
 
Join Date: Oct 2004
Rookie Year: 2005
Location: San Francisco, CA
Posts: 2,030
Greg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond repute
Re: OI control box, LED questions

Quote:
Originally Posted by Tanis View Post
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.
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.
  #14   Spotlight this post!  
Unread 11-10-2007, 15:48
Bryan Herbst's Avatar
Bryan Herbst Bryan Herbst is offline
Registered User
AKA: Bryan
FRC #2052 (KnightKrawler)
Team Role: Mentor
 
Join Date: Sep 2007
Rookie Year: 2007
Location: Minneapolis, Minnesota
Posts: 544
Bryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond repute
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?
__________________
Team 2052- Knightkrawler
Mentor and volunteer
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
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


All times are GMT -5. The time now is 20:40.

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