hi
im working on a car seat controller and im using 2 arduino nano boards to controll the seat motors. but i ran into a problem with the code. i only get 1V from D2,D4,D5 if i use this code. but if i load another code the pins give 5V and my cirquit only draws 8.5 mA. can some body help.
//B1-B6 Buttons //D2-D7 output pins int BI = 14; int B2 = 15; int B3 = 16; int B4 = 17; int B5 = 18; int B6 = 19; int D2 = 2; int D3 = 3; int D4 = 4; int D5 = 5; int D6 = 6; int D7 = 7; void setup() { pinMode(B1, INPUT); pinMode(B2, INPUT); pinMode(B3, INPUT); pinMode(B4, INPUT); pinMode(B5, INPUT); pinMode(B6, INPUT); pinMode(D2, OUTPUT); pinMode(D3, OUTPUT); pinMode(D4, OUTPUT); pinMode(D5, OUTPUT); pinMode(D6, OUTPUT); pinMode(D7, OUTPUT); } void loop() { if (digitalRead(BI) == HIGH && digitalRead(B2) == LOW) { digitalWrite(D2, HIGH); digitalWrite(D3, LOW); } if (digitalRead(B2) == HIGH && digitalRead(BI) == LOW) { digitalWrite(D3, HIGH); digitalWrite(D2, LOW); } else{ digitalWrite(D2, LOW); digitalWrite(D3, LOW); } if (digitalRead(B3) == HIGH && digitalRead(B4) == LOW) { digitalWrite(D4, HIGH); digitalWrite(D5, LOW); } if (digitalRead(B4) == HIGH && digitalRead(B3) == LOW) { digitalWrite(D5, HIGH); digitalWrite(D4, LOW); } else{ digitalWrite(D4, LOW); digitalWrite(D5, LOW); } if (digitalRead(B5) == HIGH && digitalRead(B6) == LOW) { digitalWrite(D6, HIGH); digitalWrite(D7, LOW); } if (digitalRead(B6) == HIGH && digitalRead(B5) == LOW) { digitalWrite(D7, HIGH); digitalWrite(D6, LOW); } else{ digitalWrite(D6, LOW); digitalWrite(D7, LOW); } }