View unanswered posts | View active topics It is currently Tue Sep 16, 2014 7:35 pm






Reply to topic  [ 3 posts ] 
Help with Mindsensors NXTMMX 
Author Message
Rookie

Joined: Fri Feb 21, 2014 1:44 pm
Posts: 1
Post Help with Mindsensors NXTMMX
I am trying to figure out how to utilize the sensor port for the NxtMMX. I have downloaded the sample mindsensors-motormux-test1 and the motors work when I run the sample program. I need to be able to plug in an NXT ultrasonic sensor or NXT touch sensor into the sensor port in the NXTMMX. The only items in the sample program are the motors (mmotor_S1_1);
(mmotor_S1_2);I don't see any examples of how I would define something for the sensor port and how to use them. Any help or examples would be appreciated.
We are using RobotC 3.62 and the 3rd Party Drivers v3.3.1


Fri Feb 21, 2014 2:00 pm
Profile
Guru
User avatar

Joined: Sun Nov 15, 2009 5:46 am
Posts: 1347
Post Re: Help with Mindsensors NXTMMX
OLLrobotics wrote:
I am trying to figure out how to utilize the sensor port for the NxtMMX. I have downloaded the sample mindsensors-motormux-test1 and the motors work when I run the sample program. I need to be able to plug in an NXT ultrasonic sensor or NXT touch sensor into the sensor port in the NXTMMX. The only items in the sample program are the motors (mmotor_S1_1);
(mmotor_S1_2);I don't see any examples of how I would define something for the sensor port and how to use them. Any help or examples would be appreciated.
We are using RobotC 3.62 and the 3rd Party Drivers v3.3.1

I have not used the Mindsensors Motor MUX before but since the name said Motor MUX, I would expect it only works with motors not sensors. If you want to use sensors you should get the Hitechnic Sensor MUX instead.
http://www.hitechnic.com/cgi-bin/commer ... ey=NSX2020


Fri Feb 21, 2014 3:20 pm
Profile
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3221
Location: Rotterdam, The Netherlands
Post Re: Help with Mindsensors NXTMMX
The motor mux has a pass-through port, so you'd define an additional port name (as well as the standard pragmas):
Code:
#define ULTRASOUND S1

and then use the functions from the lego-us driver that is part of my suite.

= Xander

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Fri Feb 21, 2014 3:40 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 3 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.