Below is my code: int ledPinArray[4] = { 8, 9, 10, 11 }; int blinkAllLedsPin = 33; int sequencePin = 34; int sequenceDirectionPin = 35; int potValue = 0; int numLEDS = 4; void setup() { for (int i = 0; i < numLEDS; i++) { pinMode(ledPinArray[i], OUTPUT); } pinMode(blinkAllLedsPin, INPUT); pinMode(sequencePin, INPUT); pinMode(sequenceDirectionPin, INPUT);Continue reading “Digital Electrics Assignment 4”
Category Archives: Uncategorized
Digital Electrics Week 3
The new button code is different from the old button code in that it lets the MIDI note play during the whole time the button is being pressed. The note being played stops right when the button is unpressed. The new code also lets multiple MIDI notes be played at the same time. int ledPinContinue reading “Digital Electrics Week 3”
Digital Electronics Lab 4
Below is my code: int ledPin1 = 8; int ledPin2 = 9; int ledPin3 = 10; int ledPin4 = 11; int powerSwitch = 33; int potValue1 = 0; //led tempo pot int potValue2 = 0; //step 1 int potValue3 = 0; //step 2 int potValue4 = 0; //step 3 int potValue5 = 0; //step 4Continue reading “Digital Electronics Lab 4”
Digital Electronics Lab 3
Here is my code: int ledPin1 = 8; int ledPin2 = 9; int ledPin3 = 10; int ledPin4 = 11; int buttonPinC = 33; int buttonPinE = 34; int buttonPinG = 35; int buttonPinB = 36; int modeSwitch = 37; int potValue = 0; void setup() { pinMode(ledPin1, OUTPUT); pinMode(ledPin2, OUTPUT); pinMode(ledPin3, OUTPUT); pinMode(ledPin4, OUTPUT);Continue reading “Digital Electronics Lab 3”
Digital Electronics Week 2
Part 1)Code Errors1) In line 2 of the code there was a “;” missing at the end.2) In line 7/ the setup, ledpin2 and buttonpin2 has to be added as an output and input.3) In line 13/ the function there has to be a “checkbutton2”https://www.tinkercad.com/things/k1wDcr9dX9I Part2)Function 1: In this function the switch starts to makeContinue reading “Digital Electronics Week 2”
Digital Electronics Lab 2
Here is my code: int ledPin1 = 8; int ledPin2 = 9; int ledPin3 = 10; int ledPin4 = 11; int blinkAllLedsPin = 33; int sequencePin = 34; int sequenceDirectionPin = 35; int potValue = 0; void setup() { pinMode(ledPin1, OUTPUT); pinMode(ledPin2, OUTPUT); pinMode(ledPin3, OUTPUT); pinMode(ledPin4, OUTPUT); pinMode(blinkAllLedsPin, INPUT); pinMode(sequencePin, INPUT); pinMode(sequenceDirectionPin, INPUT); Serial.begin(9600); }Continue reading “Digital Electronics Lab 2”
Digital Electronics Week 1
Below is the link to my week1 Digital Electronics circuit https://www.tinkercad.com/things/2HnyPpRjt6N In my circuit, first I took the first button and made it so that by pressing the button it would make only the yellow LED light up.Then, I added another button. This button was coded so that by pressing it, it would light bothContinue reading “Digital Electronics Week 1”
Digital Electronics Lab 1
The Grain Cube by Paul OdenwaldtThis project first caught my eye with the thumbnail on the demonstration video. In the video he uses a Gamecube controller to control the granular synthesizer. Although I wasn’t to decipher the code that he wrote, I was really surprised by the things that he made possible with the controller.Continue reading “Digital Electronics Lab 1”
Analog Electrics Lab 14
3-D Enclosurehttps://www.tinkercad.com/things/7afR8ECwk3S Trouble Shooting:There was a part where I needed to press alt+shift, but there isn’t an alt key on a mac. So, I had to spend some time playing with the keys to find it.
Analog Electrics Lab 13
Paul OdenwaldtThis project first caught my eye because of the game controller that was being used to control the graincube. It was also interesting to me how within the controller there was a tone wheel in which he can shift the pitch of the sound that he is getting out of the graincube. He wasContinue reading “Analog Electrics Lab 13”