| Author |
Message |
|
12vNinja
Rookie
Joined: Mon Feb 11, 2013 2:20 pm Posts: 5
|
 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 |
|
 |
|
mightor
Moderator
Joined: Wed Mar 05, 2008 8:14 am Posts: 2865 Location: Rotterdam, The Netherlands
|
 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
_________________| Some people, when confronted with a problem, think, "I know, I'll use threads," | and then two they hav erpoblesms. (@nedbat)| My Blog: I'd Rather Be Building Robots| ROBOTC 3rd Party Driver Suite: [ Project Page]
|
| Wed Feb 13, 2013 12:45 am |
|
 |
|
12vNinja
Rookie
Joined: Mon Feb 11, 2013 2:20 pm Posts: 5
|
 Re: Sensor Drivers
Thanks
|
| Wed Feb 13, 2013 11:01 am |
|
 |
|
12vNinja
Rookie
Joined: Mon Feb 11, 2013 2:20 pm Posts: 5
|
 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 |
|
 |
|
mightor
Moderator
Joined: Wed Mar 05, 2008 8:14 am Posts: 2865 Location: Rotterdam, The Netherlands
|
 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
_________________| Some people, when confronted with a problem, think, "I know, I'll use threads," | and then two they hav erpoblesms. (@nedbat)| My Blog: I'd Rather Be Building Robots| ROBOTC 3rd Party Driver Suite: [ Project Page]
|
| Wed Feb 13, 2013 3:03 pm |
|
 |
|
12vNinja
Rookie
Joined: Mon Feb 11, 2013 2:20 pm Posts: 5
|
 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 |
|
 |
|
mightor
Moderator
Joined: Wed Mar 05, 2008 8:14 am Posts: 2865 Location: Rotterdam, The Netherlands
|
 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
_________________| Some people, when confronted with a problem, think, "I know, I'll use threads," | and then two they hav erpoblesms. (@nedbat)| My Blog: I'd Rather Be Building Robots| ROBOTC 3rd Party Driver Suite: [ Project Page]
|
| Thu Feb 14, 2013 3:17 am |
|
 |
|
12vNinja
Rookie
Joined: Mon Feb 11, 2013 2:20 pm Posts: 5
|
 Re: Sensor Drivers
It was the RobotC version, everything works now
|
| Mon Feb 18, 2013 9:37 pm |
|
 |
|
mightor
Moderator
Joined: Wed Mar 05, 2008 8:14 am Posts: 2865 Location: Rotterdam, The Netherlands
|
 Re: Sensor Drivers
I am glad to hear it is working for you now!
= Xander
_________________| Some people, when confronted with a problem, think, "I know, I'll use threads," | and then two they hav erpoblesms. (@nedbat)| My Blog: I'd Rather Be Building Robots| ROBOTC 3rd Party Driver Suite: [ Project Page]
|
| Tue Feb 19, 2013 12:42 am |
|
 |
|
jorge_the_awesome
Rookie
Joined: Sun Dec 05, 2010 11:58 am Posts: 28
|
 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 |
|
 |
|
mightor
Moderator
Joined: Wed Mar 05, 2008 8:14 am Posts: 2865 Location: Rotterdam, The Netherlands
|
 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
_________________| Some people, when confronted with a problem, think, "I know, I'll use threads," | and then two they hav erpoblesms. (@nedbat)| My Blog: I'd Rather Be Building Robots| ROBOTC 3rd Party Driver Suite: [ Project Page]
|
| Thu Feb 28, 2013 12:42 am |
|
|