View unanswered posts | View active topics It is currently Wed Oct 01, 2014 5:33 pm






Reply to topic  [ 8 posts ] 
IRSeeker v2: Software or Hardware Issue 
Author Message
Rookie

Joined: Thu Aug 26, 2010 8:26 pm
Posts: 1
Post IRSeeker v2: Software or Hardware Issue
Our team has finally gotten around to trying to use an IRSeeker v2 from HiTechnic. I've downloaded all the driver pack for RobotC, and put it in the right place.

When I try to run HTIRS-test1.c on the robot, it compiles and downloads successfully, but fails to ever get past the HTIRS2setDSPMode() call in line 77. In other words, it constantly (and annoyingly) 'blips' at us until we quite the program.

When I then attempted to write a simple program that just looped forever, outputting the result of HTIRS2readACDir() to the screen. The value printed was always '-1'. When I attempted to call HTIRS2setDSPMode() in this simple program, that always returned false.

I've attempted these things with the sensor configured as 'I2CCustom' and 'HiTechnic IRSeeker 1200' as well as the shipped setting of 'sensorLowSpeed'.

What am I doing wrong?


Thu Nov 18, 2010 9:20 pm
Profile
Guru
User avatar

Joined: Sun Nov 15, 2009 5:46 am
Posts: 1347
Post Re: IRSeeker v2: Software or Hardware Issue
Since you said the test program beeps, you must be running HTIRS2-test1.c instead of HTIRS-test.c. Make sure your IR Seeker sensor is connected to Sensor Port S1 and its a V2 sensor not a V1 sensor.


Thu Nov 18, 2010 11:49 pm
Profile
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3223
Location: Rotterdam, The Netherlands
Post Re: IRSeeker v2: Software or Hardware Issue
MHTS,

You took the words out of my mouth, thanks :)

You must never, ever, use anything beside I2CCustom for the IRSeekerV2 driver or you will have both the internal ROBOTC driver -and- my one fighting over access to the sensor :) It'll be like two kids fighting over a candy; it'll be messy and it'll be unpredictable.

- 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 Nov 19, 2010 2:22 am
Profile WWW
Rookie

Joined: Sun Apr 19, 2009 7:44 am
Posts: 8
Post Re: IRSeeker v2: Software or Hardware Issue
Nope. Didn't work and have confirmed we have a v2 IR sensor connected to port S1. We're using RobotC 2.26 w/ 8.23 firmware and version 1.7.1 driver software.

Setting the mode always fails; the following program never exits.

Code:
#pragma config(Sensor, S1,     HTIRS2,              sensorI2CCustom)

#include "drivers/common.h"
#include "drivers/HTIRS2-driver.h"

task main () {
  while (! HTIRS2setDSPMode(HTIRS2, DSP_1200))
    nxtDisplayCenteredTextLine(3, "0");
  nxtDisplayCenteredTextLine(3, "1");
  wait10Msec(1000);
}


We've even duplicated this on another brick with the same version of firmware and RobotC and a different cable. It would seem we either have a faulty sensor or a version incompatibility.

Any other ideas?


Sat Nov 20, 2010 12:33 am
Profile
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3223
Location: Rotterdam, The Netherlands
Post Re: IRSeeker v2: Software or Hardware Issue
I will look into it this weekend and get back to you. In the mean time, can you check if the sensor works with NXT-G?

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


Sat Nov 20, 2010 2:00 am
Profile WWW
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3223
Location: Rotterdam, The Netherlands
Post Re: IRSeeker v2: Software or Hardware Issue
Your little test program works fine for me.

Image

- 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 Nov 21, 2010 11:21 am
Profile WWW
Rookie

Joined: Sun Apr 19, 2009 7:44 am
Posts: 8
Post Re: IRSeeker v2: Software or Hardware Issue
Thanks for checking on this for us. I tried the sensor with NXT-G and am not getting a direction value out of it (only 0) so we must have a bad sensor.


Mon Nov 22, 2010 11:42 am
Profile
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3223
Location: Rotterdam, The Netherlands
Post Re: IRSeeker v2: Software or Hardware Issue
It sucks that your sensor is (probably) broken but on the other hand I am glad my drivers are OK :)

- 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 Nov 22, 2010 12:27 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 8 posts ] 

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.