Playground
A sandbox for the interactive tools used across the courses.
Robotic arm: joint control
Drag the sliders to move each joint. The code on the right updates live. Drag the model to orbit.
#include <Servo.h>
Servo base, shoulder, elbow;
void setup() {
base.attach(9);
shoulder.attach(10);
elbow.attach(11);
}
void loop() {
base.write(40);
shoulder.write(60);
elbow.write(110);
}Virtual Arduino: Blink
Change the delay and press Run to watch the pin toggle.
void setup() {
pinMode(13, OUTPUT);
}
void loop() {
digitalWrite(13, HIGH);
delay(500);
digitalWrite(13, LOW);
delay(500);
}Python in the browser
A real Python interpreter running locally. Change the numbers and run it. The first run downloads the runtime (about 10 MB).
two_link_fk.py