Arduino Programming
Hi everyone!! 🤩
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 IDE
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.
My Learning reflection on the overall Arduino programming activities.
Throughout my time doing arduino so far, it was fun yet challenging. It was my first time doing coding (I have absolutely no experience) and the learning packages on brightspace had a lot of content which made it look more intimidating. Not only that, we were left to fend for ourselves as we had to figure everything out ourselves to complete our assignments.But thanks to that, I actually learned a lot about arduino and actually had fun playing around with the circuits during my own time. Doing this blog was also really fun as I discovered that there were many methods that could produce the same results.
To be honest, this whole arduino experience has been really enriching as it really encouraged me to think broadly on how to find the right code and even how to fix it. We were ‘forced’ to be independent as we had to find out what the mistakes were (if applicable) and fix them ourselves. We couldn’t really rely on our lecturers that much as these activities were mostly OTOT. For me, I was lucky enough as I was tasked with bringing the arduino kits back home and ‘looking after them’ which meant that I could play around with them anytime I wanted to instead of having to rush to finish everything in class. This meant that I could take as long as I wanted to find the right codes 🤡
We were then stretched during our practical session as we had to again find our own codes to make sure that the wings of our unicorn flap. It wasn’t really difficult as we already had some codes on brightspace to get us started (we used the servo). The only issue that we had with our servo was that it was either not working or too strong , meaning that it made it hard for the wings of the unicorn to flap. However, that was just a tiny issue.
The main challenge came when we had to fulfil the other requirements such as aesthetic and ability to perform other functions. We decided to add in music which ended up being the theme of Super Mario (we got the idea to include music as another group from my class was blasting christmas songs with the arduino kit 😁) It was really difficult to find codes for songs and when we did, we couldn’t combine them to perform 2 functions at once (flapping its wings and background music). Firzanah and I also wanted to include LED lights on its wings but we couldn’t figure out how to do so with the arduino kit since it was already used for the servo and we had limited time (finding one code was already difficult, finding another would make it worse). We ended up settling with just music and flapping its wings and thanks to Kelvin we managed to produce a favourable result 😁
Here are some photos of the process:
We intended our unicorn to look like twinkle sparkle from 'My Little Pony' but its obviously very different so please forgive us if we ruined your childhood.
And here's the result with the music:
In conclusion, I genuinely enjoyed the process even though it was mostly stressful cause I was dealing with circuits which I’m actually terrified of (if it can even be considered a fear 😰😭) But, I definitely liked the fact that most of it was OTOT so that we could learn ourselves which made it easier to understand and figure everything out especially since I’m someone who prefers to learn everything herself 🤓 I would definitely like to learn more about arduino in fact maybe I will continue playing around with it during the holidays since I have the kit with me, so that I won’t rely so much on my group mates as I felt that I was mostly clueless even though I knew the basics already.
But anyways I look forward to learning more!!
Jiayouz for CRE Test 2 guys and other MSTs if yall have any 🤓🤩
Comments
Post a Comment