View unanswered posts | View active topics It is currently Tue Apr 28, 2015 2:19 pm






Reply to topic  [ 4 posts ] 
RCXMotorMux and PCF8574 on EV3 
Author Message
Rookie

Joined: Tue Feb 21, 2012 12:38 pm
Posts: 9
Location: Paris, France
Post RCXMotorMux and PCF8574 on EV3
Hi,

I just try to use my old multiplexers that worked fine on my NXT with RobotC 2.x. But now I have an EV3 and RobotC 4.28beta.
I read that drivers were not all up to date so I didn't expect it worked at first, and I decided to work on the driver for me and the community if possible.
So I took the github deposit and modiied what was necessary.
But nothing works.
When I use the Test I2C sensor utility, I have a good answer for the PCF8574 (only input multiplexor) and the good behavior for the rcxmotrmux. So both my multiplexors and my EV3brick are functionnal.
But when I try to use I2C functions in a RobotC program, nothing works even if I fix the I2CStatus and things like that .
The first error I found is the test of SensorType in common.h.
So I tried to simplify and I realized that the SensorType is always set to 0 (noSensor) even if I force it to another value
Code:
#pragma config(Sensor, S1,     PCF8574,        sensorEV3_GenericI2C)
task main ()
{
   while (true)
    {
      SensorType[PCF8574] = sensorI2CCustom;
      toto = SensorType[PCF8574];
      titi++;
      wait1Msec(50);
   }
}

Running this code on EV3, I can see that the SensorType (toto) is always 0.
Maybe that's the reason why nothing can be done on I2C.
Can anyone confirm?

_________________
Bichon, Brickstory team for Eurobot


Sat Jan 10, 2015 12:22 pm
Profile WWW
Site Admin
Site Admin
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3483
Location: Rotterdam, The Netherlands
Post Re: RCXMotorMux and PCF8574 on EV3
I can confirm that the drivers have not been fully tested on the EV3. I have a semi-working common.h on my development VM here that I have not uploaded yet. It has fixes for most of the issues you guys are having with the 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]


Sun Jan 11, 2015 3:16 am
Profile WWW
Rookie

Joined: Tue Feb 21, 2012 12:38 pm
Posts: 9
Location: Paris, France
Post Re: RCXMotorMux and PCF8574 on EV3
Yes but despite the drivers are not working, why the SensorType value is not taking into account when I modify it?

_________________
Bichon, Brickstory team for Eurobot


Mon Jan 12, 2015 3:36 pm
Profile WWW
Site Admin
Site Admin
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3483
Location: Rotterdam, The Netherlands
Post Re: RCXMotorMux and PCF8574 on EV3
You need to use ROBOTC 4.28, that bug was fixed in the latest version.

= 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]


Mon Jan 12, 2015 4:29 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 4 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.