Go to Post ...if you say "AndyMark" three times we show up... - Billfred [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 19-03-2008, 02:52
Racer26 Racer26 is offline
Registered User
no team
Team Role: Alumni
 
Join Date: Apr 2003
Rookie Year: 2003
Location: Beaverton, ON
Posts: 2,229
Racer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond repute
Using Digital I/O lines...

A thought that just occurred to me.

In the past 1075 has come very close to using all 8 of our relay outputs on the RC.

From my understanding of how they work, is they're basically a GND line with two signal lines, 1 for forward, and 1 for reverse.

This leads me to a 2part question:

1) Could you not then, in theory, configure some of your Digital I/Os as Output, and emulate the Relay ports by switching two signal lines appropriately?

2) Would this be FRC legal?
  #2   Spotlight this post!  
Unread 19-03-2008, 02:55
Eugene Fang's Avatar
Eugene Fang Eugene Fang is offline
The Blue Alliance
no team
Team Role: Alumni
 
Join Date: Jan 2007
Rookie Year: 2000
Location: Bay Area, CA -> Pittsburgh, PA
Posts: 772
Eugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond repute
Re: Using Digital I/O lines...

I don't know about your question, but you could save some relay outs if you're using pneumatics by hooking up two solenoids to one spike.
__________________
Eugene Fang
2010 Silicon Valley Regional Dean's List Finalist

Various FLL Teams - Student (2000-2006), Mentor (2007-2010)
FRC Team 604 - Student (2007-2010), Mentor/Remote Advisor (2011-2015)
FRC Team 1323 - Mentor/Remote Advisor (2011-2014)

The Blue Alliance | TBA GameDay | TBA Android App
  #3   Spotlight this post!  
Unread 19-03-2008, 02:59
Racer26 Racer26 is offline
Registered User
no team
Team Role: Alumni
 
Join Date: Apr 2003
Rookie Year: 2003
Location: Beaverton, ON
Posts: 2,229
Racer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond repute
Re: Using Digital I/O lines...

Potentially, yes, you could share a spike. Depending on the utilization and types of solenoids being used.
  #4   Spotlight this post!  
Unread 19-03-2008, 03:00
Guy Davidson Guy Davidson is offline
Registered User
AKA: formerly sumadin
FRC #0008 (Paly Robotics)
Team Role: Alumni
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Ra'anana, Israel
Posts: 660
Guy Davidson is a splendid one to beholdGuy Davidson is a splendid one to beholdGuy Davidson is a splendid one to beholdGuy Davidson is a splendid one to beholdGuy Davidson is a splendid one to beholdGuy Davidson is a splendid one to beholdGuy Davidson is a splendid one to beholdGuy Davidson is a splendid one to behold
Send a message via ICQ to Guy Davidson Send a message via AIM to Guy Davidson Send a message via MSN to Guy Davidson
Re: Using Digital I/O lines...

I'm not sure about whether or not you could do it, but, I don't think it would be FRC legal. On some level, it oculd be considered a custom circuit, and as per R03, that might be illegal. Actually, I think it's outright illegal by R62:

Quote:
Originally Posted by <R62>
All electrical loads (motors, actuators, compressors) must be controlled by relay or PWM output signals sent by the Robot Controller...
I guess it depends on how you read that rule. I don't see anything else in the manual that would prohibit it though.
__________________
  #5   Spotlight this post!  
Unread 19-03-2008, 03:14
Racer26 Racer26 is offline
Registered User
no team
Team Role: Alumni
 
Join Date: Apr 2003
Rookie Year: 2003
Location: Beaverton, ON
Posts: 2,229
Racer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond repute
Re: Using Digital I/O lines...

Looks to me like <R62> DOES indeed prohibit it. I can't see why it wouldn't be electrically possible to do though.

EDIT: I suspect <R62> prohibits it because the USER processor directly controls the Dig I/O lines I think, whereas the Relay/PWM ports are controlled by the Master processor, which locks them out when disabled.
  #6   Spotlight this post!  
Unread 19-03-2008, 04:37
The Lucas's Avatar
The Lucas The Lucas is offline
CaMOElot, it is a silly place
AKA: My First Name is really "The" (or Brian)
FRC #0365 (The Miracle Workerz); FRC#1495 (AGR); FRC#4342 (Demon)
Team Role: Mentor
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Dela-Where?
Posts: 1,564
The Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond repute
Send a message via AIM to The Lucas
Re: Using Digital I/O lines...

1) It will work

2) It is illegal per <R62>

I inspected a team that was using digital outs instead of relay outputs. It was a misunderstanding on how to use EasyC. The system worked, even stopped the compressor at the right time (they wrote code for that). They changed the wiring and the code to use the OItoRelay function.
__________________
Electrical & Programming Mentor ---Team #365 "The Miracle Workerz"
Programming Mentor ---Team #4342 "Demon Robotics"
Founding Mentor --- Team #1495 Avon Grove High School
2007 CMP Chairman's Award - Thanks to all MOE members (and others) past and present who made it a reality.
Robot Inspector
"I don't think I'm ever more ''aware'' than I am right after I burn my thumb with a soldering iron"

Last edited by The Lucas : 19-03-2008 at 04:46.
  #7   Spotlight this post!  
Unread 19-03-2008, 10:22
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is offline
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,745
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: Using Digital I/O lines...

Quote:
Originally Posted by 1075guy View Post
Looks to me like <R62> DOES indeed prohibit it. I can't see why it wouldn't be electrically possible to do though.

EDIT: I suspect <R62> prohibits it because the USER processor directly controls the Dig I/O lines I think, whereas the Relay/PWM ports are controlled by the Master processor, which locks them out when disabled.
The relay lines are controlled by the User processor as well, much like PWMs 13-16. The PWMs and Relay lines are just sent through buffers that are enabled/disabled by the master processor. So yes, the reason it's illegal is because the relays couldn't be disabled directly by the master processor anymore.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
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
Using Analog Inputs as Digital (on the OI) Guy Davidson Control System 16 10-03-2008 17:17
Using Digital Output to control Brake/Coast on Victor Neurovirus Programming 11 31-01-2008 23:33
No value in digital ins using NASON pressure switch. Ari Allyn-Feuer Programming 1 18-02-2006 01:18
Digital Caliper as a Digital Readout on Small Mill sanddrag Technical Discussion 9 13-10-2005 22:51
cruise lines robot180 Chit-Chat 9 29-06-2004 22:03


All times are GMT -5. The time now is 01:47.

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