Arduino Programming

Arduino programming. I hate this a lot. I tried, a lot. I tried learning multiple times in secondary school and by myself. Even given the opportunity in this course to learn it again. But, coding is not in my blood. I hate coding and find it such a hassle. Though the first 1 or 2 lessons at most might be exciting Let me tell you once I have to type out everything by hand or memorise stuff that is barely english. My brain gives up processing and I will just give up. 
 
I gave up before, and I did it again. Only with the help of my awesome teammates was I able to conquer this part of the module. If this was a solo project, I would have just slack and not do anything. So thank you to both my CPDD CA group and my CPDD practical group for carrying me. Not to say that I was a burden and didnt do anything. I gave unwavering emotional support and encouragement. To add on, I also help them connect the Ardunio board, as it was wires and I work with wires for a lot (I know basic electrician skills). So it was better than coding. Thus, I helped to assemble the board while, my group members did the rest. 

So all the codes you see down there is by my group members, I just mainly did a side role. 

There are 4 tasks that will be explained in this page:

  1. 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

  2. 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:

  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.

Finally, I will describe:

  1. 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.


 
Input devices: Interface a LDR to maker UNO board and measure/show its signal in serial monitor Arduino IDE:

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.


Output devices: Interface 3 LEDs (Red, Yellow, Green) to maker UNO board and program it to perform something (fade or flash etc.)
  • 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.


Output devices: Include pushbutton to start/stop the previous task
 

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.


Below is my Learning Reflection on the overall Arduino Programming activities.

I didn't expect myself to be learning more about Arduino, especially in Chemical Engineering. And I didnt expect myself to be touch any code or program in DCHE. But I was wrong and had to do it again. I wont do it in the future if I do or do not have a choice. I rather be a clearning or PT worker than be to use coding and programing in the future. Although, it was satisfying to see the bulb light up. But other than that, everything was a pain to do. 

Overall, if i have the chance to use it or apply it in the future, I would stay away from it unless it is a big group project. SO carrying will happen. I am very thankful and greatful for my team members for carrying and guiding me through this journey. I want to thank my lecturer too, to make this journey as enjoyable as he could. 



Well i g thats concludes term 1... Time to get sleep and rest welll..

 

 

 

 

 

 

 

 

 

 

 

 

Comments