View unanswered posts | View active topics It is currently Fri Dec 19, 2014 11:45 pm






Reply to topic  [ 11 posts ] 
Sensor Drivers 
Author Message
Rookie

Joined: Mon Feb 11, 2013 2:20 pm
Posts: 5
Post Sensor Drivers
We just got several sensors and I'm wondering which drivers to use. The Hi-Technic site has 0 files...

I'm looking for something simple to use, but not with only one value I can read, but with multiple different values and modes


Tue Feb 12, 2013 3:46 pm
Profile
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3297
Location: Rotterdam, The Netherlands
Post Re: Sensor Drivers
Take a look at the driver suite in my signature. It has drivers for about 78 different sensors and covers pretty much everything that's been on the market for the last 4 year and now. Be sure to read the documentation and examples that ship with it.

Regards,
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]


Wed Feb 13, 2013 12:45 am
Profile WWW
Rookie

Joined: Mon Feb 11, 2013 2:20 pm
Posts: 5
Post Re: Sensor Drivers
Thanks


Wed Feb 13, 2013 11:01 am
Profile
Rookie

Joined: Mon Feb 11, 2013 2:20 pm
Posts: 5
Post Re: Sensor Drivers
I tried the IRSeeker-v2 code and it told me the sensor port wasn't configured right, I tried the sample code and it said it had an error, can you walk me through everything?


Wed Feb 13, 2013 2:05 pm
Profile
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3297
Location: Rotterdam, The Netherlands
Post Re: Sensor Drivers
I will help you if you can answer "yes" to all the following:
  • Did you read the information on the page that I redirected you to?
  • Did you connect the sensor as directed on the screen when you ran the program?
  • Are you using ROBOTC 3.55B2, as specified on the page?
Additionally, can you be more specific about the error you are seeing?

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


Wed Feb 13, 2013 3:03 pm
Profile WWW
Rookie

Joined: Mon Feb 11, 2013 2:20 pm
Posts: 5
Post Re: Sensor Drivers
1) yes

2) There was nothing on the NXT screen about connecting

3) I think I am

the error is the hdg value is -1 constantly


Wed Feb 13, 2013 4:57 pm
Profile
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3297
Location: Rotterdam, The Netherlands
Post Re: Sensor Drivers
Make sure you check the version of ROBOTC, should be in help->about. The IRSeeker should be attached to S1. The -1 indicates there is no connection with the sensor. Which exact program are you trying to use? There are a couple of IRSeeker programs.

= 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 14, 2013 3:17 am
Profile WWW
Rookie

Joined: Mon Feb 11, 2013 2:20 pm
Posts: 5
Post Re: Sensor Drivers
It was the RobotC version, everything works now


Mon Feb 18, 2013 9:37 pm
Profile
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3297
Location: Rotterdam, The Netherlands
Post Re: Sensor Drivers
I am glad to hear it is working for you now!

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


Tue Feb 19, 2013 12:42 am
Profile WWW
Rookie

Joined: Sun Dec 05, 2010 11:58 am
Posts: 28
Post Re: Sensor Drivers
Xander, is there any technical reason why I have to choose sensorI2Ccustom for a sensor type instead of the built in types for magnet or compass or any other hitechnic sensor? Unless I disable sensor type checking your drivers throw errors at me. It's not a problem-I'm just curious.

Sorry for hijacking this thread!


Wed Feb 27, 2013 11:09 pm
Profile
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3297
Location: Rotterdam, The Netherlands
Post Re: Sensor Drivers
It's quite simple. Using my drivers and the built-in ones would be like having two people simultaneously shouting commands at you. Your responses would be garbled and neither shouters would know which response belonged to which request :)

Just stick with the sensor type, as used in the examples. The analogue and i2custom sensors are really barebones sensor types that allow me to decide what is being communicated to the sensor, not the firmware.

So, don't disable the sensor checking, just make sure you use the proper sensor types.

= 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 28, 2013 12:42 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 11 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.