Hey everybody, I’ve been working on a beat sequencing controller to be interfaced to Max/MSP and have been having some issues with my push buttons on the board. I have posted my code, my circuit schematic, and two links below to give details as to what I have been using.
So initially ,as can be seen in link , I had a controller with nine separate pushbuttons (one for workspace functionality and eight for beat functionality) configured in a PDN setting with one end of a button connected to a 5V source and the other connected to a 10kohm resistor connected to ground. This was causing noise errors so I switched to a schematic which entailed using the internal PUPs of the digital inputs. So now every push button has one end connected to ground and the other connected to a digital input to utilize the internal source and PUP resistor. Since doing this noise issues have been removed.
The logic of a button press is simple…
- Button is pressed
- bounce2 algorithm makes sure button has been pressed for adequate time ()
- State of the button is now low, println “2 x” (or “23 1” if the workspace button is pressed) to the serial line (x being the number corresponding to the specific button)
So this generally works for the workspace button and beat button 0, but for whatever reason I am getting no response from beat buttons 1-7; Nothing is being printed when I press buttons 1-7. I have rechecked my wires, rechecked my code, and tried switching out buttons/placing the buttons on different breadboard lines but to no avail. Can anyone give me help or offer some insight as to why these buttons aren’t working? I thought that maybe the buttons or lines could have gotten burnt out from the last configuration but my experiments proved that this wasn’t the case.
 Discussion one on controller issues
 bounce2 Arduino Library
receiverCode3.ino (7.16 KB)