Experiment 1:
Let's make LED light blink!
Tutorial
Materials:
1. Arduino Board
2. LED (I am using LED Green)
3. USB cable
We didn't use 220 ohm resistor.
Download the program
/*
Blink
Turns on an LED on for one second, then off for one second, repeatedly.
Most Arduinos have an on-board LED you can control. On the Uno and
Leonardo, it is attached to digital pin 13. If you're unsure what
pin the on-board LED is connected to on your Arduino model, check
the documentation at http://www.arduino.cc
This example code is in the public domain.
modified 8 May 2014
by Scott Fitzgerald
*/
// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin 13 as an output.
pinMode(13, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(13, HIGH); // turn the LED on (HIGH is the voltage level)
delay(300); // wait for a second
digitalWrite(13, LOW); // turn the LED off by making the voltage LOW
delay(100); // wait for a second
}
Experiment 2:
Tutorial
Materials:
1. Arduino Board
2. 10k ohm Potentiometer
/*
AnalogReadSerial
Reads an analog input on pin 0, prints the result to the serial monitor.
Graphical representation is available using serial plotter (Tools > Serial Plotter menu)
Attach the center pin of a potentiometer to pin A0, and the outside pins to +5V and ground.
This example code is in the public domain.
*/
// the setup routine runs once when you press reset:
void setup() {
// initialize serial communication at 9600 bits per second:
Serial.begin(9600);
}
// the loop routine runs over and over again forever:
void loop() {
// read the input on analog pin 0:
int sensorValue = analogRead(A0);
// print out the value you read:
Serial.println(sensorValue);
delay(1); // delay in between reads for stability
}
http://www.instructables.com/id/ArduinoServoPotentiometer/
http://robotmill.com/2011/11/06/using-a-potentiometer-with-arduino-5-led-chaser/
https://startingelectronics.org/beginners/start-electronics-now/tut10-ten-arduino-projects-for-absolute-beginners/P6-analog-in-out-serial/
http://rookieelectronics.com/controlling-dc-motor-using-arduino/
So far, the most difficult thing for me is finding which 'hole' is the right one (according to the diagram) to plug the cables in and connect the circuit. Other than that, I found the first two experiments' instruction and process very simple and easy to follow. It feels great to be able to successfully connect circuit and make LED blink!