Detector Building C

User avatar
MTV<=>Operator
Member
Member
Posts: 142
Joined: Fri Feb 08, 2019 12:41 pm
Division: Grad
State: NY
Has thanked: 9 times
Been thanked: 4 times

Re: Detector Building C

Post by MTV<=>Operator »

LIPX3 wrote: Fri Jan 31, 2020 6:02 am
pepperonipi wrote: Thu Jan 30, 2020 8:13 pm
MTV<=>Operator wrote: Thu Jan 30, 2020 7:26 pm For a single LED at once, you only need 3 temperature ranges, one for each LED. But if part of one range requires two LEDs to be on but another part of that range requires only one LED to be on, how would you do this? I tried making 5 temperature ranges, 3 for a single LED and 2 for multiple LEDs, but compound inequalities don't seem to work in the arduino code. Did I just misinterpret the rules?
That's where the beauty of multiple "else if" statements can help you. The code will select the first case that is true and run the code inside. In this case, if temp = 33, it would skip over the first block of code and move to the second block, triggering the red and blue LEDs simultaneously.

Code: Select all

if (temp < 25) {
  // Red Only
  redLED(on); 
  greenLED(off); 
  blueLED(off);
} else if (temp < 35) {
  // Red and Blue
  redLED(on);
  greenLED(off);
  blueLED(on);
} else if (temp < 50) {
  // Green Only
  redLED(off); 
  greenLED(on); 
  blueLED(off);
} else if (temp < 75) {
  // Blue Only
  redLED(off);
  greenLED(off);
  blueLED(on);
}
This provides a sufficient example. There's no need to make 5 temperature ranges - just make each temperature range control the LEDs as required.
Thank you both. I just learned how to program an arduino for this event so I apologize for the stupid questions.
THHS '21 Builder Cult Member
2017-2018
2018-2019
2019-2020: GV (9 YUSO, 5 NYC), Detector (8 YUSO, 7 NYC), WS (10 NYC), PPP
2020-2021 Events/ Yosemite/HUSO/River Hill/ NYC South Regional
Vehicle Design / 1/--/--/--
WICI / 3/--/--/--
Circuits /--/ 3/ 5/ 1
Machines /--/ 4/ 2/ 2
Detector /--/--/ 2/--
LIPX3
Member
Member
Posts: 95
Joined: Sun Jan 10, 2016 8:41 am
Division: C
Has thanked: 0
Been thanked: 2 times

Re: Detector Building C

Post by LIPX3 »

MTV<=>Operator wrote: Fri Jan 31, 2020 5:18 pm
LIPX3 wrote: Fri Jan 31, 2020 6:02 am
pepperonipi wrote: Thu Jan 30, 2020 8:13 pm

That's where the beauty of multiple "else if" statements can help you. The code will select the first case that is true and run the code inside. In this case, if temp = 33, it would skip over the first block of code and move to the second block, triggering the red and blue LEDs simultaneously.

Code: Select all

if (temp < 25) {
  // Red Only
  redLED(on); 
  greenLED(off); 
  blueLED(off);
} else if (temp < 35) {
  // Red and Blue
  redLED(on);
  greenLED(off);
  blueLED(on);
} else if (temp < 50) {
  // Green Only
  redLED(off); 
  greenLED(on); 
  blueLED(off);
} else if (temp < 75) {
  // Blue Only
  redLED(off);
  greenLED(off);
  blueLED(on);
}
This provides a sufficient example. There's no need to make 5 temperature ranges - just make each temperature range control the LEDs as required.
Thank you both. I just learned how to program an arduino for this event so I apologize for the stupid questions.
No need to apologize - the first time you learn to program (which I assume it is for you) is difficult , because it's a different way of thinking. It's a lot of trial and error, which is hard to get from learning alone.
nmurali2002
Member
Member
Posts: 16
Joined: Fri Oct 26, 2018 3:37 pm
Has thanked: 0
Been thanked: 3 times

Re: Detector Building C

Post by nmurali2002 »

Just wrapped up participating in this event at Solon, where the national event supervisor was present. The supervisor said that the intent of the event was not to have students curve-fit the Steinhart-hart equation but to derive their own equation. Apparently a rules clarification will be sent out. They will verify this by checking logs/code I assume.
LIPX3
Member
Member
Posts: 95
Joined: Sun Jan 10, 2016 8:41 am
Division: C
Has thanked: 0
Been thanked: 2 times

Re: Detector Building C

Post by LIPX3 »

nmurali2002 wrote: Sat Feb 01, 2020 1:17 pm Just wrapped up participating in this event at Solon, where the national event supervisor was present. The supervisor said that the intent of the event was not to have students curve-fit the Steinhart-hart equation but to derive their own equation. Apparently a rules clarification will be sent out. They will verify this by checking logs/code I assume.
That seems ridiculous - why shouldn't competitors be able to use a specific type of model? Competitors should be able to use whatever model they want. Looking forward to see if any such rules clarifications comes out, and how it will be worded.
User avatar
bernard
Administrator
Administrator
Posts: 2405
Joined: Sun Jan 05, 2014 3:12 pm
Division: Grad
State: WA
Pronouns: He/Him/His
Has thanked: 165 times
Been thanked: 731 times

Re: Detector Building C

Post by bernard »

