Hi,
I was trying to simulate a circuit to control a DC motor with potentiometer in TinkerCAD.
My question is, how accurate is this simulation?
When I connect the motor directly to power and simulate, it shows an RPM of 17568.
But if I try to control is using my circuit (as shown below), the max RPM I get is 9945.
Here is the diagram:
Here is the code for TinkerCAD:
void setup()
{
pinMode(A0, INPUT);
pinMode(3, OUTPUT);
}
void loop()
{
analogWrite(3, map(analogRead(A0), 0, 1023, 0, 255));
delay(10); // Delay a little bit to improve simulation performance
}
