View unanswered posts | View active topics It is currently Thu Oct 18, 2018 9:44 am






Reply to topic  [ 20 posts ]  Go to page Previous  1, 2
Has EV3 I2C for 3rd party sensors been fixed? 
Author Message
Rookie

Joined: Thu Nov 06, 2014 2:23 am
Posts: 9
Post Re: Has EV3 I2C for 3rd party sensors been fixed?
Xander,

The HT Compass test works properly with my EV3 (4.28 beta). I did notice that this example was done without using a pragma to define the sensor port assignment.

What is the future recommended practice? Will pragmas be replaced by

Code:
#include "<driver>.h"
:
  <sensor type> <sensor name>
:
  initSensor(&<sensor name>, S<port number>);


How this will work with the sensor multiplexer?

Cheers, Ollie


Wed Feb 04, 2015 5:22 pm
Profile
Site Admin
Site Admin
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3654
Location: Rotterdam, The Netherlands
Post Re: Has EV3 I2C for 3rd party sensors been fixed?
The pragmas are not mandatory, but they can help.

As for the SMUX, it is supported for some sensors, just check out the examples that have the word SMUX in them :)

The upcoming release of ROBOTC has some additional fixes for I2C. I2C sensors that require the 9V pin to be active require a bit more tweaking in their drivers until I have implemented a more permanent fix in the firmware and IDE.

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


Thu Feb 05, 2015 1:46 am
Profile WWW
Site Admin
Site Admin
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3654
Location: Rotterdam, The Netherlands
Post Re: Has EV3 I2C for 3rd party sensors been fixed?
You should be using the driver suite from the Github repo: https://github.com/botbench/robotcdriversuite :)

= 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 Apr 10, 2015 6:14 am
Profile WWW
Site Admin
Site Admin
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3654
Location: Rotterdam, The Netherlands
Post Re: Has EV3 I2C for 3rd party sensors been fixed?
Did you look at the examples and how the pragmas are configured? You cannot use sensorHiTechnicIRSeeker1200 and the driver suite at the same time. You will also notice that you cannot use SensorValue(). So, make sure you read the examples very thoroughly.

= 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 Apr 13, 2015 8:40 am
Profile WWW
Rookie

Joined: Mon Jun 13, 2016 5:09 am
Posts: 5
Post Re: Has EV3 I2C for 3rd party sensors been fixed?
I tried HT compass sensor and sonar sensor with LEGO Software and it works.
I made a mistake because I never used this Software.
Sorry for confusion!

_________________
Call Conference ||Conference Calling Plugin ||Telephone Conference Calling


Mon Jun 13, 2016 6:41 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 20 posts ]  Go to page Previous  1, 2

Who is online

Users browsing this forum: No registered users and 1 guest


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.