Question: i will provide a code that makes the first potentiometer work (A0), edit the code to make the other two potentiometers ( A1, A2) so
i will provide a code that makes the first potentiometer work (A0), edit the code to make the other two potentiometers ( A1, A2) so that A1 controls Micro Servo (output 5) , and A2 controls DC Motor (output 6)
this is the code using tinkercad
void setup()
{
pinMode(3, OUTPUT);
Serial.begin(9600);
}
void loop()
{
int pot = analogRead(0)/4;
Serial.println(pot);
analogWrite(3,pot);
}
1.20 V 1.20 V ***** OO UNO
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
