![]() |
Creative Misuse of Digital IO
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.
|
Re: Creative Misuse of Digital IO
Quote:
Joe J. |
Re: Creative Misuse of Digital IO
Quote:
I would disagree. The TTL port is meant to be used by a device which derives it's power from the RC (such as a SMiRF or CMU2cam). I am unsure if the RC has an optocoupler on this port. I rather doubt it. and you don't want the power supplies of the RC's fighting each other... Unless IFI says different, I would wirewrap a small optical interface board where the RX side of each channel was powered by the receiving RC's +5V and GND. There are many optoisolators which can be used. As an example, I would recommend the HCPL2300 IC chip with a 3.3K series input resistor and a output inverter/buffer for this task. If IFI says it is OK, you could connect only TX RX and GND and not connect the +5 power between RC controllers. Bottom line, I would not direct connect without talking to IFI first. Mike |
Re: Creative Misuse of Digital IO
Quote:
-Kevin |
Re: Creative Misuse of Digital IO
I would listen to Betts or Watson on this one. I am just an ME are heart. I was thinking about what I would do on my benchtop rather than the possible problems Mr. Betts brings up.
I would think all would be well if the ground wires for the RC's would be connected. What do the Sparkies in the audience say? Joe J. |
Re: Creative Misuse of Digital IO
Not to be a bugger, but I don't think he intends to use the TTL port...he meant using the Digital sensor input/outputs..at least thats what I got from his post. I'm no electrical guy, but I don't think that'd be a problem, I'd perfer to have someone a little more experienced confirm this, I don't want anyone chasing after me yelling "You blew up my $500 RC!"
|
Re: Creative Misuse of Digital IO
Quote:
|
Re: Creative Misuse of Digital IO
Quote:
The relay outputs are really intended to control the IFI Spike relays. Being the kind of output that does not need to rapidly turn on and off, these outputs may in fact, be to slow for your use. That being said, we have used the digital inputs for data transfer from a custom circuit to the RC. |
Re: Creative Misuse of Digital IO
Quote:
|
Re: Creative Misuse of Digital IO
Quote:
"For advanced users, the first six digital I/O pins can be configured as hardware interrupts. While powerful, this feature can cause undesired operation if improperly used. Therefore Innovation First will not provide support for this feature. More details on using interrupts can be found by referring to the 18F8520 microcontroller datasheet and the MPLAB® C18 C Compiler User’s Guide. The Default Code has an interrupt handler written for these pins, but you must still configure and enable the interrupts to use them." |
Re: Creative Misuse of Digital IO
Quote:
|
Re: Creative Misuse of Digital IO
Just a thought:
It seems to me that if one were to connect to the Digital I/O, you wouldn't want to choose the interrupt lines, whichever ports they may be. You wouldn't want to hook the +5v lines together, because of potential differences. How about powering both robots off a single battery, or hooking the batteries together? Both would be at the same voltage level, then. On the digital i/o only using ground and signal, it seems, may be a safe experiment. This is outta my leauge, so I look forward to a response. Sparks |
Re: Creative Misuse of Digital IO
Sparks,
The RC guide speaks about the interface activity for the Digital I/O ports. See page 9 for a complete description. In effect what takes place is the inputs are all pulled up internally so that external devices only need to supply closing contacts to ground for a low or an open (pulled up internally) for a high. As outputs, the description indicates a standard tristate device in which the pin can be either high, low, or open circuit. The RC guide also points to the Programming Reference Guide for software control of the pins. |
Re: Creative Misuse of Digital IO
Quote:
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 |
| All times are GMT -5. The time now is 04:40. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi