View unanswered posts | View active topics It is currently Thu Apr 24, 2014 2:50 pm






Reply to topic  [ 20 posts ]  Go to page Previous  1, 2
Robocup Junior 2010 
Author Message
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3116
Location: Rotterdam, The Netherlands
Post Re: Robocup Junior 2010
No, there is no difference. They are both ground.

- 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 Jan 18, 2011 3:44 pm
Profile WWW
Rookie

Joined: Wed Mar 23, 2011 3:10 pm
Posts: 1
Post Re: Robocup Junior 2010
Hello!

I've got a TPA81 heat sensor, and I've wired it to my NXT as described by Xander in the earlier comments of this thread. The problem now is using the sensory data in a useful way. I have virtually no understanding of how to deal with the data that are passed from the thermal array sensor to the NXT. That is to say, my ROBOTC experience, while pretty extensive, is limited to native and third party sensor that have drivers to deal with all of these raw data.

In my first (and admittedly ignorant) pass at this, I tried a very basic call to the sensor, printing the result to the screen:

nxtDisplayCenteredBigTextLine(6, "%d", SensorValue[S1]);

Not surprisingly this didn't do much. Given my vague understanding, the NXT has to ask the slave (in this case the heat sensor) to pass some information back to the brick. Any suggestions for how to get up to speed with this? Thanks in advance for your help!


-Brook


Fri Mar 25, 2011 5:13 pm
Profile
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3116
Location: Rotterdam, The Netherlands
Post Re: Robocup Junior 2010
Hi Brook,

I am not sure if I will have time to do this today, but I'd be happy to see if I can come up with some code in the next few days. Send me a PM tomorrow to remind me!

- 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 Mar 26, 2011 2:30 am
Profile WWW
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3116
Location: Rotterdam, The Netherlands
Post Re: Robocup Junior 2010
Here's a driver and a test program. I don't know for sure if it'll work since I don't have one of these.

pixeldata is an array with the following layout:
Image

Let me know how it goes.

- Xander


Attachments:
TPA81-driver.h [1.89 KiB]
Downloaded 361 times
TPA81-test1.c [1.51 KiB]
Downloaded 354 times

_________________
| 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 Mar 31, 2011 1:32 am
Profile WWW
Expert

Joined: Sun Aug 19, 2007 2:43 pm
Posts: 134
Location: New Jersey
Post Re: Robocup Junior 2010
I got two of these thermal sensors.

I found an interesting problem with one of them. Symptom:
- executing a test with heat sensor#2, data looks good
- terminating the program. Rerun. Data looks invalid.
- restart the controller, rerun the test. Data looks good again.

We went thru this sequence a few times with #1 and #2 indpendently, switching wires, etc. Same symptom happens with one of the wires. I'll have to wait until next week to play with the problematic wire. For the time being, I wonder if anyone may have an advice on this one!?

So, looks like something needs to be reset!?


Sat Apr 09, 2011 7:16 am
Profile WWW
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.