aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTa180m2020-02-21 16:06:38 -0600
committerTa180m2020-02-21 16:06:38 -0600
commite152160b6cd64bbeb05e5e69fda118d51ff0ce58 (patch)
treed598fd98557190d60293aa45ee96a5b77149e065
parent04ccf85288d8496b3bb4d147a5f42566fdaa6d46 (diff)
Create Detector_Building_v2.ino
-rw-r--r--Detector_Building_v2/Detector_Building_v2.ino34
1 files changed, 34 insertions, 0 deletions
diff --git a/Detector_Building_v2/Detector_Building_v2.ino b/Detector_Building_v2/Detector_Building_v2.ino
new file mode 100644
index 0000000..e4d73be
--- /dev/null
+++ b/Detector_Building_v2/Detector_Building_v2.ino
@@ -0,0 +1,34 @@
+/*
+ Detector Building v2
+ Code by Anthony Wang
+ Ladue High School Science Olympiad
+*/
+
+/*
+ TODO:
+ New calibration method using cubic regression
+*/
+
+#include <curveFitting.h>
+#include <detectorBuilding.h>
+
+
+const int n = 30; // Number of data points
+const int m = 1; // Number of segments
+double V[n] = { // Voltage measurements
+ 2.12, 3.26, 3.96
+};
+double T[n] = { // Temperature measurements
+ 22.0, 39.15, 60
+};
+
+void loop() {
+
+}
+
+void setup() {
+ Serial.begin(9600);
+ pinMode(LED_R, OUTPUT);
+ pinMode(LED_G, OUTPUT);
+ pinMode(LED_B, OUTPUT);
+}