#### escho

• Senior
• Posts: 473
##### Re: Wanted: temperatures from your cams
« Reply #100 on: September 04, 2016, 08:37:59 PM »
Hi Alex
I don´t understand very well, what your function does. What is MOD? And where is "-60" ?
Edgar

#### a1ex

• Hero Member
• Posts: 10444
• 5D Mark Free
##### Re: Wanted: temperatures from your cams
« Reply #101 on: September 04, 2016, 09:55:14 PM »
MOD is the modulo operation: MOD(a,b) is from 0 to b-1 (a and b both int32_t, b > 1). C has the % operator, but that one gives negative numbers as well, which doesn't match what I've learned in the math class about modulo (see https://en.wikipedia.org/wiki/Modular_arithmetic ). That's why I've defined the MOD macro in imath.h.

And 150 * 40 / 100 = 60.

However, that definition wraps around at 102 degrees to 0, so it will fail at negative temperatures. A better version that works from -20 to 80 degrees is:

Code: [Select]
`#define EFIC_CELSIUS (MOD(efic_temp - 100, 256) * 40 / 100 - 20)`
Before/after (efic_temp from 0 to 255):
Code: [Select]
`42 42 43 43 44 ... 101 101 102 0 0 0 1 1 2      ... 40 40 41 41 4242 42 43 43 44 ... 81 81 82 -20 -20 -20 -19 -19 ... 40 40 41 41 42`
I'm not sure at which point this number really wraps around, but at least this definition should cover the usual temperature range. If anyone wants to place his EOS M in a freezer or oven for measurements, that data would be welcome, but please be very careful with condensation and/or heat (you can damage the camera). Or, it may be safer to just find the conversion function in Canon code.

#### escho

• Senior
• Posts: 473
##### Re: Wanted: temperatures from your cams
« Reply #102 on: September 05, 2016, 05:05:42 PM »
Edgar

#### escho

• Senior
• Posts: 473
##### Re: Wanted: temperatures from your cams
« Reply #103 on: September 08, 2016, 10:59:28 PM »
I would like to use this one:
Code: [Select]
`#define EFIC_CELSIUS (MOD(efic_temp - 95, 256) * 40 / 100 - 22)`
This would cover a temperature-range between -22°C and  +80"C

Temperatures under -20"C can be possible ( in Sibirien ) but when you turn your cam on, the temperature will rise.
And I guess, Canon will shutdown the cam reaching about 80°C
So this temperature range from -22°C - +80°C should be satisfactory.

Edgar

#### escho

• Senior
• Posts: 473
##### Re: Wanted: temperatures from your cams
« Reply #104 on: September 09, 2016, 12:09:44 AM »
I did some testing with 1200D.
See the table below. (A => RAW; B => EXIF (°C))
Looks like it is close to group 5 (0,6x-65).
What do you think?

Yes, group 5 should be fine:

Edgar

#### escho

• Senior
• Posts: 473
##### Re: Wanted: temperatures from your cams
« Reply #105 on: September 09, 2016, 08:11:08 PM »
The EOS-M temperature jump is fixed. Thankyou Alex
Edgar

#### JohanJ

• Freshman
• Posts: 52
##### Re: Wanted: temperatures from your cams
« Reply #106 on: January 21, 2017, 06:16:41 PM »
@escho
Here is data from 100D/SL1 w/ ML Beta-4a (magiclantern-Nightly.2016Oct05.100D101)
Tried to cool down the cam in the fridge for about an hour. First shot is therefor with lower temp, looks strange in RAW.
I took a picture in LV mode about every minute and tried to keep the cam busy with focusing in between.

Code: [Select]
`Time    RAW ExifC0 143 151 144 242 146 263 150 304 150 325 155 356 156 367 156 398 159 419 164 4210 164 4411 164 4512 164 4713 166 4714 165 4815 172 4916 172 5017 173 5118 173 5219 172 5320 174 5321 174 5422 171 5523 176 5524 176 5625 175 5626 180 5727 180 5728 178 5829 178 5930 181 5931 178 60`
60D.111 / 100D.101 / M2.103

#### escho

• Senior
• Posts: 473
##### Re: Wanted: temperatures from your cams
« Reply #107 on: January 21, 2017, 07:51:03 PM »
Thanks Johan

The data look pretty nice. I will have a closer look to them later next week

Edgar

#### DeafEyeJedi

• Hero Member
• Posts: 3045
• 5D3 / M1 / 7D / 70D / SL1
##### Re: Wanted: temperatures from your cams
« Reply #108 on: January 21, 2017, 10:25:53 PM »
Per @a1ex's request -- I was able to use this command line to spit out Camera Temperatures via exiftool with ease on Mac OS X:

Code: [Select]
`exiftool -CameraTemperature`
rather than diving through the entire block with this:

Code: [Select]
`exiftool -U`
unless you want to go for a swim.

Anyway here are the results I got from doing the same test as @JohanJ earlier this week coming from @nikfreak's Nightly.2017Jan06.70D112 (with an exception that the body was left in an A/C controlled room at work to begin with for this test purpose):

Code: [Select]
`Time / RAW / ExifC0  152 261  161 262  164 293  169 314  174 325  179 336  181 347  180 348  182 369  185 3710 185 3811 192 3912 191 3913 193 4014 193 4015 196 4116 194 4117 202 5018 202 5119 202 5120 201 5121 201 5222 206 5223 206 5224 206 5225 207 5326 207 5327 207 5328 207 5329 211 5330 211 5331 211 53`
5D3.113 • 5D3.123 • EOSM.203 • 7D.203 • 70D.112 • 100D.101

#### escho

• Senior
• Posts: 473
##### Re: Wanted: temperatures from your cams
« Reply #109 on: February 20, 2017, 08:31:27 PM »
Find some time to make the graph and formula for 70D: https://seescho.wordpress.com/2016/04/24/temperaturanzeige-mit-magiclantern/
The 70D fits fine to convertion-group 5. So I guess, we will take:
Code: [Select]
`0,6x - 65`
I´m working on 100D

#### escho

• Senior
• Posts: 473
##### Re: Wanted: temperatures from your cams
« Reply #110 on: February 20, 2017, 09:43:37 PM »
And the 100D made its way through LibreOffice Calc, too. Formula and graph is on my website. Same link as one post before: https://seescho.wordpress.com/2016/04/24/temperaturanzeige-mit-magiclantern/

The 100D ist a cam for group 1:
Code: [Select]
`x - 128`

#### nikfreak

• Developer
• Hero Member
• Posts: 1029
##### Re: Wanted: temperatures from your cams
« Reply #111 on: February 21, 2017, 08:26:50 AM »
thanx for 70D and 100D.
70D.112 & 100D.101