-
Notifications
You must be signed in to change notification settings - Fork 10
Exercise 4
ChengRuoXi edited this page Jun 23, 2022
·
15 revisions
This exercise is still currently under revision. We will update the latest version soon!
- An assembled Smorphi/ Smorphi
- A computer
- A USB to USB-c cable
- Internet connection
- Learn about the various common coding languages being used today
- Delve in depth into Arduino coding language
- Learn about basic coding structures like, if, else, for etc.
Steps | Description |
---|---|
1 | [Commonly used coding languages used nowadays] There are many different types of coding languages available currently, and each coding language is optimised for development of different things, like apps, websites, databases etc. Some of the most commonly used coding languages currently is JavaScript, Java, and Python. https://bootcamp.berkeley.edu/blog/most-in-demand-programming-languages/. Each of the coding language have their own structures and way of usage but the main thing you should learn, to easily pick up any coding language in the future is the logic or thought process to write usable code. In these series of exercises, you will be mainly exposed to Arduino which has a similar coding structure to Java. Food for thought: What other commonly used coding languages can you find and what are they commonly used for? |
2 | [Basic coding structure of Arduino] To use Arduino, you have to first know what the structure of the Arduino code and what various symbols the code may use mean. You can find out more about the Arduino coding language, C++, it’s structure and how to use it here: https://create.arduino.cc/projecthub/lina-tech-explorations/the-basics-of-arduino-programming-program-structure-functi-f5fb2c |
3 | [Introduction to loops and conditionals] Now. let’s learn about loops and conditionals in coding. Loops, as its name implies, allows for the block of code within it to be repeated multiple times, until the end condition is fulfilled. As for Conditionals, it diverts the flow of the code as different conditions are fulfilled, cause the code to react differently, hence the name. You can explore some code examples via this link: https://techexplorations.com/guides/arduino/begin/lsn7/ Then, lets try these loops and conditionals on your Smorphi. |
4 | [Use ‘if…else’ on Smorphi] In the article, you would have seen some pseudo code regarding the ‘if…else’ conditional. Let try to implement a variation on smorphi. |
5 | [Use ‘switch’ on Smorphi] In the article, you would have seen some pseudo code regarding the ‘if…else’ conditional. Let try to implement a variation on smorphi. |
6 | [Use ‘for’ with exercises] |
7 | [Use ‘while’ and ‘do…while’ with exercises] |
Wefaa Robotics Pte Ltd