Question 15 of 23intermediate🔧 ApplyShort Answer2 marks

Did you modify the code received from other sources? Mention the site, the information you got, and the modification you made.

Correct Answer

The code obtained from online tutorials or reference sources may require modifications to suit specific project requirements.

Common modifications include:

(1) Changing pin numbers in the code to match actual connections on the microcontroller.

(2) Adjusting threshold values for sensors (such as changing the moisture threshold for a watering system).

(3) Modifying timing parameters in delay functions to change how long an output stays on or off.

(4) Adding additional conditions or logic to handle multiple sensors or outputs.

The source of the code should be properly credited, and all modifications should be documented for future reference.

Exercise: Activity 6: Make your own automation system using a microcontroller - Reflect on your learnings | Q: 4 | (Page Page 21)
For More Understanding

Explanation

The chapter suggests students can search for tutorials online using keywords like 'Tutorial + automatic plant watering system + using Arduino' and use the code as a reference to build upon. Students should document the source of their code and describe any modifications made to customize it for their specific application.

Solution Steps

  1. Code from online tutorials or reference sources may require modifications for specific project requirements

  2. Changing pin numbers in code to match actual microcontroller connections

  3. Adjusting threshold values for sensors (e.g., moisture threshold for watering system)

  4. Modifying timing parameters in delay functions to control output duration

  5. Adding additional conditions or logic to handle multiple sensors or outputs

  6. Source of code should be properly credited and modifications documented for future reference