Skip to content

Instantly share code, notes, and snippets.

@DiegoAscanio
Last active Apr 8, 2020
Embed
What would you like to do?
const int PINO_TERMOMETRO = 0; // o termometro está ligado no A0
int amostras = 0;
float temperatura = 0;
void setup() {
Serial.begin(9600);
Serial.println("tempo,temperatura");
}
void enviar_mensagem_computador() {
Serial.print((float) amostras);
Serial.print(",");
Serial.println(temperatura);
}
void loop() {
while (amostras <= 540) {
temperatura = (analogRead(PINO_TERMOMETRO) * 0.4887585532);
enviar_mensagem_computador();
delay(1000);
amostras ++;
}
}
tempo temperatura
1 28.84
2 28.84
3 28.35
4 28.84
5 28.35
6 28.35
7 27.86
8 28.35
9 28.84
10 30.30
11 31.28
12 32.75
13 34.70
14 35.68
15 36.66
16 37.15
17 37.63
18 38.12
19 38.61
20 39.10
21 39.59
22 39.59
23 40.08
24 40.08
25 40.57
26 41.06
27 40.57
28 40.57
29 41.06
30 41.06
31 41.54
32 41.06
33 41.06
34 41.54
35 41.06
36 41.54
37 41.54
38 41.06
39 41.06
40 42.03
41 42.03
42 42.52
43 42.03
44 42.03
45 41.54
46 41.54
47 42.03
48 41.54
49 42.03
50 42.03
51 42.03
52 43.01
53 42.03
54 42.52
55 42.52
56 42.03
57 42.52
58 42.52
59 42.52
60 42.52
61 42.03
62 43.01
63 42.52
64 42.52
65 42.52
66 42.52
67 42.52
68 42.03
69 42.52
70 42.52
71 42.03
72 42.03
73 42.52
74 42.03
75 42.52
76 42.03
77 42.52
78 42.52
79 43.01
80 42.52
81 42.52
82 42.52
83 42.52
84 42.03
85 42.52
86 42.52
87 42.52
88 42.52
89 42.52
90 43.01
91 43.01
92 42.52
93 42.52
94 42.52
95 42.52
96 43.01
97 43.01
98 43.01
99 42.52
100 43.01
101 42.03
102 42.52
103 43.01
104 43.01
105 43.01
106 42.52
107 43.01
108 42.03
109 42.52
110 43.50
111 42.52
112 42.52
113 42.52
114 42.52
115 43.01
116 42.52
117 42.52
118 43.01
119 42.52
120 42.52
121 42.52
122 43.01
123 43.01
124 42.52
125 43.01
126 42.03
127 42.52
128 43.01
129 43.01
130 43.01
131 42.52
132 43.01
133 43.01
134 42.52
135 42.03
136 42.52
137 43.01
138 42.52
139 43.01
140 43.01
141 42.52
142 43.01
143 43.01
144 42.52
145 43.01
146 43.50
147 43.01
148 43.01
149 42.52
150 42.52
151 42.52
152 42.52
153 43.50
154 43.01
155 43.01
156 43.01
157 43.50
158 42.03
159 43.01
160 43.01
161 43.01
162 43.50
163 43.01
164 43.01
165 43.01
166 42.52
167 42.52
168 43.01
169 43.01
170 43.01
171 43.01
172 43.50
173 43.50
174 43.01
175 43.01
176 42.52
177 43.01
178 43.01
179 42.52
180 43.01
181 43.01
182 43.01
183 43.50
184 43.50
185 43.01
186 43.01
187 43.01
188 43.01
189 43.50
190 43.50
191 43.01
192 43.50
193 43.50
194 43.50
195 42.52
196 43.99
197 43.50
198 43.50
199 43.50
200 42.52
201 43.50
202 43.01
203 43.50
204 43.01
205 43.99
206 43.50
207 43.50
208 43.99
209 43.50
210 43.99
211 43.01
212 43.01
213 43.99
214 43.50
215 43.99
216 43.50
217 43.50
218 43.50
219 43.50
220 43.99
221 43.50
222 43.50
223 43.50
224 43.99
225 43.50
226 43.50
227 43.99
228 43.99
229 43.50
230 43.50
231 43.99
232 43.99
233 44.48
234 43.99
235 43.99
236 44.48
237 43.99
238 43.99
239 43.99
240 43.99
tempo temperatura
0.00 26.39
1.00 26.39
2.00 26.88
3.00 28.35
4.00 30.79
5.00 35.19
6.00 38.12
7.00 41.54
8.00 44.48
9.00 47.41
10.00 49.36
11.00 51.81
12.00 53.27
13.00 54.74
14.00 56.21
15.00 57.18
16.00 58.16
17.00 59.14
18.00 60.12
19.00 60.61
20.00 62.07
21.00 62.56
22.00 63.05
23.00 63.05
24.00 63.54
25.00 64.52
26.00 64.52
27.00 65.49
28.00 65.00
29.00 65.98
30.00 66.47
31.00 66.47
32.00 66.96
33.00 66.96
34.00 66.96
35.00 67.45
36.00 67.94
37.00 67.94
38.00 67.94
39.00 67.94
40.00 67.94
41.00 68.91
42.00 68.91
43.00 68.91
44.00 68.91
45.00 68.91
46.00 69.40
47.00 69.40
48.00 69.89
49.00 69.40
50.00 69.89
51.00 69.89
52.00 69.89
53.00 69.89
54.00 70.38
55.00 70.38
56.00 70.38
57.00 70.38
58.00 70.87
59.00 70.87
60.00 70.87
61.00 70.87
62.00 71.36
63.00 70.87
64.00 70.87
65.00 71.36
66.00 71.36
67.00 71.36
68.00 71.85
69.00 71.36
70.00 71.85
71.00 71.36
72.00 71.85
73.00 71.85
74.00 71.85
75.00 71.85
76.00 71.85
77.00 72.34
78.00 72.34
79.00 71.85
80.00 71.85
81.00 71.85
82.00 72.34
83.00 72.34
84.00 72.34
85.00 72.34
86.00 72.34
87.00 72.34
88.00 72.34
89.00 72.34
90.00 72.34
91.00 72.34
92.00 72.34
93.00 71.85
94.00 72.34
95.00 72.34
96.00 72.34
97.00 72.34
98.00 71.85
99.00 72.34
100.00 72.34
101.00 72.34
102.00 71.85
103.00 72.83
104.00 72.34
105.00 72.34
106.00 72.34
107.00 71.85
108.00 72.83
109.00 72.83
110.00 72.34
111.00 72.34
112.00 72.34
113.00 72.34
114.00 72.83
115.00 72.83
116.00 72.83
117.00 72.34
118.00 72.83
119.00 73.31
120.00 72.83
121.00 72.34
122.00 72.83
123.00 72.83
124.00 72.83
125.00 73.31
126.00 72.83
127.00 72.83
128.00 72.83
129.00 72.83
130.00 72.83
131.00 73.31
132.00 73.31
133.00 72.83
134.00 72.83
135.00 73.31
136.00 73.31
137.00 72.83
138.00 72.83
139.00 73.31
140.00 73.31
141.00 73.31
142.00 72.83
143.00 72.83
144.00 73.31
145.00 73.31
146.00 73.31
147.00 72.83
148.00 73.80
149.00 73.80
150.00 73.31
151.00 73.31
152.00 73.80
153.00 73.31
154.00 73.80
155.00 73.31
156.00 73.80
157.00 73.31
158.00 73.80
159.00 73.80
160.00 73.80
161.00 73.80
162.00 73.80
163.00 73.31
164.00 74.29
165.00 73.80
166.00 73.80
167.00 73.80
168.00 73.80
169.00 73.80
170.00 73.80
171.00 73.80
172.00 73.80
173.00 73.31
174.00 73.80
175.00 73.80
176.00 73.80
177.00 74.29
178.00 73.80
179.00 74.29
180.00 73.80
181.00 73.80
182.00 74.29
183.00 73.80
184.00 74.29
185.00 74.29
186.00 74.29
187.00 74.29
188.00 73.80
189.00 74.29
190.00 74.78
191.00 74.29
192.00 74.29
193.00 74.29
194.00 74.29
195.00 74.29
196.00 74.78
197.00 75.27
198.00 74.78
199.00 74.78
200.00 74.78
201.00 74.78
202.00 74.29
203.00 74.78
204.00 74.78
205.00 74.29
206.00 74.78
207.00 74.78
208.00 75.27
209.00 75.27
210.00 74.78
211.00 74.78
212.00 75.27
213.00 74.78
214.00 74.78
215.00 74.78
216.00 75.27
217.00 75.27
218.00 75.27
219.00 75.27
220.00 75.27
221.00 75.27
222.00 75.27
223.00 75.27
224.00 75.27
225.00 75.76
226.00 75.76
227.00 75.27
228.00 75.27
229.00 75.27
230.00 75.27
231.00 75.76
232.00 75.76
233.00 75.27
234.00 75.27
235.00 75.76
236.00 75.27
237.00 75.27
238.00 75.27
239.00 75.27
240.00 75.27
tempo temperatura
0.00 26.39
1.00 26.39
2.00 26.88
3.00 28.35
4.00 30.79
5.00 35.19
6.00 38.12
7.00 41.54
8.00 44.48
9.00 47.41
10.00 49.36
11.00 51.81
12.00 53.27
13.00 54.74
14.00 56.21
15.00 57.18
16.00 58.16
17.00 59.14
18.00 60.12
19.00 60.61
20.00 62.07
21.00 62.56
22.00 63.05
23.00 63.05
24.00 63.54
25.00 64.52
26.00 64.52
27.00 65.49
28.00 65.00
29.00 65.98
30.00 66.47
31.00 66.47
32.00 66.96
33.00 66.96
34.00 66.96
35.00 67.45
36.00 67.94
37.00 67.94
38.00 67.94
39.00 67.94
40.00 67.94
41.00 68.91
42.00 68.91
43.00 68.91
44.00 68.91
45.00 68.91
46.00 69.40
47.00 69.40
48.00 69.89
49.00 69.40
50.00 69.89
51.00 69.89
52.00 69.89
53.00 69.89
54.00 70.38
55.00 70.38
56.00 70.38
57.00 70.38
58.00 70.87
59.00 70.87
60.00 70.87
61.00 70.87
62.00 71.36
63.00 70.87
64.00 70.87
65.00 71.36
66.00 71.36
67.00 71.36
68.00 71.85
69.00 71.36
70.00 71.85
71.00 71.36
72.00 71.85
73.00 71.85
74.00 71.85
75.00 71.85
76.00 71.85
77.00 72.34
78.00 72.34
79.00 71.85
80.00 71.85
81.00 71.85
82.00 72.34
83.00 72.34
84.00 72.34
85.00 72.34
86.00 72.34
87.00 72.34
88.00 72.34
89.00 72.34
90.00 72.34
91.00 72.34
92.00 72.34
93.00 71.85
94.00 72.34
95.00 72.34
96.00 72.34
97.00 72.34
98.00 71.85
99.00 72.34
100.00 72.34
101.00 72.34
102.00 71.85
103.00 72.83
104.00 72.34
105.00 72.34
106.00 72.34
107.00 71.85
108.00 72.83
109.00 72.83
110.00 72.34
111.00 72.34
112.00 72.34
113.00 72.34
114.00 72.83
115.00 72.83
116.00 72.83
117.00 72.34
118.00 72.83
119.00 73.31
120.00 72.83
121.00 72.34
122.00 72.83
123.00 72.83
124.00 72.83
125.00 73.31
126.00 72.83
127.00 72.83
128.00 72.83
129.00 72.83
130.00 72.83
131.00 73.31
132.00 73.31
133.00 72.83
134.00 72.83
135.00 73.31
136.00 73.31
137.00 72.83
138.00 72.83
139.00 73.31
140.00 73.31
141.00 73.31
142.00 72.83
143.00 72.83
144.00 73.31
145.00 73.31
146.00 73.31
147.00 72.83
148.00 73.80
149.00 73.80
150.00 73.31
151.00 73.31
152.00 73.80
153.00 73.31
154.00 73.80
155.00 73.31
156.00 73.80
157.00 73.31
158.00 73.80
159.00 73.80
160.00 73.80
161.00 73.80
162.00 73.80
163.00 73.31
164.00 74.29
165.00 73.80
166.00 73.80
167.00 73.80
168.00 73.80
169.00 73.80
170.00 73.80
171.00 73.80
172.00 73.80
173.00 73.31
174.00 73.80
175.00 73.80
176.00 73.80
177.00 74.29
178.00 73.80
179.00 74.29
180.00 73.80
181.00 73.80
182.00 74.29
183.00 73.80
184.00 74.29
185.00 74.29
186.00 74.29
187.00 74.29
188.00 73.80
189.00 74.29
190.00 74.78
191.00 74.29
192.00 74.29
193.00 74.29
194.00 74.29
195.00 74.29
196.00 74.78
197.00 75.27
198.00 74.78
199.00 74.78
200.00 74.78
201.00 74.78
202.00 74.29
203.00 74.78
204.00 74.78
205.00 74.29
206.00 74.78
207.00 74.78
208.00 75.27
209.00 75.27
210.00 74.78
211.00 74.78
212.00 75.27
213.00 74.78
214.00 74.78
215.00 74.78
216.00 75.27
217.00 75.27
218.00 75.27
219.00 75.27
220.00 75.27
221.00 75.27
222.00 75.27
223.00 75.27
224.00 75.27
225.00 75.76
226.00 75.76
227.00 75.27
228.00 75.27
229.00 75.27
230.00 75.27
231.00 75.76
232.00 75.76
233.00 75.27
234.00 75.27
235.00 75.76
236.00 75.27
237.00 75.27
238.00 75.27
239.00 75.27
240.00 75.27
241.00 75.27
242.00 75.27
243.00 75.76
244.00 75.27
245.00 75.27
246.00 75.76
247.00 75.76
248.00 75.27
249.00 75.76
250.00 76.25
251.00 76.25
252.00 75.76
253.00 75.76
254.00 76.25
255.00 76.25
256.00 76.25
257.00 75.76
258.00 76.25
259.00 75.76
260.00 75.76
261.00 75.76
262.00 75.76
263.00 76.25
264.00 76.25
265.00 76.25
266.00 76.25
267.00 76.25
268.00 76.25
269.00 76.25
270.00 76.74
271.00 76.74
272.00 76.74
273.00 76.74
274.00 76.25
275.00 76.25
276.00 77.22
277.00 76.25
278.00 76.74
279.00 76.74
280.00 76.74
281.00 76.74
282.00 76.25
283.00 76.74
284.00 76.74
285.00 76.74
286.00 76.25
287.00 76.25
288.00 76.74
289.00 76.25
290.00 76.25
291.00 76.74
292.00 76.25
293.00 76.25
294.00 76.25
295.00 76.25
296.00 76.25
297.00 76.25
298.00 76.25
299.00 76.25
300.00 76.25
301.00 76.25
302.00 76.25
303.00 76.25
304.00 76.74
305.00 76.25
306.00 76.25
307.00 76.25
308.00 76.74
309.00 76.74
310.00 76.74
311.00 76.74
312.00 76.25
313.00 76.74
314.00 76.25
315.00 76.74
316.00 76.74
317.00 76.74
318.00 76.74
319.00 76.74
320.00 76.74
321.00 77.22
322.00 76.74
323.00 76.74
324.00 76.74
325.00 76.74
326.00 76.74
327.00 76.74
328.00 76.74
329.00 76.74
330.00 77.22
331.00 76.74
332.00 77.22
333.00 76.74
334.00 77.22
335.00 76.74
336.00 77.22
337.00 76.74
338.00 76.74
339.00 77.22
340.00 76.74
341.00 76.74
342.00 76.74
343.00 76.74
344.00 76.74
345.00 77.22
346.00 76.74
347.00 76.74
348.00 76.74
349.00 77.22
350.00 77.22
351.00 77.22
352.00 77.71
353.00 76.74
354.00 77.22
355.00 77.22
356.00 77.22
357.00 77.22
358.00 77.71
359.00 77.22
tempo temperatura
0 28.84
1 28.84
2 28.84
3 28.35
4 28.84
5 29.81
6 30.79
7 31.77
8 32.75
9 34.21
10 34.21
11 35.68
12 36.17
13 37.15
14 38.12
15 38.61
16 39.59
17 40.08
18 40.57
19 41.54
20 42.52
21 42.52
22 43.01
23 43.50
24 43.99
25 44.97
26 45.45
27 46.43
28 46.43
29 46.92
30 47.41
31 47.41
32 48.39
33 48.39
34 48.88
35 49.36
36 49.36
37 49.85
38 50.34
39 50.83
40 51.32
41 51.81
42 51.81
43 51.81
44 52.30
45 52.30
46 53.27
47 53.27
48 53.27
49 53.76
50 53.76
51 53.76
52 54.25
53 54.25
54 55.23
55 55.23
56 55.23
57 55.23
58 55.72
59 55.72
60 56.21
61 56.21
62 56.70
63 56.70
64 57.18
65 56.70
66 57.18
67 57.67
68 57.18
69 58.16
70 58.16
71 58.16
72 58.16
73 58.65
74 58.65
75 58.65
76 59.14
77 59.14
78 59.63
79 59.63
80 59.63
81 59.63
82 59.63
83 60.12
84 60.12
85 60.61
86 61.09
87 61.09
88 61.09
89 61.09
90 61.09
91 61.09
92 61.58
93 61.09
94 62.07
95 61.58
96 62.07
97 62.07
98 62.07
99 62.56
100 63.05
101 62.56
102 63.05
103 63.05
104 63.05
105 63.54
106 63.54
107 63.54
108 63.54
109 63.54
110 63.54
111 63.54
112 64.03
113 64.03
114 64.03
115 64.03
116 64.03
117 64.52
118 64.52
119 65.00
120 64.52
121 64.52
122 64.52
123 64.52
124 64.52
125 64.52
126 64.52
127 65.00
128 65.00
129 65.00
130 65.00
131 65.98
132 65.49
133 65.49
134 65.49
135 65.49
136 65.00
137 65.98
138 65.49
139 65.49
140 65.49
141 65.98
142 65.98
143 65.98
144 66.47
145 65.98
146 65.98
147 65.98
148 65.98
149 66.47
150 65.98
151 66.47
152 66.47
153 66.47
154 66.47
155 66.47
156 66.47
157 66.47
158 66.96
159 67.45
160 67.45
161 67.45
162 67.45
163 67.94
164 67.45
165 67.45
166 67.94
167 67.94
168 66.96
169 67.45
170 67.45
171 67.45
172 67.45
173 67.45
174 67.94
175 67.94
176 67.94
177 67.94
178 68.43
179 67.94
180 67.94
181 68.43
182 68.43
183 68.91
184 68.43
185 68.43
186 68.91
187 68.43
188 68.43
189 68.91
190 68.91
191 68.43
192 68.91
193 68.43
194 68.91
195 68.43
196 68.91
197 68.43
198 68.43
199 68.43
200 68.91
201 68.43
202 68.43
203 68.43
204 68.43
205 68.91
206 68.43
207 68.43
208 68.43
209 68.43
210 68.43
211 69.40
212 68.91
213 68.43
214 68.43
215 68.43
216 68.91
217 68.91
218 68.43
219 68.43
220 68.91
221 68.91
222 68.91
223 68.91
224 68.91
225 68.91
226 68.91
227 68.91
228 69.40
229 68.91
230 68.91
231 68.91
232 69.40
233 68.91
234 69.89
235 68.91
236 69.40
237 69.40
238 69.40
239 68.91
240 69.40
241 69.40
242 69.40
243 68.91
244 69.40
245 69.40
246 69.40
247 69.40
248 69.40
249 69.89
250 68.91
251 69.40
252 69.40
253 68.91
254 69.40
255 69.40
256 69.40
257 68.91
258 69.40
259 69.40
260 68.91
261 69.89
262 68.91
263 69.89
264 69.40
265 69.40
266 69.89
267 69.40
268 69.89
269 68.91
270 69.40
271 69.40
272 68.91
273 69.40
274 69.40
275 69.40
276 69.89
277 69.40
278 69.89
279 68.91
280 69.89
281 69.40
282 69.40
283 69.40
284 69.89
285 69.40
286 69.40
287 69.40
288 69.89
289 68.91
290 69.40
291 69.40
292 69.89
293 69.40
294 69.89
295 69.89
296 69.40
297 69.40
298 69.40
299 68.91
300 69.40
301 69.40
302 69.40
303 69.40
304 69.40
305 69.40
306 69.89
307 69.89
308 69.40
309 69.89
310 69.40
311 69.40
312 69.40
313 69.40
314 69.89
315 69.89
316 69.89
317 69.89
318 69.40
319 69.89
320 69.40
321 69.89
322 69.40
323 69.40
324 69.89
325 69.89
326 69.89
327 70.38
328 69.89
329 70.38
330 69.89
331 69.89
332 70.38
333 70.38
334 69.89
335 69.89
336 70.38
337 69.89
338 70.38
339 70.38
340 70.38
341 70.87
342 69.89
343 70.38
344 69.89
345 69.89
346 70.38
347 70.38
348 70.87
349 70.38
350 70.38
351 69.89
352 69.89
353 69.89
354 69.89
355 69.89
356 70.38
357 69.89
358 70.38
359 70.38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment