View Single Post
  #14   Spotlight this post!  
Unread 01-06-2005, 13:49
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: Creative Misuse of Digital IO

Quote:
Originally Posted by Orborde
I've been reading about how serial communications could be used for Good Things on the robot, and since I haven't figured out quite how to use the TTL/RS232 ports, I thought of writing a serial data transfer thingy for use between two IFI RCs over the Digital I/O ports. So the question is: what happens if I wire a digital IO configured for output directly to one configured for input? Does anything dangerous result? My electronics is a little shaky, so I'm not quite sure whether this might damage the RC.
As I mentioned above, this won't be a problem if they're both battery powered. Do not try this using two AC/DC converters because the two RC grounds may be at very different potentials and much current may flow when you connect the grounds together (Many years ago, when I was a newbe engineer, I smoked some hardware when I attached a non-isolated oscilloscope probe ground to the circuit I was debugging <grin>). Furthermore, it would be pretty hard to fry the digital I/O pins because IFI uses 680 ohm series resistors to keep the current within safe limits.

BTW, I've written some code that implements a software serial transmitter that can use any I/O pin. You can find it here: http://kevin.org/frc.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org