Detector Building C

Locked
User avatar
MTV<=>Operator
Member
Member
Posts: 138
Joined: February 8th, 2019, 12:41 pm
Division: C
State: NY
Location: Dead
Has thanked: 8 times
Been thanked: 4 times

Re: Detector Building C

Post by MTV<=>Operator » January 31st, 2020, 5:18 pm

LIPX3 wrote:
January 31st, 2020, 6:02 am
pepperonipi wrote:
January 30th, 2020, 8:13 pm
MTV<=>Operator wrote:
January 30th, 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: Mousetrap, Hovercraft, Towers
2018-2019: Mousetrap (8th regional), Boomilever (3rd regional), Wright Stuff
2020 Events/YUSO/regional
Gravity Vehicle/9/5
Detector Building/8/7
Wright Stuff/--/10
Ping Pong Parachute/--/--

LIPX3
Member
Member
Posts: 95
Joined: January 10th, 2016, 8:41 am
Division: C
Has thanked: 0
Been thanked: 2 times

Re: Detector Building C

Post by LIPX3 » January 31st, 2020, 9:50 pm

MTV<=>Operator wrote:
January 31st, 2020, 5:18 pm
LIPX3 wrote:
January 31st, 2020, 6:02 am
pepperonipi wrote:
January 30th, 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: October 26th, 2018, 3:37 pm
Has thanked: 0
Been thanked: 3 times

Re: Detector Building C

Post by nmurali2002 » February 1st, 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.

LIPX3
Member
Member
Posts: 95
Joined: January 10th, 2016, 8:41 am
Division: C
Has thanked: 0
Been thanked: 2 times

Re: Detector Building C

Post by LIPX3 » February 1st, 2020, 1:58 pm

nmurali2002 wrote:
February 1st, 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: 2215
Joined: January 5th, 2014, 3:12 pm
Division: Grad
State: WA
Pronouns: He/Him/His
Location: Seattle, WA
Has thanked: 123 times
Been thanked: 380 times
Contact:

Re: Detector Building C

Post by bernard » February 1st, 2020, 2:08 pm

LIPX3 wrote:
February 1st, 2020, 1:58 pm
nmurali2002 wrote:
February 1st, 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."

fyuan483
Member
Member
Posts: 34
Joined: January 13th, 2020, 2:27 pm
Division: C
State: NY
Has thanked: 0
Been thanked: 0

Re: Detector Building C

Post by fyuan483 » February 1st, 2020, 7:37 pm

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: 418
Joined: May 19th, 2017, 10:55 am
Division: Grad
State: OH
Location: Solon, OH
Has thanked: 1 time
Been thanked: 20 times

Re: Detector Building C

Post by nicholasmaurer » February 1st, 2020, 9:00 pm

bernard wrote:
February 1st, 2020, 2:08 pm
LIPX3 wrote:
February 1st, 2020, 1:58 pm
nmurali2002 wrote:
February 1st, 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: January 10th, 2016, 8:41 am
Division: C
Has thanked: 0
Been thanked: 2 times

Re: Detector Building C

Post by LIPX3 » February 2nd, 2020, 2:10 am

bernard wrote:
February 1st, 2020, 2:08 pm
LIPX3 wrote:
February 1st, 2020, 1:58 pm
nmurali2002 wrote:
February 1st, 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: January 10th, 2016, 8:41 am
Division: C
Has thanked: 0
Been thanked: 2 times

Re: Detector Building C

Post by LIPX3 » February 2nd, 2020, 2:12 am

nicholasmaurer wrote:
February 1st, 2020, 9:00 pm
bernard wrote:
February 1st, 2020, 2:08 pm
LIPX3 wrote:
February 1st, 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: 2215
Joined: January 5th, 2014, 3:12 pm
Division: Grad
State: WA
Pronouns: He/Him/His
Location: Seattle, WA
Has thanked: 123 times
Been thanked: 380 times
Contact:

Re: Detector Building C

Post by bernard » February 2nd, 2020, 2:36 am

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."

Locked

Return to “Detector Building C”

Who is online

Users browsing this forum: No registered users and 1 guest