Thank you both. I just learned how to program an arduino for this event so I apologize for the stupid questions.LIPX3 wrote: ↑Fri Jan 31, 2020 6:02 amThis provides a sufficient example. There's no need to make 5 temperature ranges - just make each temperature range control the LEDs as required.pepperonipi wrote: ↑Thu Jan 30, 2020 8:13 pmThat'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.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?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); }
Detector Building C
-
- 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
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/--
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/--
-
- Member
- Posts: 95
- Joined: Sun Jan 10, 2016 8:41 am
- Division: C
- Has thanked: 0
- Been thanked: 2 times
Re: Detector Building C
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.MTV<=>Operator wrote: ↑Fri Jan 31, 2020 5:18 pmThank you both. I just learned how to program an arduino for this event so I apologize for the stupid questions.LIPX3 wrote: ↑Fri Jan 31, 2020 6:02 amThis provides a sufficient example. There's no need to make 5 temperature ranges - just make each temperature range control the LEDs as required.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); }
Re: Detector Building C
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.
-
- Member
- Posts: 95
- Joined: Sun Jan 10, 2016 8:41 am
- Division: C
- Has thanked: 0
- Been thanked: 2 times
Re: Detector Building C
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.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.
-
- 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
Sometimes in discovery, you'll want to derive a relationship for which no established model has been described.LIPX3 wrote: ↑Sat Feb 01, 2020 1:58 pmThat 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.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.
"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
-
- 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
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!
-
- 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
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.bernard wrote: ↑Sat Feb 01, 2020 2:08 pmSometimes in discovery, you'll want to derive a relationship for which no established model has been described.LIPX3 wrote: ↑Sat Feb 01, 2020 1:58 pmThat 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.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.
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.
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.
-
- Member
- Posts: 95
- Joined: Sun Jan 10, 2016 8:41 am
- Division: C
- Has thanked: 0
- Been thanked: 2 times
Re: Detector Building C
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.bernard wrote: ↑Sat Feb 01, 2020 2:08 pmSometimes in discovery, you'll want to derive a relationship for which no established model has been described.LIPX3 wrote: ↑Sat Feb 01, 2020 1:58 pmThat 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.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.
-
- Member
- Posts: 95
- Joined: Sun Jan 10, 2016 8:41 am
- Division: C
- Has thanked: 0
- Been thanked: 2 times
Re: Detector Building C
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.nicholasmaurer wrote: ↑Sat Feb 01, 2020 9:00 pmWithout 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.
-
- 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
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