[HELP] regarding SC16A & SK40-C1

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

[HELP] regarding SC16A & SK40-C1

Postby hansonlyz » Wed Dec 08, 2010 11:59 am

Question 1:
has anyone tried to control servo motors connected to SC16A interfacing with MATLAB?
Because I'm trying to do some project involving image processing using MATLAB and based on the result, the servo motor will respond.

Question 2:
can I link SC16A and SK40-C1 to automatically control servo motors after inserting program codes into SK40-C1's micro-controller?

Question 3:
can I use MATLAB to program SK40-C1 via USB ICSP PIC Programmer V2010?
hansonlyz
Freshie
 
Posts: 4
Joined: Mon Dec 06, 2010 9:43 pm

Re: [HELP] regarding SC16A & SK40-C1

Postby yonghui » Wed Dec 08, 2010 11:38 pm

hi,


question 2:
SK40C, choose a PIC with Uart peripheral, 16F877A etc. .then u can commmunicate with the servo controller.

question 3:

why need matlab to program SK40C? why is it not pre program the Sk40C so that SK40C can response to matlab commands sent by u?

regards,
yh
thanks&regards,
yh
yonghui
Moderator
 
Posts: 732
Joined: Mon Sep 28, 2009 3:27 pm

Re: [HELP] regarding SC16A & SK40-C1

Postby hyng » Thu Dec 09, 2010 12:52 pm

Hi,

I dont think you can use MATLAB to program SK40-C1 via USB ICSP PIC Programmer V2010. In your project, is there any other application except the SC16A to control the servo? If no, then you can just connect the SC16A to the PC with the USB B Type cable. After you plug it in, it will serve as a serial port and you can start communicate with SC16A. There is a sample GUI on the SC16A product page which i think you can play with it first. Therefore, i think you should use MPLab to communicate directly with the SC16A.

If you really need the SK40C, then you can use product UC00A (USB to serial converter)
http://www.cytron.com.my/viewProduct.ph ... ELkvNorqU=
to communicate with PC. But then you need two UART because both UC00A and SC16A is using UART protocol. Since 16F877A only has one UART, you need to write a software UART. Sample code is shown on PR27. You may refer to it.

Good luck
User avatar
hyng
Moderator
 
Posts: 292
Joined: Thu Apr 16, 2009 11:35 am

Re: [HELP] regarding SC16A & SK40-C1

Postby hansonlyz » Mon Dec 13, 2010 12:37 am

yonghui WROTE:question 3:

why need matlab to program SK40C? why is it not pre program the Sk40C so that SK40C can response to matlab commands sent by u?


is it possible to do that? any guide/ tutorial available that i can find?
hansonlyz
Freshie
 
Posts: 4
Joined: Mon Dec 06, 2010 9:43 pm

Re: [HELP] regarding SC16A & SK40-C1

Postby ober » Wed Dec 15, 2010 4:42 pm

Well, basically if the MATLAB can send data to serial COM port, you can do anything. :D

We are not familiar with MATLAB so there is not exact sample for you to refer.

You need to write program for MATLAB, and also SK40C to listen and process the command send by MATLAB.
Ober Choo
Cytron Technologies Sdn Bhd
www.cytron.com.my
User avatar
ober
Moderator
 
Posts: 1486
Joined: Wed Apr 15, 2009 1:03 pm

Re: [HELP] regarding SC16A & SK40-C1

Postby hansonlyz » Thu Dec 16, 2010 4:32 pm

ober WROTE:Well, basically if the MATLAB can send data to serial COM port, you can do anything. :D

We are not familiar with MATLAB so there is not exact sample for you to refer.

You need to write program for MATLAB, and also SK40C to listen and process the command send by MATLAB.


i have no idea how to do that. anyway, I'm still looking for info about it.

As for MATLAB, i found out that Arduino Duemilanove, the one you are selling, does function with MATLAB. So i might try out with Arduino.
hansonlyz
Freshie
 
Posts: 4
Joined: Mon Dec 06, 2010 9:43 pm


Return to Robot Controller

Who is online

Users browsing this forum: No registered users and 23 guests

cron