Arduino Programming
Hi! Today, I will be sharing with you my Arduino documentary and my experience. Sadly, this will be my last blog of this term 😔😢😭. But I will be back in the new term!!!👍👍👍
2. Output devices:
a) Interface 3 LEDs (Red, Yellow, Green) to maker UNO board and program
it to perform something (fade or flash etc)
b) Include the pushbutton on the MakerUno board to start/stop part 2.a.
above
For each of the tasks, I will describe:
1. The program/code that I have used and explanation of the code. The code is
in writable format (not an image).
2. The sources/references that I used to write the code/program.
3. The problems I encountered and how I fixed them.
4. The evidence that the code/program worked in the form of video of the
executed program/code.
5. My Learning reflection on the overall Arduino programming activities.
2. Below are the hyperlink to the sources/references that I used to write the
Below, I will be mentioning and listing down the things that I will be going through today.
Arduino Documentation Blog Entry
There are 4 tasks that will be explained in this page:1. Input devices:
a) Interface a potentiometer analog input to maker UNO board and
measure/show its signal in serial monitor Arduino IDE.
b) Interface a LDR to maker UNO board and measure/show its signal in
serial monitor Arduino IDE
a) Interface a potentiometer analog input to maker UNO board and
measure/show its signal in serial monitor Arduino IDE.
b) Interface a LDR to maker UNO board and measure/show its signal in
serial monitor Arduino IDE
2. Output devices:
a) Interface 3 LEDs (Red, Yellow, Green) to maker UNO board and program
it to perform something (fade or flash etc)
b) Include the pushbutton on the MakerUno board to start/stop part 2.a.
above
For each of the tasks, I will describe:
1. The program/code that I have used and explanation of the code. The code is
in writable format (not an image).
2. The sources/references that I used to write the code/program.
3. The problems I encountered and how I fixed them.
4. The evidence that the code/program worked in the form of video of the
executed program/code.
5. My Learning reflection on the overall Arduino programming activities.
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.
2. Below are the hyperlink to the sources/references that I used to write the code/program.
This is the link to the Youtube video that I used as a reference:
3. Below are the problems I have encountered and how I fixed them.
At first, my code could not run due to an error. But, after checking my code again, I realised that I have made a very careless mistake. I did not include the close bracket "}" for my code.😅
After editing my code, it could finally run and the LED light was blinking as it should.
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.
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.
The problem I encountered was that the LDR could not sense that my finger was covering it, blocking any light source from it. Initially, I thought that my code had an error, but I could not find any error. So, I asked my friends that had done this activity and they told me that they also faced this problem. The only way to ensure the LDR could sense that there is no light, was to cover it using a fabric material.
This is why in the video below, I was using my shirt to cover the LDR.
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.
Youtube video: https://youtu.be/MojSo7OtF9w
3. Below are the problems I have encountered and how I fixed them.
The only problem I faced while doing this activity was that 2 of the LED lights I used was not bright enough to be seen on my camera.
To fix this, I replaced those 2 LED lights with new ones and thankfully it is brighter.
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.
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.
The problem I faced while doing this activity is similar to the previous activity. One of my LED lights was too dim.
To fix it, I replaced the faulty LED light with a new one.
Honestly, I did not expect that our course would teach us about coding which was quite surprising for me. Having done these Arduino Programming activities, it reminds me of my secondary school days. This is because I actually studied O level Computing back in secondary school. However, I am very bad at coding and I was not really passionate about it, which was why I got a C6 for Computing in O levels.😂😂😂4. Below is the short video as the evidence that the code/program work.
Below is my Learning Reflection on the overall Arduino Programming activities.
Initially, I was very lost and clueless for the first lesson on Arduino Programming. I remembered that I had to constantly ask my friends questions and even consult Mr Chua for clarification and help. But as time went back, I started to pick up the pace and I was able to understand and process how the codes work.
Through the lessons on Arduino Programming, I was able to learn new things such as learning how certain code work and the meaning behind it.
- void setup() suggest that the program will run when the Arduino Uno board is powered or when the reset button is pressed.
- void loop() will loops the code in the bracket { }
- pinMode() selects the respective pin number as the output
- digitalWrite() writes the pins to be on or off
- delay() is used to pause the program for a certain time which is calculated in milliseconds
Aside from this, one of the more interesting thing I learned was the concept behind how traffic lights work. This is possible due to Activity 2 which is on Output Devices where we had to use LED lights.
Overall, I had a lot of fun doing the Arduino Programming activities together with my groupmates. Although I am not able to fully write out an entire code for a programme, I am still grateful and satisfied with what I have learned. I do hope that we will have the chance to use the Arduino Maker Uno kit again.
Comments
Post a Comment