PDA

View Full Version : Servopod and serial connection


knight
12-22-05, 10:14 AM
Hi! I need to connect my CMUcam to my Servopod via serial port, i use the SCI1 to do this, but i need to pass at the cmucam command like "GV 20 30 12" how can i do that?
in isomax manual there is only a simple example about an hex number, nothing about array or phrase!!!
please write me back soon with the solution!

nmitech
12-22-05, 10:31 AM
For your reference, here is the link to a program that Randy has written for one of the CMUcam. I am not sure which cam model it is. Please read the comments.
http://www.newmicros.com/isopod/appnotes/cmu_fsm2.txt

knight
01-14-06, 07:10 AM
Hi, i have just donwnload the file you have suggested and i tried it many times but it don't work with my servopod BCM03 and my CMUcam2 v1.3 have you any suggestion?
I would like to use the camera as an obstacle sensor, and stop the robot when it is near a wall for example...please help me!

cwkoehler
01-14-06, 08:37 AM
More information of the exact problem would be helpful.

knight
01-14-06, 09:05 AM
I, i would like to connect my CMUcam2 with my Servopod, i don't know if it's better to use a serial connection or an other type, what do you think about it?
I need to comunicate with my cmucam in this way:
pc-->(linked to) servopod-->(linked to) cmucam
My main quest is to create a little isomax program to use cmucam as a sensor like this:
http://www.acroname.com/robotics/info/examples/cmucam-1/cmucam-1.html
anyone can help me?
I hope so!

nmitech
01-16-06, 01:33 PM
Do you have this connection & a comment/uncomment on the highlight code below?


\ RS-232 connection
\ J2 ServoPod
\ o o
\ Cam
\ o o
\ |
\ | o o5--GND------o5 o
\ |
\ | o o4 +---o7 o
\ | |
\ | o o3--<<<------o9 o
\ | | ------- board edge
\ | o o2-->>>--+
\ |
\ | o o1
\ |
\ +--------




: STARTUP
RBUFF 80 4 + SCI0 RXBUFFER
TBUFF 80 4 + SCI0 TXBUFFER
RBUFF1 80 4 + SCI1 RXBUFFER
TBUFF1 80 4 + SCI1 TXBUFFER
[ HEX 16 ] LITERAL [ F10 DECIMAL ] LITERAL ! ( 115,200 SCI1 BAUD ISO
( [ HEX 16 ] LITERAL [ 1110 DECIMAL ] LITERAL ! ( 115,200 SCI1 BAUD SERVO
FALSE ECHO !
1 X1 !
1 Y1 !
....
....


For ServoPod make sure to comment out the line above, and uncomment the line below
( [ HEX 16 ] LITERAL [ F10 DECIMAL ] LITERAL ! ( 115,200 SCI1 BAUD ISO
[ HEX 16 ] LITERAL [ 1110 DECIMAL ] LITERAL ! ( 115,200 SCI1 BAUD SERVO

knight
01-16-06, 03:25 PM
Thanks a lot, now it works very good!

Only 1 command i find that doesn't work: SV
This is my screen view:

:SV 2 100 SV 1 »72
SV ? STACK EMPTY
NCK

the SV's line of code are:

\V2 2 MAKE:MSG SV EEWORD
\ : Servo_Position SV ; EEWORD
( servo# 0-4 postion 46 - 210 SV

Have you made any other programs for servopod and CMUcam ?
Thankyou very much I really appreciated your help!

RMDumse
01-21-06, 05:05 PM
I remember there were a couple commands I that just didn't make sense to me. I concluded the documentation must be off. Thought everything was resolved though. Don't really remember. It's been a year since I wrote this program and used if very little since.

No, this is the only program I wrote for the CMU Cam. I did consider how to apply it, such as making a predictive line follower, but never tried the ideas out. I had borrowed the CMUCam V2, so I had to return it. I own a CMUCam V1.

There are many other examples of programs for the various 'Pods though in the appnotes under the 'Pods Downloads page.