Word Problem: Seth can come in to work if he is not sick, there are jobs to do, and Hunt Library is open. However, if there are jobs to do, but Hunt library is closed, Seth can still get in to do them, but only if he can disarm the security system. He still must not be sick, though. If he is sick and comes in to work (meaning he lied about not being sick), then he will get fired. He will also get fired if he tries to come in when Hunt is closed, but can’t disarm the security system. He will NOT get fired for coming in when there are no jobs available, though it may annoy Cody and company.

Word Equation(s):

Q2 AND (NOT Q1) AND ((NOT Q3) OR (Q3 AND Q4)) = Output 1

Q1 OR (Q3 AND (NOT Q4)) = Output 2

Logic Diagram:

Truth Table(s):

Can I come in to work?

Q1

Q2

Q3

Q4

Output 1

true

true

true

true

false

false

true

true

true

true

true

false

true

true

false

true

true

false

true

false

true

true

true

false

false

false

false

true

true

false

true

false

false

true

false

true

true

false

false

false

true

false

false

true

false

true

false

true

false

false

false

true

false

true

true

false

false

false

true

false

false

true

false

false

true

false

false

true

false

false

true

false

false

false

false

false

false

false

false

false

Will I get fired if I come in anyway?

Q1

Q3

Q4

Output 2

true

true

true

true

false

false

false

false

false

true

false

true

true

false

true

true

true

true

false

true

false

true

true

false

false

true

true

false

true

false

false

true

Schematic:

Using an Arduino and logic parts, build a device that takes 4 inputs (one of them being an extra step—inputting the code to disarm security) and has two possible outputs (with a possible secret third output). The inputs are as follows:

Q1) Are you sick? If you take a tissue, then you may be sick…

Q2) Are there jobs to do? Consult Slack for that… that’s just going to be a pushbutton for now…

Q3) Is Hunt Library open? Real-time clock controls that input.

Q4) Can you disarm security? More just a joke part, input some 5-digit code into a keypad.

If you are sick and decide that you’re coming in anyway, play some fun (but menacing) sequence corresponding to you getting fired for violating COVID policy.

If you fail to disarm security, then play some funny sequence of getting arrested by CMUPD and getting fired for trespassing. Have Cody Soska record a funny voice clip of saying “WOO WOO, this is the Crops! You will be the one behind the bars!”

Needed materials:

Arduino Uno R3 (for sending hi/lo signals through logic chips, and handling RTC and keypad inputs…)

Breadboard or protoboard

16×2 I2C LCD screen (debugging purposes only)

Momentary pushbutton or toggle switch

Applicable logic parts (74xx)

10 digit keypad

Breakbeam sensor (for sick test)

Wires (have, though may need more depending on cable management)

Soldering equipment (have).

Some acrylic or plywood to laser cut an enclosure for certain parts if applicable.

Scale: Installed in my bedroom with parts strewn around the room (NEATLY, please…).

General flow of the device’s workings…

Sketches and images:

Overall layout (NOT TO SCALE)

Q1 Location (right side of bedroom door frame)

Q2 Location (left side of my desk)

Q3 Location (nightstand, far side of my bed, main logic may also reside here)

Q4 Location (keypad, side of bookshelf on near side of bed)

Some preliminary measurements were taken, but I’m going to measure again. As they say, “Measure twice, cut once.”

UPDATE 09/28/2020: I still need to acquire a keypad. Additional wire may also be necessary, but that depends on what the final measurements turn out to be.

UPDATE 09/30/2020: Have procured a keypad and IR breakbeam sensor. All that’s left to procure are the necessary resistors and any extra wire needed outside of what’s provided in the kit. Q1 may be moved next to Q4 to streamline the flow of interaction.