Page 1 of 1

[HELP] regarding SC16A & SK40-C1

PostPosted: Wed Dec 08, 2010 11:59 am
by hansonlyz
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?

Re: [HELP] regarding SC16A & SK40-C1

PostPosted: Wed Dec 08, 2010 11:38 pm
by yonghui
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

Re: [HELP] regarding SC16A & SK40-C1

PostPosted: Thu Dec 09, 2010 12:52 pm
by hyng
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

Re: [HELP] regarding SC16A & SK40-C1

PostPosted: Mon Dec 13, 2010 12:37 am
by hansonlyz
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?

Re: [HELP] regarding SC16A & SK40-C1

PostPosted: Wed Dec 15, 2010 4:42 pm
by ober
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.

Re: [HELP] regarding SC16A & SK40-C1

PostPosted: Thu Dec 16, 2010 4:32 pm
by hansonlyz
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.