Author Topic: Wanted: temperatures from your cams  (Read 52174 times)

escho

  • Senior
  • ****
  • Posts: 434
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

  • Administrator
  • Hero Member
  • *****
  • Posts: 9840
  • 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 42
42 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: 434
Re: Wanted: temperatures from your cams
« Reply #102 on: September 05, 2016, 05:05:42 PM »
Thanks for the explanaton, Alex. I must reflect a bit about this, next days...
Edgar

escho

  • Senior
  • ****
  • Posts: 434
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: 434
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: 434
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

  • New to the forum
  • *
  • Posts: 27
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 ExifC
0 143 15
1 144 24
2 146 26
3 150 30
4 150 32
5 155 35
6 156 36
7 156 39
8 159 41
9 164 42
10 164 44
11 164 45
12 164 47
13 166 47
14 165 48
15 172 49
16 172 50
17 173 51
18 173 52
19 172 53
20 174 53
21 174 54
22 171 55
23 176 55
24 176 56
25 175 56
26 180 57
27 180 57
28 178 58
29 178 59
30 181 59
31 178 60

60D.111 & 100D.101

escho

  • Senior
  • ****
  • Posts: 434
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: 2900
  • 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.  :P

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 / ExifC
0  152 26
1  161 26
2  164 29
3  169 31
4  174 32
5  179 33
6  181 34
7  180 34
8  182 36
9  185 37
10 185 38
11 192 39
12 191 39
13 193 40
14 193 40
15 196 41
16 194 41
17 202 50
18 202 51
19 202 51
20 201 51
21 201 52
22 206 52
23 206 52
24 206 52
25 207 53
26 207 53
27 207 53
28 207 53
29 211 53
30 211 53
31 211 53
5D3.113 • 5D3.123 • EOSM.203 • 7D.203 • 70D.112 • 100D.101

escho

  • Senior
  • ****
  • Posts: 434
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: 434
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: 944
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