Beside Basic Stamp?
Hi,
i new to here and now currently doing a project which deal with many servo motors. and hoping to use the parallax serial servo controller (16) to control all the servos, could i know beside using the basic stamp as the host, can i use the other micro controller to control it? such as PIC micro controller?
thanks and hope to hear from u all soon.
regards
lee
i new to here and now currently doing a project which deal with many servo motors. and hoping to use the parallax serial servo controller (16) to control all the servos, could i know beside using the basic stamp as the host, can i use the other micro controller to control it? such as PIC micro controller?
thanks and hope to hear from u all soon.
regards
lee
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
And the SX52 cycles at 50 MHz. Sweet!
And if one goes with the SX, the SX/B is at the ready and will handle OT serial modes with no trouble.· If you look at the Serial Inkjet Printer project I posted in this forum you'll see that I'm using that to communicate with a BASIC Stamp host.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
so, is it mean that i can use the serial uart protocol in the PIC to control the servo controller? aand just sending the data serially to the controller?
but, is there any example, coz i saw most of the sample program use the basic stamp language, by the way, if i'm using the c language or the PIC assembly language, how is the protocol to control the servo controller?
thanks again and hope to hear from u all soon.
regards
lee
Ryan
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Ryan Clarke
Parallax Tech Support
RClarke@Parallax.com
i using PIC16F877A, is it ok?
but how is the protocol if i'm wriying in assembly language?
can u all give me some idea?
thanks to u all!
regards
lee
Ryan
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Ryan Clarke
Parallax Tech Support
RClarke@Parallax.com
so u mean i need to send '!SC' first and ended with 'CR' for each command? eg: here is my sample prog:
MOVLW '!'
CALL SERTX
MOVLW 'S'
CALL SERTX
MOVLW 'C'
CALL SERTX
MOVLW 0x0D
CALL SERTX
besides that, i shall also set the VER? command and the baudrate SBR command to the servo controller also? really blur now, coz this is my first time using the PIC micro controller and the servo controller as well.
could u all help me?
thanks
regards
lee
While there are probably several on this forum who are experienced with the intricacies of serial communication using a PIC, this forum is really intended to focus on using Parallax products for control. There are several lists that deal with PIC specifics.
And to answer your other question, yes, it is as simple as sending the "!SC..." string to the PSC, via whatever controller you happen to be using...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Truly Understand the Fundamentals and the Path will be so much easier...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Making a PIC pin an input disconnects the output drivers from that pin -- thereby rendering it a high-impedance pin.
<end pedantic mode>
is it mean that the PSC will have a reply signal each time i send data to it? can i just send the data to it without need the PSc to reply?
by the way, need to be very confirm that the souce code i write previously is correct? and is it a must for me to send the VER command and the SBR command to the PSC?
hope u can help me. thanks again.
regards
lee
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
i'll try and see first, and will seek for more advices if needed, ok?
hope u all can help me in the future.
thanks again.
regards
lee
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax