Get position servo using SC16A

Autonomous Robot, Manual Robot, DC Motor Driver, Stepper Motor Driver, Servo, Multi PWM chip.....

Get position servo using SC16A

Postby tjanggut » Mon Mar 14, 2011 4:56 pm

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:
tjanggut
Freshie
 
Posts: 5
Joined: Sat Feb 12, 2011 10:28 am

Re: Get position servo using SC16A

Postby tjanggut » Tue Mar 15, 2011 12:34 pm

ok2.
i got it. try and error.

i use
serialPort.ReadByte()

It give me the Integer value.
tjanggut
Freshie
 
Posts: 5
Joined: Sat Feb 12, 2011 10:28 am

Re: Get position servo using SC16A

Postby ABSF » Tue Mar 15, 2011 2:18 pm

Good posting your findings here so other forumers using VB and SC16A can gain from your experience.

Allen
The next war will determine NOT who is right BUT what is left.
User avatar
ABSF
Professional
 
Posts: 810
Joined: Wed Nov 10, 2010 9:32 am
Location: E Malaysia


Return to Robot Controller

Who is online

Users browsing this forum: No registered users and 7 guests

cron