Page 1 of 1

Get position servo using SC16A

PostPosted: Mon Mar 14, 2011 4:56 pm
by tjanggut
Hi,
i want to control servo motor and get the position only using SC16A and PC (not using addition microcontroller as host).Is it can or not?

If can... Thats mean i need to modified the VB code that provide by Cytron right?

for request feedback it just only write:

Try
serialPort.Write(StrConv(Chr(&H40),VbStrConv.None))
serialPort.Write(StrConv(Chr(&H41), VbStrConv.None))
Catch ex As Exception
MsgBox(ex.ToString)

right?

The question is,
How about to get the position?
I appreciate if you can show the method.

-beginner VB- :ugeek:

Re: Get position servo using SC16A

PostPosted: Tue Mar 15, 2011 12:34 pm
by tjanggut
ok2.
i got it. try and error.

i use
serialPort.ReadByte()

It give me the Integer value.

Re: Get position servo using SC16A

PostPosted: Tue Mar 15, 2011 2:18 pm
by ABSF
Good posting your findings here so other forumers using VB and SC16A can gain from your experience.

Allen