질문 하시기 전에 검색을 통해 원하는 질문/답변 내용을 찾아봐주세요.

Connecting RX-64 to the PIC16F876A UART

조회 수 844 추천 수 0 2010.07.22 00:32:48

Dear ROBOTIS team, I am developing a proto with two RX-64 to track a robot and I have used a micro PIC16F876A to drive these motors and another one  in my robot.

I have connected the USB2Dynamixel directly to the motors and they work fine. Also I have tested the missage outgoing from the micro and it also work fine. But when arrives to the MAX485 Driver chip I used to connect the UART to the protocol RS485 i have no response. I have implemented your eschem from the RX-64 manual in the page 13. And also I have used the estructure for all instructions FF FF ID LONG IN1 ARG1... CHKSUM sending it as hexadecimal (... binary). When start the robot power, the red led flash one time.

There are 18V. in the power input with 1,2A max.current in each channel (one per motor)


From the micro I first send a turn continously, an enable torque and the motion parameters.


Any suggestion about how I can 'activate' the RX-64 in an effective way? Can somebody send a exemple of code? or if you have some experience using in projects the RX-64... something?


thanks for your time!


댓글 '4'

MikeG

2010.07.24 22:10:09
*.99.244.218

It sounds like you have a problem connecting the MAX485 to a PIC?  Make sure that when you set the PIC to Tx that you give it a few uSecs to settle before sending the instruction packet.


Also the instruction packet signature in your post might not be correct. All arguments passed to the Dynamixel bus are bytes.  If you have a 2 byte piece of data you must send it low-high byte.  Check your code and connections.

Joan Pere

2010.07.28 16:55:15
*.174.243.193

Thanks MikeG for your comment


Actually I am controling the time to send instructions by the delay routine

;********************************************************************************************
;Tx_Dato: Transmite vía serie el dato presente en el reg. W
;*************************************************************************************
Tx_Dato            bcf        PIR1,TXIF             ; Restore the flag of transmisor
                          movwf        TXREG            ; Save the byte to transmit
                           bsf        STATUS,RP0
Tx_Dato_Wait    btfss        TXSTA,TRMT    ;Byte send??
                          goto        Tx_Dato_Wait;   No, wait
                          bcf        STATUS,RP0
                           return                    ; YES 

And I am thinking that the connection betwen the Max232 and the Max485 could have problems in the reference voltage or impedance(?) I was found three or four diferents ways to mount this connection... and i'ts very dangerous


If someone else have any experience or idea about, it will be wellcome

many thanks again!

MikeG

2010.07.28 22:41:43
*.99.244.218

I'm using a SN65176B which is pin compatible with the MAX485.  What's the MAX232 for?  What are you doing with RO, RE, DE, and DI pins?  You might want to take a look at the RS485 datasheet.


Anyway, when I switch directions with the SN65176B I have to add a few uSec of delay due to the speed of my uController. 

[레벨:30]ROBOTIS

2010.08.02 17:40:55
*.112.9.210

Joan,

 

Looks like you may have made the wrong circuit or improperly controlled the 485 port.

For examples, please refer to the Dynamixel SDK platform porting found in the Tech Support.

http://support.robotis.com/en/techsupport_eng.htm#software/dynamixel_sdk/sourcestructure.htm

 

ROBOTIS

문서 첨부 제한 : 0Byte/ 2.00MB
파일 제한 크기 : 2.00MB (허용 확장자 : *.*)
List of Articles
번호 제목 글쓴이 날짜 조회 수
공지 [ROBOTIS] Please read before posting questions. ROBOTIS 2012-02-07 22
399 [AX-12+] Power loss and fail to follow correct goal position [1] 김승아 2010-08-20 570
398 extra zeros in status packet and dropped 0xFF byte [5] MTR 2010-08-14 754
397 [EX-106] Pose Utility [1] Customer 2010-08-12 579
396 Problem connecting with RS485 serial port [1] Ugo 2010-08-05 833
395 how to write an instruction packet for reading present position i... [4] aditya 2010-08-03 846
394 Problem with CM-510 [5] Rami 2010-08-02 888
393 [HELP] dynamixel RX-64 transfer function [1] dhona 2010-08-02 770
392 How to program CM2+ using MATLAB? [3] lokesh sardana 2010-08-01 744
391 Multiple motors detection problem [1] Rami 2010-07-29 731
390 RX-64 + Arbotix microcontroller problem [1] Ilya 2010-07-29 652
389 RX64/28/10 Torque Enable problem [3] Christian 2010-07-23 702
» Connecting RX-64 to the PIC16F876A UART [4] Joan Pere 2010-07-22 844
387 CM 510 - Technical Question [1] Charles 2010-07-21 773
386 About EX-106+ [1] lrg 2010-07-20 788
385 about the power supply of ex-106+ [1] lrg 2010-07-19 682
384 Problem with the USB2Dynamixel [1] SAKIS 2010-07-15 682
383 Status Return Error [2] taufik 2010-07-15 739
382 how to purchase BIOLOID products in a reasonable price in china... [1] iloveyou 2010-07-15 790
381 USB2Dynamixel with AX12+ [2] angela 2010-07-13 792
380 Istill have Problem with the USB2Dynamixel connection [1] SAKIS 2010-07-13 645

XE Login