Go to Post Don’t choose to aim for the stars because they mark the peak of our abilities, don’t choose to aim for the stars because it is easy, choose to aim for the stars because it shows the depth of our potential; choose to aim for the stars because it is hard! - Ken Leung [more]
Home
Go Back   Chief Delphi > Technical > Electrical
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 12-02-2007, 21:43
tdlrali tdlrali is offline
Registered User
FRC #0469 (Las Guerrillas)
Team Role: Programmer
 
Join Date: Sep 2006
Rookie Year: 2006
Location: MI
Posts: 377
tdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud of
Remote Reset/Prog through DigOut/Relay

I'm trying to figure out how I should set up a circuit that will allow me to remotely reset the robot or put it in programming mode via a switch on the OI or through the terminal. I know the pinouts for the reset/prog header, but I'm not sure whether it is possible to reset/prog without additional electronics (relay).

To reset or prog, the ground pin has to be connected to either the reset or prog pin. Since all the ground pins share a common ground, I thought about connecting a relay pinout to the header. Basically, if a relay output is turned off, it is grounded. So it would be possible to trigger a reset by turning off the relay output. However, the problem is: How to I keep it from always resetting the robot. I thought about turning on the output. However, while this would not trigger a reset, it would connect 5V (or whatever the voltage is) to the reset pin. I'm thinking that this is not very good for the RC Does anyone have any experience in this area?

The relay could also be switched with a digital out, but this poses the same problem as the relay: 5V on enabled.

Does anyone have anyone have any other ideas? I know it would work if I used a relay (not pinout, actual electical relay), I was just wondering if there was any other way.

Thanks a lot,
Felix N.
  #2   Spotlight this post!  
Unread 12-02-2007, 23:26
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,113
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: Remote Reset/Prog through DigOut/Relay

I installed a single wire between the PROG pin on the header and DIG17 (chosen because it was already set as an output). Since our program is based on Kevin's "Bells & Whistles" camera code, there's already a spot in the "slow loop" where it checks for a menu keypress on the program port. We added a test to detect a "p" and set the digital output to zero, which essentially causes the robot to press its own PROG button.

Since the computer has to be connected to the program port anyway in order to program the RC, this works perfectly. We do have to activate the terminal window manually from the Options menu when we first start the IFI Loader program, but we no longer have to call for a random student to stick his or her hand into the robot and press the button. Now if we could only get a wireless RS-232 converter to play nice with the IFI Loader protocol...
  #3   Spotlight this post!  
Unread 13-02-2007, 07:05
tdlrali tdlrali is offline
Registered User
FRC #0469 (Las Guerrillas)
Team Role: Programmer
 
Join Date: Sep 2006
Rookie Year: 2006
Location: MI
Posts: 377
tdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud of
Re: Remote Reset/Prog through DigOut/Relay

Cool, that's exactly what I had in mind.

I just wasn't sure about how to stop it from always triggering prog mode. Do you guys set the DigOut pin to high when you don't want to trigger it? Or do you just not set it at all (would that leave it in a neutral state, not grounded nor 5V)?
  #4   Spotlight this post!  
Unread 13-02-2007, 09:56
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,113
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: Remote Reset/Prog through DigOut/Relay

There is no "neutral" on a digital I/O pin. As an output, it will be either ground (logic 0) or +5 (logic 1). Each pin has a resistor to +5, so even if nothing is conneted, it will be pulled high (logic 1) if it's set to be an input.

We of course set the output to 1 as part of the program initialization. I don't remember whether we do it before or after it is configured as an output. The PROG signal must be grounded for a certain time before it actually takes effect, so a very brief moment when the digital output is low doesn't hurt.
  #5   Spotlight this post!  
Unread 13-02-2007, 12:48
tdlrali tdlrali is offline
Registered User
FRC #0469 (Las Guerrillas)
Team Role: Programmer
 
Join Date: Sep 2006
Rookie Year: 2006
Location: MI
Posts: 377
tdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud of
Re: Remote Reset/Prog through DigOut/Relay

Thanks a lot for the help!
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
Camera won't initialize when reset from RC - reset from OI and Power-up works, krunal Programming 7 15-01-2007 00:13
IFI Loader and PROG button Dave... Programming 3 20-02-2005 12:03
Remote Remote Kickoff for Southern California ChrisH Southern California Regional Robotics Forum 0 05-01-2004 12:36
Remote Remote Kick off at University High School George1902 Off-Season Events 4 04-01-2004 21:05
PBasic prog course in New England area Sean General Forum 0 25-05-2003 23:11


All times are GMT -5. The time now is 06:46.

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