Arduino Documentation Blog Entry
Input devices: Interface a potentiometer analog input to maker UNO board and measure/show its signal in serial monitor Arduino IDE:
1. Below are the code/program I have used and the explanation of the
code.
4. Below is the short video as the evidence that the code/program work.
Input devices: Interface a LDR to maker UNO board and measure/show its signal in serial monitor Arduino IDE:
1. Below are the code/program I have used and the explanation of the
code.
3. Below are the problems I have encountered and how I fixed them.
-
4. Below is the short video as the evidence that the code/program work.
Output devices: Interface 3 LEDs (Red, Yellow, Green) to maker UNO board and program it to perform something (fade or flash etc):
1. Below are the code/program I have used and the explanation of the
code.
2. Below are the hyperlink to the sources/references that I used to write the
code/program.
4. Below is the short video as the evidence that the code/program work.https://youtu.be/XbmDUd8qBD0
Output devices: Include pushbutton to start/stop the previous task:
2. Below are the hyperlink to the sources/references that I used to write the
code/program.
-
3. Below are the problems I have encountered and how I fixed them.
Tinkercad block coding is very annoying
4. Below is the short video as the evidence that the code/program work.
https://youtu.be/cUhbR3QzcYM
Below is my Learning Reflection on the overall Arduino Programming activities.
Coding as a whole is not my cup of tea. It's difficult for me to understand and even now, I still am barely capable of connecting an LED properly. Generally, the Arduino experience was frustrating and pain-staking for me and there were few, if any, highlights.
1. Below are the code/program I have used and the explanation of the
code.
int sensorValue = 0;
void setup()
{
pinMode(A0, INPUT);
pinMode(13, OUTPUT);
Serial.begin(9600);
}
void loop()
{
sensorValue = analogRead(A0);
Serial.println(sensorValue);
digitalWrite(13, HIGH);
void setup()
{
pinMode(A0, INPUT);
pinMode(13, OUTPUT);
Serial.begin(9600);
}
void loop()
{
sensorValue = analogRead(A0);
Serial.println(sensorValue);
digitalWrite(13, HIGH);
delay(sensorValue);
digitalWrite(LED_BUILTIN, LOW);
delay(sensorValue); // Wait for sensorValue millisecond(s)
}
digitalWrite(LED_BUILTIN, LOW);
delay(sensorValue); // Wait for sensorValue millisecond(s)
}
2. Below are the hyperlink to the sources/references that I used to write the
code/program.
code/program.
-
3. Below are the problems I have encountered and how I fixed them.
Coding is a pain
3. Below are the problems I have encountered and how I fixed them.
Coding is a pain
4. Below is the short video as the evidence that the code/program work.
Input devices: Interface a LDR to maker UNO board and measure/show its signal in serial monitor Arduino IDE:
1. Below are the code/program I have used and the explanation of the
code.
int ldr ;
void setup()
{
pinMode (A0,INPUT);
Serial.begin(9600);
}
void loop()
{
ldr = analogRead(A0);
Serial.println(ldr);
delay(10);
}
2.Below are the hyperlink to the sources/references that I used to write the
code/program.
-
void setup()
{
pinMode (A0,INPUT);
Serial.begin(9600);
}
void loop()
{
ldr = analogRead(A0);
Serial.println(ldr);
delay(10);
}
2.Below are the hyperlink to the sources/references that I used to write the
code/program.
-
3. Below are the problems I have encountered and how I fixed them.
-
4. Below is the short video as the evidence that the code/program work.
-
Output devices: Interface 3 LEDs (Red, Yellow, Green) to maker UNO board and program it to perform something (fade or flash etc):
1. Below are the code/program I have used and the explanation of the
code.
int LED_RED = 13;
int LED_GREEN = 12;
int LED_BLUE = 11;
void setup()
{
pinMode(13, OUTPUT);
pinMode(12, OUTPUT);
pinMode(11, OUTPUT);
}
void loop()
{
digitalWrite(13, HIGH);
delay(2000); // Wait for 2000 millisecond(s)
digitalWrite(12, HIGH);
delay(2000); // Wait for 2000 millisecond(s)
digitalWrite(11, HIGH);
delay(2000); // Wait for 2000 millisecond(s)
digitalWrite(13, LOW);
delay(1000); // Wait for 1000 millisecond(s)
digitalWrite(12, LOW);
delay(1000); // Wait for 1000 millisecond(s)
digitalWrite(11, LOW);
delay(1000); // Wait for 1000 millisecond(s)
}
code/program.
-
3. Below are the problems I have encountered and how I fixed them.
Accidentally deleted my code twice and had to restart from scratch.
3. Below are the problems I have encountered and how I fixed them.
Accidentally deleted my code twice and had to restart from scratch.
4. Below is the short video as the evidence that the code/program work.
Output devices: Include pushbutton to start/stop the previous task:
1. Below are the code/program I have used and the explanation of the
code.
code.
int ButtonValue = 0;
int Button = 3;
int LED_RED = 13;
int LED_GREEN = 12;
int LED_BLUE = 11;
void setup()
{
pinMode(2,INPUT_PULLUP);
pinMode(13, OUTPUT);
pinMode(12, OUTPUT);
pinMode(11, OUTPUT);
}
void loop()
{
int sensorVal = digitalRead(2);
Serial.println(sensorVal);
if (sensorVal != LOW) {
//if button is pressed then turn the LED on!
digitalWrite(LED_RED, LOW); //turn off LED1
digitalWrite(LED_GREEN, LOW); //turn off LED2
digitalWrite(LED_BLUE, LOW); //turn off LED3
}
else {
digitalWrite(13, HIGH);
delay(2000); // Wait for 2000 millisecond(s)
digitalWrite(12, HIGH);
delay(2000); // Wait for 2000 millisecond(s)
digitalWrite(11, HIGH);
delay(2000); // Wait for 2000 millisecond(s)
digitalWrite(13, LOW);
delay(1000); // Wait for 1000 millisecond(s)
digitalWrite(12, LOW);
delay(1000); // Wait for 1000 millisecond(s)
digitalWrite(11, LOW);
delay(1000); // Wait for 1000 millisecond(s)
}
}
code/program.
-
3. Below are the problems I have encountered and how I fixed them.
Tinkercad block coding is very annoying
4. Below is the short video as the evidence that the code/program work.
https://youtu.be/cUhbR3QzcYM
Below is my Learning Reflection on the overall Arduino Programming activities.
Coding as a whole is not my cup of tea. It's difficult for me to understand and even now, I still am barely capable of connecting an LED properly. Generally, the Arduino experience was frustrating and pain-staking for me and there were few, if any, highlights.
Comments
Post a Comment