The resistors are connected to the buttons in a daisy chain see picture.Can I ask if I can use 5 pins on the Arduino to go to the same transistor or would that cause problems. I have no trouble controlling 5 separate pins with the buttons like this but would like to know if they all connected to the same output and say 2 buttons were pressed at the same time. if (val >850 && val < 865 ) digitalWrite (Pin8, HIGH); // turn on test led 1 if (val >890 && val < 910 ) digitalWrite (Pin9, HIGH); // turn on test led 2 if (val >930 && val < 940 ) digitalWrite (Pin10, HIGH); // turn on test led 3 if (val >970 && val < 980 ) digitalWrite (Pin11, HIGH); // turn on test led 4 if (val >1015 && val < 1030)digitalWrite (Pin12, HIGH); // turn on test led 5Jeremy
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16