Digital Electronics Final Project (!!!)

Explanation Overview: My final project is an 8-Step, 4-Channel Drum Sequencer that incorporates NeoPixels, and a potentiometer that sends CC messages to a DAW. In the video below, I chose to use Ableton to demo my project. There are three major components to this code which I will break down in the sections below. DrumContinue reading “Digital Electronics Final Project (!!!)”

Digital Electronics Lab #11

Arduino Code: #include “Button.h” Button buttonOne(33, 60); Button buttonTwo(34, 62); Button buttonThree(35, 64); Button buttonFour(36, 65); void setup() {  Serial.begin(9600);  buttonOne.pressHandler(onPress);  buttonOne.releaseHandler(onRelease);    buttonTwo.pressHandler(onPress);  buttonTwo.releaseHandler(onRelease);    buttonThree.pressHandler(onPress);  buttonThree.releaseHandler(onRelease);    buttonFour.pressHandler(onPress);  buttonFour.releaseHandler(onRelease); } void loop() {  buttonOne.process();  buttonTwo.process();  buttonThree.process();  buttonFour.process();   } void onPress(int buttonNumber) {  Serial.print(buttonNumber);  usbMIDI.sendNoteOn(buttonNumber,127,1);  Serial.println(” pressed”); } void onRelease(int buttonNumber) {  Serial.print(buttonNumber);Continue reading “Digital Electronics Lab #11”

Digital Electronics Lab #9

Video: Code: int buttonPin[4] = {33, 34, 35, 36}; int ledPin[4] = {7, 8, 9, 10}; int totalLedPins = 4; int totalButtonPins = 4; int tempoPot = A13; int tempoValue = 0; unsigned long lastStep = 0; int currentStep = 0; int totalSteps = 4; int channelDisplayed = 0; int totalChannels = 3; int channelLedPins[3]Continue reading “Digital Electronics Lab #9”

Digital Electronics Lab #7

Push-On Push-Off Button Explanation: The push-on push-off button concept has three major parts: checkButton(); flipButtonState();, and updateLed();. The checkButton(); function is very similar to the code we’ve used in the past for MIDI notes. First, we set lastButton1State equal to button1State, and button1State equal to the status of the buttonPin (pushed or un-pushed). From there,Continue reading “Digital Electronics Lab #7”

Digital Electronics Lab #6

Code: int octaveSwitch = 30;                                          //switch variables int powerSwitch = 29; int directionSwitch = 28; int tempoVal = 0;                                               //tempo variables int lastTempoVal = 0; int tempoPin = A13; int octave = 12;                                                //octave switch variable int ledPinArray[4] = {7, 8, 9, 10};                             //ledPin array int totalLedPins = 4; int notePotArray[4] = {A14, A15, A16,Continue reading “Digital Electronics Lab #6”

Digital Electronics Lecture Assignment #5

Code: int ledPinArray[4] = {7, 8, 9, 10}; int totalLedPins = 4; int tempoValue = 0; int slideSwitch = 30; unsigned long lastStep = 0; int currentStep = 0; int totalSteps = 4; void setup() {  pinMode(slideSwitch, INPUT);                                   for (int i = 0; i < totalLedPins; i ++) {                       pinMode(ledPinArray[i], OUTPUT);  } }Continue reading “Digital Electronics Lecture Assignment #5”

Digital Electronics Lab #5

Video: Code: int octaveSwitch = 30;                                          //switch variables int powerSwitch = 29; int directionSwitch = 28; int tempoVal = 0;                                               //tempo variables int lastTempoVal = 0; int tempoPin = A13; int octave = 12;                                                //octave switch variable int ledPinArray[4] = {7, 8, 9, 10};                             //ledPin array int totalLedPins = 4; int notePotArray[4] = {A14, A15,Continue reading “Digital Electronics Lab #5”

Design a site like this with WordPress.com
Get started