| Author |
Message |
|
mightor
Moderator
Joined: Wed Mar 05, 2008 8:14 am Posts: 2864 Location: Rotterdam, The Netherlands
|
 Re: Robocup Junior 2010
No, there is no difference. They are both ground.
- 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 Jan 18, 2011 3:44 pm |
|
 |
|
rbosborne
Rookie
Joined: Wed Mar 23, 2011 3:10 pm Posts: 1
|
 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 |
|
 |
|
mightor
Moderator
Joined: Wed Mar 05, 2008 8:14 am Posts: 2864 Location: Rotterdam, The Netherlands
|
 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
_________________| 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]
|
| Sat Mar 26, 2011 2:30 am |
|
 |
|
mightor
Moderator
Joined: Wed Mar 05, 2008 8:14 am Posts: 2864 Location: Rotterdam, The Netherlands
|
 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:  Let me know how it goes. - 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 Mar 31, 2011 1:32 am |
|
 |
|
elizabeth.mabrey
Expert
Joined: Sun Aug 19, 2007 2:43 pm Posts: 133 Location: New Jersey
|
 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 |
|
|
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
|
|