LIPX3 wrote: Sat Feb 01, 2020 1:58 pm
nmurali2002 wrote: Sat Feb 01, 2020 1:17 pm Just wrapped up participating in this event at Solon, where the national event supervisor was present. The supervisor said that the intent of the event was not to have students curve-fit the Steinhart-hart equation but to derive their own equation. Apparently a rules clarification will be sent out. They will verify this by checking logs/code I assume.
That seems ridiculous - why shouldn't competitors be able to use a specific type of model? Competitors should be able to use whatever model they want. Looking forward to see if any such rules clarifications comes out, and how it will be worded.
Sometimes in discovery, you'll want to derive a relationship for which no established model has been described.
"One of the ways that I believe people express their appreciation to the rest of humanity is to make something wonderful and put it out there." – Steve Jobs
fyuan483
Member
Member
Posts: 34
Joined: Mon Jan 13, 2020 2:27 pm
Division: C
State: NY
Has thanked: 0
Been thanked: 0

Re: Detector Building C

Post by fyuan483 »

hi. i am somewhat confused on the program codes. i understand how to get the temperature and the led lights, but i’m not really sure how to create a program that displays the voltage. can anyone explain it to me? also you get the temperature through the equation solved through the analog inputs right? thank you!
nicholasmaurer
Coach
Coach
Posts: 422
Joined: Fri May 19, 2017 10:55 am
Division: Grad
State: OH
Has thanked: 1 time
Been thanked: 22 times

Re: Detector Building C

Post by nicholasmaurer »

bernard wrote: Sat Feb 01, 2020 2:08 pm
LIPX3 wrote: Sat Feb 01, 2020 1:58 pm
nmurali2002 wrote: Sat Feb 01, 2020 1:17 pm Just wrapped up participating in this event at Solon, where the national event supervisor was present. The supervisor said that the intent of the event was not to have students curve-fit the Steinhart-hart equation but to derive their own equation. Apparently a rules clarification will be sent out. They will verify this by checking logs/code I assume.
That seems ridiculous - why shouldn't competitors be able to use a specific type of model? Competitors should be able to use whatever model they want. Looking forward to see if any such rules clarifications comes out, and how it will be worded.
Sometimes in discovery, you'll want to derive a relationship for which no established model has been described.
Without getting too far into the weeds/details, I will say that decision was overturned by arbitration at Solon and all teams were given full credit for their logs/equations regardless of what model they used. Unless a new FAQ or rule clarification is issued, the one from 11/24/19 on Steinhart-Hart holds true.
Assistant Coach and Alumnus ('14) - Solon High School Science Olympiad
Tournament Director - Northeast Ohio Regional Tournament
Tournament Director - Solon High School Science Olympiad Invitational

Opinions expressed on this site are not official; the only place for official rules changes and FAQs is soinc.org.
LIPX3
Member
Member
Posts: 95
Joined: Sun Jan 10, 2016 8:41 am
Division: C
Has thanked: 0
Been thanked: 2 times

Re: Detector Building C

Post by LIPX3 »

bernard wrote: Sat Feb 01, 2020 2:08 pm
LIPX3 wrote: Sat Feb 01, 2020 1:58 pm
nmurali2002 wrote: Sat Feb 01, 2020 1:17 pm Just wrapped up participating in this event at Solon, where the national event supervisor was present. The supervisor said that the intent of the event was not to have students curve-fit the Steinhart-hart equation but to derive their own equation. Apparently a rules clarification will be sent out. They will verify this by checking logs/code I assume.
That seems ridiculous - why shouldn't competitors be able to use a specific type of model? Competitors should be able to use whatever model they want. Looking forward to see if any such rules clarifications comes out, and how it will be worded.
Sometimes in discovery, you'll want to derive a relationship for which no established model has been described.
Why is that necescary? If competitors find that the Steinhart model best predicts temperautre, then they should be able to use it. No research team would ever refuse to use a technique of data modeling because it had already been used.
LIPX3
Member
Member
Posts: 95
Joined: Sun Jan 10, 2016 8:41 am
Division: C
Has thanked: 0
Been thanked: 2 times

Re: Detector Building C

Post by LIPX3 »

nicholasmaurer wrote: Sat Feb 01, 2020 9:00 pm
bernard wrote: Sat Feb 01, 2020 2:08 pm
LIPX3 wrote: Sat Feb 01, 2020 1:58 pm
That seems ridiculous - why shouldn't competitors be able to use a specific type of model? Competitors should be able to use whatever model they want. Looking forward to see if any such rules clarifications comes out, and how it will be worded.
Sometimes in discovery, you'll want to derive a relationship for which no established model has been described.
Without getting too far into the weeds/details, I will say that decision was overturned by arbitration at Solon and all teams were given full credit for their logs/equations regardless of what model they used. Unless a new FAQ or rule clarification is issued, the one from 11/24/19 on Steinhart-Hart holds true.
On another note, that FAQ seems the exact opposite of what this suppose new change says, more than 2 months later. With how far in the season we already are, I doubt such a change will occur.
User avatar
bernard
Administrator
Administrator
Posts: 2405
Joined: Sun Jan 05, 2014 3:12 pm
Division: Grad
State: WA
Pronouns: He/Him/His
Has thanked: 165 times
Been thanked: 731 times

Re: Detector Building C

Post by bernard »

Submitting to the record the referenced FAQ.
Are students allowed to use their own version of the Steinhart-Hart Equation (i.e. with the coefficients they found) to convert resistance values into temperature values?
Yes, so long as they are derived from a temperature vs. voltage data and graph.
"One of the ways that I believe people express their appreciation to the rest of humanity is to make something wonderful and put it out there." – Steve Jobs

Return to “Detector Building C”