Hi
I need to encoded pelco D command with arduino and run two dc engine (pan&tilt)
can anyone help me with this code??
thanks
What have you done so far?
I believe Pelco D is an RS-232 level protocol, so do you have a TTL to RS-232 level converter?
thanks for your attention
I put all the hardware together i receive the pelco d command true max485 to the serial input at 2800 baud i can tell that the hardware is working.
I need to read the command (serial.read) and encode it.
can anyone help me with this code??
Maybe, if you posted it.
... need it almost from scratch is there a library anywhere i can find??
The spec, excluding indices and title, is just four pages long.
Do you have any experience of C programming?
no,but i have experience with VB
i believe i can handle it!
So, you've looked at the code already posted on the forum for Pelco-d.
What were the difficulties you found with it?
All the code i fined was for the DECODER side i need the code for the ENCODER side.
Try Exhibition/gallery.
Try google.
I I got confused the last post i need the DECODER part.
anyway thanks for your concern.
I I got confused the last post i need the DECODER part.
To reduce confusion, you really need to detail just what you are trying to do. Do you want to make a controller to control a Pelco cam, or do you want to make a pan/tilt cam setup that can be controlled via a Pelco cam controller, or do you want to do something else?
sorry for the inaccurate post.
what I want to do is a a pan/tilt cam setup that can be controlled via a Pelco cam controller.
I have a pelco_d outlet which i connect to the arduino true RX (i have it working) ! no problem.
the only thing left is to decode the income pelco command to control dc engine or what ever.
thanks for your attention
shimon
Are they standard dc motors, stepper motors, or servos?
there are 3 standard dc motors for pan tilt and zoom
Define "standard DC motor".
A phone vibra could be a DC motor, but so could a diesel starter motor.
A toy car drive motor could run on a few hundred milliamps, or it could be a R/C model car motor, pulling tens of amps at stall.
Decoding is probably easier than encoding, but until you start telling us what you have, what you need, what you can and cannot do, this is just a parlour guessing game.
12v 100ma engine
Probably could have worded the question better.
If it's not a servo or a stepper, you'll probably need some sort of positional feedback.
need no feedback
Fair enough.