Psc comunication help
Hello
I was wondering if there are limits to the lengh of wire used to comunicate with the PSC from the BOE.
I am using twisted pair lan wire and the PSC will be located some distance from the BOE.
I have found that the servos need to be close to the PSC because they dont work right when seperated from the PSC too far.
Do I need to modify the SEROUT OR SERIN comands over long lines??
One more questioin. What damage will conecting the servo to the PSC backwards ? Ie ground wire where the signal should be.
I was wondering if there are limits to the lengh of wire used to comunicate with the PSC from the BOE.
I am using twisted pair lan wire and the PSC will be located some distance from the BOE.
I have found that the servos need to be close to the PSC because they dont work right when seperated from the PSC too far.
Do I need to modify the SEROUT OR SERIN comands over long lines??
One more questioin. What damage will conecting the servo to the PSC backwards ? Ie ground wire where the signal should be.
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office
And, you can use your twisted-pair LAN wire with RS-485.
Can you tell me the parts I need and basic connectioin to pull this off.?
The robot is an ROV and will be equipt with sevral sensors in the future so it will have a teather for power and signals.
Right now I am using the BOE and the PSC. The manual control sicks are routed through a ADC0838 > BOE and then to the PSC located on the ROV. Also the ROV will be sending back Analog Voltages from sensors. Shoud they be converted at the ROV and then sent back to the controll box as digital?
When I get all the bug worked out I will be Making an Indusrial version. Any sugestions for controllers for the real deal?
An example using a Max3209 TX and MAX3232 RX are at http://www.maxim-ic.com/appnotes.cfm/appnote_number/723
It is beginning to sound like your 'ROV' will be quite sophisticated. It may be worth your while to have a rover-based processor talking over a tether to your control-station processor via RS485 drivers (for the distance), using the SERIN/SEROUT protocols (for simplicity).
Any analog signals should be captured and digitized as close to the source as possible. Then longer range digital transmission can be used to pass the signals to the operator.
Controllers for the real-deal: Since the BS2 is PIC-based, and others do market compilers compatible with PBasic, you might want to research a PIC 16F876 approach.
·
Do you mean as example a BOE on the rover, and one in the controller box??
I like that to the ROV coud do all the calulations and send only results over the RS485, while the controller box only has to wory about sending servo controll and comands to the ROV
http://www.basicmicro.com/Product.aspx?productID=91&CategoryID=11
This board will accept a BS2, and fit in a Pac-Tec HML-ET box. You'll need to add your RS-485 transciever chip in the prototyping area.
On the other hand, for a prototype proof-of-concept·you could use a BOE-Bot (now $179 at Radio Shack) for your ROV (includes a BOE AND a BS2), and use your current BOE for the controller.
Post Edited (allanlane5) : 12/17/2004 7:27:47 PM GMT
I have 2 MAX485 coming free sampled.· I found that I might need the slewed model as the data rate is far bellow the max.
My new question is this can I use one DO/DI line with a 1k resistor as·I do with the ADC0838 or do I·have to use seprate IN and OUT pins ?
Do send SEROUT/SERIN strings as usual or do I need to address the MAX485 in the first part of the [noparse][[/noparse]DATA] followed by "!sc"comands?
If so where can I find PBASIC samples using the MAX485 for comunication.
·Again Thanks
If you are doing bi-directional RS-485, separate IN and OUT pins will be much easier.
You should get Jan Axelson's book, "Serial Port Complete" -- it will be a big help.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office
It looks like I have to tell one to TX·and one to RX·from the BOE.
Correct me if I am worng
I need 4 wires·1 twisted pair for data and 1 for RE pin and one for DE pin.
In my code I tell one MAX3464 to·TX and the onter to RX by setting their pin state, then send the data string. When I want servo pos then I have to do the opposite.
this brings me to one other question. How do I put a pin in Tri state from the BOE?
say for exapmle RE pin is going to be Low or Tri state only I will not be using the high state option.qqqqa
Post Edited (AJI) : 12/29/2004 3:21:52 AM GMT
Thus, to set pin 3 as a tri-state:
INPUT 3
or DIR3 = 0 ' Set pin 3 to input ('1' is output on the BS2)
Next question, On the Max3088 Data sheet It shows the controll voltages as either " 1 ", " 0 ", or " X ". Is the " X " tristate or is it disabled??
Thanks
·
So I can connect the same controll wire to both DE and RE pins, because DE=1 RE=X for Transmit and RE=0 DE=X for receive.
All I have to do is set pin High or Low respectfully.
I will try it when I get Home.
thanks. I was using tristate for X