If you meant the temperature ranges for the LEDs, then yes you will only know the ranges once you walk into the testing room and they start.
Detector Building C
-
- Member
- Posts: 46
- Joined: Mon Jul 30, 2018 12:20 pm
- Division: C
- State: IN
- Has thanked: 0
- Been thanked: 11 times
Re: Detector Building C
Any opinions stated on this site are not official, the only official information can be found at soinc.org
University of South Florida '25
Carmel SciOly Alumni, Captain 2019-21
Tests written
University of South Florida '25
Carmel SciOly Alumni, Captain 2019-21
Tests written
-
- 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
yes i meant this. thank you for clearing this up.
-
- 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
Sorry if this was answered already, but on the rules it states that you might be required to display more than one LED color at a time. In other words, the ranges will overlap. How would one do this?
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
How is having multiple LEDs on at once any more difficult than having a single LED on at once?MTV<=>Operator wrote: ↑Wed Jan 29, 2020 5:05 pm Sorry if this was answered already, but on the rules it states that you might be required to display more than one LED color at a time. In other words, the ranges will overlap. How would one do this?
-
- 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 was wondering how many program codes do we need in total? is it one program code for the led lights, one for the analog, one for the temperature, and one for the voltage? Or is it like combining some programs together?
-
- Member
- Posts: 48
- Joined: Wed May 16, 2018 11:57 am
- Division: C
- State: OH
- Has thanked: 2 times
- Been thanked: 3 times
Re: Detector Building C
Do whatever works for your device.
If you’re asking about logs, my highlights are on one set of code instead of multiple copies
Solon HS Captain
DMAH
Sassy #137
1-3 placements: 58
Medals + ribbons: 109
Fossils: X/2/3
Code: 2/1/10
Sounds: 1/2/11
Detector: 1/2/X
Circuits: 8/X/X
Gravity: 7/X/X
GLM: X\X\X
DMAH
Sassy #137
1-3 placements: 58
Medals + ribbons: 109
Fossils: X/2/3
Code: 2/1/10
Sounds: 1/2/11
Detector: 1/2/X
Circuits: 8/X/X
Gravity: 7/X/X
GLM: X\X\X
-
- 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
so there is not a restricted amount of codes? i just need a program(s) to make my device work right?lindsmaurer wrote: ↑Thu Jan 30, 2020 4:28 pmDo whatever works for your device.
If you’re asking about logs, my highlights are on one set of code instead of multiple copies
-
- 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
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?LIPX3 wrote: ↑Wed Jan 29, 2020 7:37 pmHow is having multiple LEDs on at once any more difficult than having a single LED on at once?MTV<=>Operator wrote: ↑Wed Jan 29, 2020 5:05 pm Sorry if this was answered already, but on the rules it states that you might be required to display more than one LED color at a time. In other words, the ranges will overlap. How would one do this?
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/--
-
- Moderator
- Posts: 205
- Joined: Mon Jan 21, 2019 11:38 am
- Division: C
- State: FL
- Pronouns: She/Her/Hers
- Has thanked: 171 times
- Been thanked: 335 times
Re: Detector Building C
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.MTV<=>Operator wrote: ↑Thu Jan 30, 2020 7:26 pmFor 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?LIPX3 wrote: ↑Wed Jan 29, 2020 7:37 pmHow is having multiple LEDs on at once any more difficult than having a single LED on at once?MTV<=>Operator wrote: ↑Wed Jan 29, 2020 5:05 pm Sorry if this was answered already, but on the rules it states that you might be required to display more than one LED color at a time. In other words, the ranges will overlap. How would one do this?
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);
}
happy new season!
University of Florida
My Wiki Page | WikiProject SciOly and Scioly.org | Pi-Bot
2019: Code, Fermi, Thermo
2020: Detector, Orni, Code (Substitution: Penn)
2021: Detector, Orni, Circuit, WICI
University of Florida
My Wiki Page | WikiProject SciOly and Scioly.org | Pi-Bot
2019: Code, Fermi, Thermo
2020: Detector, Orni, Code (Substitution: Penn)
2021: Detector, Orni, Circuit, WICI
-
- Member
- Posts: 95
- Joined: Sun Jan 10, 2016 8:41 am
- Division: C
- Has thanked: 0
- Been thanked: 2 times
Re: Detector Building C
This 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 pmFor 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); }