gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > Temperature Diodes In Touchscreen?

#35469 - PhoenixSoft - Sat Feb 05, 2005 6:55 am

http://www.bottledlight.com/ds/index.php/Misc/TouchScreen

Quote:
TSC_MEASURE_TEMP1 0x84 Measures temperature diode 1
TSC_MEASURE_TEMP2 0xF4 Measures temperature diode 2


So, if I'm reading that page right, developers can tell the temperature of the touch screen? And where in the screen are these temperature diodes? (ie top left, bottom right, etc)

#35471 - netdroid9 - Sat Feb 05, 2005 7:31 am

Interesting... Perhaps an idea for a game... 'Burn nintendo burn!!!!'...

#35472 - Joat - Sat Feb 05, 2005 7:48 am

The diodes are on the die of the TSC, not on the touch screen itself, and fairly innaccurate. According to the datasheet, I can read to an accuracy of 2 deg C without a callibration step, but I got bogus values using their formula, will play with it later.

I'm not certain what you're going to do with a rough idea of the temperature of the DS as a whole, but I'm sure someone will think of something :D
_________________
Joat
http://www.bottledlight.com

#35473 - NMcCoy - Sat Feb 05, 2005 7:55 am

Perhaps a weather-related game like Boktai?

#35474 - PhoenixSoft - Sat Feb 05, 2005 7:58 am

So it can actually read temperatures? You would think Nintendo would have listed this as a feature! Unless it's disabled or something, and that's why you can't read it properly...

#35475 - NMcCoy - Sat Feb 05, 2005 8:08 am

Perhaps because making use of such a feature might incite young children to void the warranty (hmm, where'd that "microwaving your DS" thread go?)

#35483 - netdroid9 - Sat Feb 05, 2005 11:37 am

It was in 'How to open flash cart' but I think an admin/mod wiped it out.

Hmmm... An easter egg perhaps? When temperature > 100 then cue sound 'scream'.

#35488 - dafer - Sat Feb 05, 2005 1:25 pm

Ain?t it there to detect body heat?
_________________
/As meningful to you as words written in water.

#35489 - netdroid9 - Sat Feb 05, 2005 1:54 pm

I doubt it's sensitive enough.

#35509 - tepples - Sat Feb 05, 2005 7:37 pm

netdroid9 wrote:
It was in 'How to open flash cart' but I think an admin/mod wiped it out.

Not wiped; merely split.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#35595 - sandymac - Mon Feb 07, 2005 8:42 pm

PhoenixSoft wrote:
You would think Nintendo would have listed this as a feature!

<speculation>
I'd guess that the big N didn't list it as a feature it's because they want to be able to switch touch screen suppliers and not have to explain why the alleged temp sensor disappeared. It could also just be that the temp senses are used to normalize the touch screen readings somehow as touching the screen when it is cold or hot may affect the readings.
</speculation>
_________________
"He who dares not offend cannot be honest." -- Thomas Paine

#36039 - Psykus - Mon Feb 14, 2005 4:24 pm

Again, this is only speculation, but, perhaps the temperature sensors are there so games can tell the difference between a player using their finger on the screen (picking up the body heat from your finger, wouldn't have to be 100% accurate for that), as opposed to the thumb strap or stylus.

#36046 - ravuya - Mon Feb 14, 2005 5:42 pm

sandymac wrote:
PhoenixSoft wrote:
You would think Nintendo would have listed this as a feature!

<speculation>
I'd guess that the big N didn't list it as a feature it's because they want to be able to switch touch screen suppliers and not have to explain why the alleged temp sensor disappeared. It could also just be that the temp senses are used to normalize the touch screen readings somehow as touching the screen when it is cold or hot may affect the readings.
</speculation>


I agree. It might just be a feature of that particular model of touchscreen, and it's not officially intended for use with the DS games.
_________________
Rav (Win/Mac/Linux games for free)

#36057 - Joat - Mon Feb 14, 2005 6:47 pm

I got the measurements working now, the formula relies on the Vref voltage, which is normally 2.5 V, but Nintendo have run Vcc to Vref. Using 3.3 V in the calculation instead netted very realistic numbers and the results fit on the curve given in the datasheet.

It's nothing to do with the touch screen, as I said, it's measured in the touch screen controller chip, which lies *inside* the case, a little bit underneath the ABXY cluster. It's fine for ambient readings, but basically nothing you do to your DS that doesn't also affect the rest of the air around it (like going outside, or refridgerating your DS) will have any impact on the readings (which are only accurate to around 2 deg C anyways, it jumps between 25 and 27 deg C in my office).

I never said it was *useful*, but I wanted to get it working anyways. I imagine the original purpose of including the hardware in the TSC (which is an off the shelf chip used in a lot of devices) was to provide overheat detection or enable a fan. 2 deg C accuracy on a chip near some other warm chips would give you enough resolution to know when to turn on a cooling fan.
_________________
Joat
http://www.bottledlight.com

#36071 - mtg101 - Mon Feb 14, 2005 8:55 pm

Nice one figuring it out Joat. It may not be of much use for development purposes, but I have a use for it. When Animal Crossing DS comes out I'm going to start a rumour that it uses the temp chip to affect the game; like there are less fish around when your DS is cold, or it's harder to make big snowballs when your DS is hot: then sit around and see how many people believe it, or even claim they have proof of it. <evil _laugh/>

I should get out more.
_________________
---
Speaker for the Dead

#36072 - dagamer34 - Mon Feb 14, 2005 8:56 pm

mtg101 wrote:
Nice one figuring it out Joat. It may not be of much use for development purposes, but I have a use for it. When Animal Crossing DS comes out I'm going to start a rumour that it uses the temp chip to affect the game; like there are less fish around when your DS is cold, or it's harder to make big snowballs when your DS is hot: then sit around and see how many people believe it, or even claim they have proof of it. <evil _laugh/>

I should get out more.


I would be interested to see your findings. Of course, if you are ever found out doing this, I will personally smite you. Oh, I will deny ever speaking to you too. :)
_________________
Little kids and Playstation 2's don't mix. :(