i am trying to use one of the NXT sensorports as an out pin. My idea was to use out signal with an opto-isolator to comtrol a second cicuit which runns two motors.(And as the nxt battery run down fast i didn't want to use them to power these motors).The Problem is that I still need to control them.
And as i am a complete newbee to circuits and the NXT, that is were the problems begin:
-fist of all id dont even know the layout of the NXT port
(somthing like which wire is GND for 9v for 5V where which Vcc+ is and where the logical pins are)
-second point is how to control the logical pins
I saw the
Code: Select all
 
    void SetSensorDigiPinsDirection(const byte port,const byte & direction)
    void SetSensorDigiPinsOutputLevel(const byte port,const byte &    outputLevel)
    void SetSensorDigiPinsStatus(const byte port, const byte & status)
i found something aubout thaat I had to set the sensor to custom mode, but the commands I found didnt really help
there was nothing like
Code: Select all
void SetSensorCustom( const byte port)
Code: Select all
void SetCustomSensorActiveStatus ( const byte  port, const byte & activeStatus )
void SetCustomSensorPercentFullScale ( const byte  port, const byte &  pctFullScale )
void SetCustomSensorZeroOffset ( const byte  port, const int &  zeroOffset	)
Julian