Arduino Programming
There are 4 tasks that will be explained in this page:
Input devices
- Interface a potentiometer analog input to maker UNO board and measure/show its signal in serial monitor Arduino IDE
- Interface a LDR to maker UNO board and measure/show its signal in serial monitor Arduino ID
Output devices
- Interface 3 LEDs (Red, Yellow, Green) to maker UNO board and program it to perform something (fade or flash etc)
- Include the pushbutton on the MakerUno board to start/stop part 2.a. above
For each of the tasks, I will describe:
The program/code that I have used and explanation of the code. The code is in writable format (not an image).
The sources/references that I used to write the code/program.
The problems I encountered and how I fixed them.
The evidence that the code/program worked in the form of video of the executed program/code.
Finally, I will describe:
My Learning reflection on the overall Arduino programming activities.
Code/program I have used and the explanation of the code.
Explanation of the code
| |
hyperlink to the sources/references that I used to write the code/program.
- https://www.tinkercad.com/things/5EH6qhAumnW-spectacular-migelo-bruticus/editel
- https://www.youtube.com/watch?v=-EDYMQ9lczA
problems I have encountered and how I fixed them
Initially, the LED light bulb was not turning on,so we had to check the connections. We realise in the end we connected it to the wrong NUMBER. So yah, who would have guess 1 number could mess up your whole project.
short video as the evidence that the code/program work.
Code/program I have used and the explanation of the code.
Explaination
Below are the hyperlink to the sources/references that I used to write the code/program.
- https://www.youtube.com/watch?v=4fN1aJMH9mM
- https://create.arduino.cc/editor/mertarduinotech/40f2d22f-7853-4882-b2a9-1b6d43ac81b0/preview
Below are the problems I have encountered and how I fixed them.
After running the code, I realised that the LED light was not lighting up.We realise that we did not put "const int" at the begining. So there was an error. But after we change it and realise what went wrong. It work perfectly. :)
Below is the short video as the evidence that the code/program work.
Below are the code/program I have used and the explanation of the code.
Explaination
Below are the hyperlink to the sources/references that I used to write the code/program.
- https://youtu.be/X8dHbdhnGKY
- https://www.tinkercad.com/things/3uRAb7lg9qE-incredible-hillar/editel
Below are the problems I have encountered and how I fixed them.
We realized that the red and yellow LEDS were blinking, except the green. I checked through the code and replaced the green LED several times, but the outcome was still the same.We redid it and it was the same. So we assume something was up with the green bulb and went on.
Below is the short video as the evidence that the code/program work.
Below are the program I have used and the explaination of why I choose that code.
Explaination
Below are the hyperlink to the sources/references that I used to write the code/program.
- https://download.kamami.pl/p576422-Maker_Uno_Edu_Kit_Module.pdf
Below are the problems I have encountered and how I fixed them.
Below is the short video as the evidence that the code/program work.
Comments
Post a Comment