0
Offline
Sr. Member
Karma: 0
Posts: 340
Arduino rocks
|
 |
« on: January 13, 2013, 12:06:12 pm » |
 If I was using one of these motor controllers which can accept all sorts of protocols for sending commands, what would be the best way send commands down a cat5 cable to it from a long distance like 100ft? It's not a wiring question but a question of which command protocol will still be interpretable by the controller 100ft down a wire. Or, which protocol could most easily be made to work that far. http://www.pololu.com/catalog/category/96
|
|
|
|
|
Logged
|
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 299
Posts: 26024
Solder is electric glue
|
 |
« Reply #1 on: January 13, 2013, 12:16:52 pm » |
For that distance I would use asynchronous serial RS-232.
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Sr. Member
Karma: 0
Posts: 340
Arduino rocks
|
 |
« Reply #2 on: January 13, 2013, 12:48:37 pm » |
should I just use an arduino serial out to do that? Anything special needed for this scenario?
|
|
|
|
|
Logged
|
|
|
|
|
UK
Offline
Tesla Member
Karma: 100
Posts: 6784
-
|
 |
« Reply #3 on: January 13, 2013, 01:24:11 pm » |
should I just use an arduino serial out to do that? Anything special needed for this scenario?
You'd need an RS232 driver at each end.
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Sr. Member
Karma: 0
Posts: 340
Arduino rocks
|
 |
« Reply #4 on: January 13, 2013, 02:36:16 pm » |
why can't the arduino do it by itself?
|
|
|
|
|
Logged
|
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 299
Posts: 26024
Solder is electric glue
|
 |
« Reply #5 on: January 13, 2013, 03:44:16 pm » |
why can't the arduino do it by itself?
Because RS232 has voltages that are +12V and -12V, the arduino can only output 0V and +5V. It is the TTL option.
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Tesla Member
Karma: 58
Posts: 6774
Arduino rocks
|
 |
« Reply #6 on: January 13, 2013, 03:56:07 pm » |
In the picture I see TTL on the board. For only 100' a servo control signal might work.
|
|
|
|
|
Logged
|
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 299
Posts: 26024
Solder is electric glue
|
 |
« Reply #7 on: January 13, 2013, 04:01:19 pm » |
In the picture I see TTL on the board. For only 100' a servo control signal might work.
Yes especially if the TTL was driving an open collector transistor with a pull up to 12V or so. But he did ask what I would use and that is RS232.
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Tesla Member
Karma: 58
Posts: 6774
Arduino rocks
|
 |
« Reply #8 on: January 13, 2013, 04:12:13 pm » |
In the picture I see TTL on the board. For only 100' a servo control signal might work.
Yes especially if the TTL was driving an open collector transistor with a pull up to 12V or so. But he did ask what I would use and that is RS232. Sometimes it saves time and effort to provide options that the person may not be aware of.
|
|
|
|
|
Logged
|
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 299
Posts: 26024
Solder is electric glue
|
 |
« Reply #9 on: January 13, 2013, 04:15:36 pm » |
Sometimes it saves time and effort to provide options that the person may not be aware of.
If I am asked what I would do then why should I reply with something I would not do. You have to admit that sending TTL down a 100' line is not a sure fire hit is it?
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Sr. Member
Karma: 13
Posts: 383
The last thing you did is where you should start looking.
|
 |
« Reply #10 on: January 13, 2013, 04:48:22 pm » |
You could use a current loop. OR Does anyone know if I2C would work?
|
|
|
|
|
Logged
|
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 299
Posts: 26024
Solder is electric glue
|
 |
« Reply #11 on: January 13, 2013, 05:14:35 pm » |
Does anyone know if I2C would work? Yes ..... No
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Tesla Member
Karma: 58
Posts: 6774
Arduino rocks
|
 |
« Reply #12 on: January 13, 2013, 05:48:39 pm » |
Sometimes it saves time and effort to provide options that the person may not be aware of.
If I am asked what I would do then why should I reply with something I would not do. You have to admit that sending TTL down a 100' line is not a sure fire hit is it? Not a sure fire miss ether. You do what you, better or worse. 
|
|
|
|
|
Logged
|
|
|
|
|
Offline
God Member
Karma: 10
Posts: 957
|
 |
« Reply #13 on: January 13, 2013, 05:57:33 pm » |
what if you buy a shielded network cable, you might get away with 5v logic
|
|
|
|
|
Logged
|
|
|
|
|
|