OCCRA
Go to Post I don't remember who said it or what the words are exactly...(I think it was Hopalong Cassidy) Don't say goodbye, just say see you later. - Al Skierkiewicz [more]
Home
Go Back   Chief Delphi > Other > Chit-Chat
CD-Events   CD-Media   CD-Spy   FRC-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 01-19-2011, 12:55 AM
amoose136's Avatar
amoose136 amoose136 is offline
Registered User
FRC #3140 (The Flagship)
Team Role: Leadership
 
Join Date: Jan 2011
Rookie Year: 2004
Location: Tennessee
Posts: 12
amoose136 is an unknown quantity at this point
Question RCX and NXT communication

Does anyone know how to program an NXT to simulate being an RCX's rotation sensor? I want to be able to use one of these and connect together the sensor ports of the RCX and NXT and program them so that the NXT pretends to be a rotation sensor. Programing know how in any language would be appreciated.

I need to know how to do this because this is the only way I know of to use 4 motors without buying another NXT.
Reply With Quote
  #2   Spotlight this post!  
Unread 01-19-2011, 08:09 AM
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,072
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: RCX and NXT communication

amoose,
The part that you show is simply an adapter to allow NXT users to connect RCX sensors to their new NXT brick. It does not allow you to simulate using an RCX and NXT together.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
All is better now, NOS parts are working fine. Why does this year's game remind me of Violet in Willie Wonka? Hmmmm, I see blueberries!
Reply With Quote
  #3   Spotlight this post!  
Unread 01-19-2011, 09:44 AM
Bill_B Bill_B is offline
You cannot not make a difference
FRC #2170
 
Join Date: Jan 2010
Rookie Year: 2004
Location: Connecticut
Posts: 1,092
Bill_B has a reputation beyond reputeBill_B has a reputation beyond reputeBill_B has a reputation beyond reputeBill_B has a reputation beyond reputeBill_B has a reputation beyond reputeBill_B has a reputation beyond reputeBill_B has a reputation beyond reputeBill_B has a reputation beyond reputeBill_B has a reputation beyond reputeBill_B has a reputation beyond reputeBill_B has a reputation beyond repute
Re: RCX and NXT communication

There is a legacy block available for NXT-g that will support the older rotation sensor. The cable you reference can connect the older rotation sensor to the NXT. The legacy block(s) can be found as patches at the Lego support site.

However, you mention wanting to control four motors with the NXT. I'm not sure how that's possible with only another rotation sensor. There are other, non-Lego, methods for gaining extra motor control from a single NXT. Perhaps you can be more specific about what you'd like to accomplish with your proposed configuration?
__________________
Nature's Fury FLL team 830 - F L eLements
FRC team 2170 - Titanium Tomahawks
Reply With Quote
  #4   Spotlight this post!  
Unread 01-19-2011, 09:31 PM
amoose136's Avatar
amoose136 amoose136 is offline
Registered User
FRC #3140 (The Flagship)
Team Role: Leadership
 
Join Date: Jan 2011
Rookie Year: 2004
Location: Tennessee
Posts: 12
amoose136 is an unknown quantity at this point
Re: RCX and NXT communication

Quote:
Originally Posted by Bill_B View Post
There is a legacy block available for NXT-g that will support the older rotation sensor. The cable you reference can connect the older rotation sensor to the NXT. The legacy block(s) can be found as patches at the Lego support site.

However, you mention wanting to control four motors with the NXT. I'm not sure how that's possible with only another rotation sensor. There are other, non-Lego, methods for gaining extra motor control from a single NXT. Perhaps you can be more specific about what you'd like to accomplish with your proposed configuration?
I don't think I made myself clear as to what I want to do.
First, imagine this:

When one rotation sensor is turned by hand, the RCX makes the other's value match it by turning on the motor in the appropriate direction and speed. Thus the motor's motion is dictated by the sensor readings from the rotation sensor. Now picture this:

In this picture the RCX uses the same programing but now the control rotation sensor has been replaced by a NXT programed to emulate a rotation sensor and give the RCX fictitious values.

I want to know how to program the NXT to do this. If I just knew how to control the raw IO from the sensor port on the NXT I think I have an idea.
Reply With Quote
  #5   Spotlight this post!  
Unread 01-20-2011, 07:46 AM
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,072
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: RCX and NXT communication

amoose,
The rotation sensor used in the RCX version is simply a wheel with light and dark places and a photo diode/LED combination. As I remember it gives 16 output transitions per rotation. The NXT version has better resolution and that is why it can be used for angular detection. Remember that the RCX has only two wires per port. I found this in a quick search that might be something interesting for you.

http://www.extremenxt.com/rotate.htm
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
All is better now, NOS parts are working fine. Why does this year's game remind me of Violet in Willie Wonka? Hmmmm, I see blueberries!
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 01:47 AM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi