
First I’ll test if the Arduino works with 4 analog inputs and 3 digital inputs,
Spoiler, it works like a charm.
Connecting Digital inputs:
Buttons: Pin 19, Pin 2, Pin 3
Connecting Analog inputs:
Piezos: Pin 14 or 15, Pin 16, Pin 18
I also did some research on connecting the arduino to unity and there is appearently a very easy unity library that does most of the dirty work for you. But that also means we need to do the Piezo programming inside Unity.
UDUINO – Connect Arduino to Unity (easy)
https://www.marcteyssier.com/uduino/tutorials
Next up is getting some buttons, getting the piezo’s and connecting the piezos to the analog inputs instead of the sliders.