View unanswered posts | View active topics It is currently Tue Sep 02, 2014 12:26 am






Reply to topic  [ 5 posts ] 
Port 4 UART support 
Author Message
Rookie

Joined: Fri Feb 09, 2007 4:17 am
Posts: 3
Post Port 4 UART support
RobotC is great and I want to use it and the Lego NXT to attach Robotis AX12 servos. To do this I need to access the RS485 port on the NXT port 4. Does RobotC have support code for this function?

Many thanks


Fri Feb 09, 2007 4:20 am
Profile
Creator
Creator

Joined: Fri Feb 09, 2007 9:21 am
Posts: 615
Post 
As far as I know, there is no programming solution that supports the RS485 port at present. RobotC does not currently provide access to the RS485 port. It's under consideration for 2007 development.

I looked up the AX servos and they have a TTL signal level. You probably meant the DX series of servos which have RS485 outputs. They are three times as expensive. The price I saw was almost $200 US each. See http://www.tribotix.com/Products/Roboti ... alogue.htm. Are these the servos you want to use?

You might want to consider alternatives. For example, use standard NXT motors with their encoders. There are a couple of solutions for expanding the number of NXT motors supported. Would NXT motors fit your application?


Fri Feb 09, 2007 11:43 am
Profile
Rookie

Joined: Fri Feb 09, 2007 4:17 am
Posts: 3
Post 
Thanks for the reply Dick.

I have a Bioloid kit, containing 18 AX servos as well as a Lego NXT (with 5 motors & mux card) and want to connect the servos to the much better development environment of robotC & NXT. The TTL signal bus is proprietry using a half duplex protocol and it would be much simpler to use a serial port than have to program bit transfers on a single I/O line. Also the AX can run at upto 1 mbps. But hey ho I guess that's my route now, unless I can hack into the Bluetooth port that you support.

An alternative may be to add a ZigBee to the NXT as I can get one to fit the Bioloid.

As I want to add better audio and maybe video in the future it may be best to wait until the Blackfin Handyboard becomes available. Are you planning to support this with robotC?

Thanks again


Fri Feb 09, 2007 6:38 pm
Profile
Creator
Creator

Joined: Fri Feb 09, 2007 9:21 am
Posts: 615
Post 
When, and if, RS486 support is added it will include a low level mode where you are totally responsible for the protocol. The interface will allow you to read and write individual bytes onto the link with any protocol the responsibility of the application program.
If you can somehow get your servos to talk RS-485 you might be able to go this route.
Another approach to look at, if you're someone who has the skills is to use a PIC or similar micro as a protocol converter. One side would talk I2C to the NXT and the other side the proprietary servo protocol. I suspect this type of program would be under 500 lines of code on a PIC.


Mon Feb 26, 2007 5:25 am
Profile
Rookie

Joined: Sat Nov 17, 2007 7:09 pm
Posts: 1
Post 
Hi Dick,
Is there any news about RS-485 support in RobotC firmware?
The last post was months ago, I thought maybe there is some development.
I am considering moving to RobotC from std firmware anyway, but RS485 support will make me move immediately.

Thanks
Yuval


Sat Nov 17, 2007 7:14 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.