Arduino based digitally controlled resistor array