SVR Lab
Courses
Hardware
Docs
Sign in
Get started
C
CircuitSim
Template · Potentiometer
▶ Start
Reset
0.00s
Wire
Click pin → pin · Del to remove · Esc to cancel
4 parts · 6 wires
ATMEGA
UNO R3
13
12
~11
~10
~9
8
7
~6
~5
4
~3
2
GND
5V
3.3V
A0
A1
A2
A3
A4
A5
1
SIG
3
A
C
1
2
sketch.ino
Edit and press ▶ Start
1
2
3
4
5
6
7
8
9
10
11
12
void setup() { pinMode(9, OUTPUT); Serial.begin(9600); } void loop() { int v = analogRead(A0); analogWrite(9, v / 4); Serial.println(v); delay(50); }