Hi, i am new to arduino and trying to connect an arduino UNO to a DC motor.
this is my code:
void setup() {
pinMode(A2, OUTPUT);
}
void loop() {
analogWrite(A2, 306);
analogRead(A2);
delay(1000);
analogWrite(A2, 0);
analogRead(A2);
}
it dosnt do anything when i upload it to the arduino using a USB
is it possible to send 6v in arduino uno?
thank you for the help!