Hello Henrik.
As you said I have to send high and low along with varaves between 700 and 2300.
did not know that controls a servo was a yes.
I am very grateful to you.
Hello Henrik.
As you said I have to send high and low along with varaves between 700 and 2300.
did not know that controls a servo was a yes.
I am very grateful to you.
Hello Henrik
And I do not know much about PicBasic Pro.
To do piquenos project I do.
I never did a project to control a servo motor by pc
You can explain me better.
I have change the vb.net program for this to work.
thank you
It would help to know the specs of the motor, just to be sure.
To some, a servo is used to unlock a car door, to others it can turn specific degrees.
The more information you provide, the more people can help.
(those 4 signals make me think of a bi-polar stepper motor)
Robert
You could also post the vb.net program.
Steve Earl www.datageo.co.uk
Hello thank you guys for the help.
Here is the data I'm sending to the pic
With vb.net
I control the camera using servo motor for movement
Private Sub TrackBar1_Scroll(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TrackBar1.Scroll
pos = CInt(TrackBar1.Value)
Label8.Text = pos
SerialPort1.Write("PC")
SerialPort1.Write("X")
SerialPort1.Write(pos)
'POS MAX 2300
'POS MIN 7000
End Sub
Last edited by cesar35; - 17th June 2014 at 13:43.
As far as I know, X1 will be 0 first time through, maybe. I always set variables to 0 at top of program.
PAUSEUS will be nothing so SERVO1 will be turned OFF quite fast.
Then the PIC will wait for the next SERIN from the PC, it won't emit more pulses until then.
Assuming your MODE is configured properly.
Robert
Last edited by Demon; - 17th June 2014 at 14:23.
Hello Robert okay
you have to make an example as I do
I think I'm losing myself in programming
Between two pic I did worked.
With pc always had the difficulty.
Thank you.
Last edited by cesar35; - 17th June 2014 at 17:15.
Bookmarks