LED Light Project
CS113 - Discrete Mathematics
Jotsaroop Singh�Abdarrahman Ayazz
Preview
Our project is an led board in which we alternate between different states for the LEDs to light up. It’s a good way to physically represent truth tables as learned in Discrete Mathematics.
Specs
The electronic components of our project that we are planning on utilizing are;
Setbacks and Problems
allOn() Function Truth Table
We utilized this table to have an idea of how we will program our all on function conceptually.
allOn() Function
All On Function In Action
rowBlink() Truth Table
We utilized this table to have an idea of how we will program our blink function conceptually.
rowBlink() Function
Row Blink Function in Action
flow() Truth table
We utilized this table to have an idea of how we will program our flow function conceptually.
flow() Function
Flow Function in Action
Array
We decided to create an array of LED pins to help with the storage of the valid pin inputs in the Arduino
Set Theory
The set theory was implemented in our program when we had to utilize sets to represent our led pins and whether they were on or not.
We can refer to ledPins[] as a set called A which contains the elements{8,9,10,11}
We can refer to High and Low as a set called B which contains the elements{1,0}, 1 for on and 0 for off.
Quantifiers
Building off of the ideas in terms of set theory, we can also look at the program as quantifier based.
Specifically, when the program looks for valid LEDs connected to the correct pins, it utilizes an existential quantifier.
That is, there exist valid pins 8, 9, 10, 11 such that the program can give an output (in the case of all on, set each pin to 1 or “true”).