Variable Resistor
Code: RGB LED
Code to make the 3 Colour LED change between red, green, blue, white. Put resistors between the pin inputs and the led pins. If you use the right resistors then the colours will be more precise. // Use Resistors…
Code: Using Servo motor
// Orange wire to Pin 9// Red wire to 5V// Brown to Ground #include <Servo.h> Servo myservo; void setup() { myservo.attach(9); } void loop() { myservo.write(1); delay(1000); myservo.write(179); delay(1000); }
Arduino – Servo Motors – Loop Actions (via metalx1000) (Source: )
Example: Spider-bot (Source: )
Blink
Example: Lego Printer (Source: )
Tool: Resistor Colour to Values
Tool: Resistor Colour to Values