Basic ProjectsΒΆ

This chapter is used to learn how to control electronic circuits using Arduino.

Depending on the components, the basic control methods of Arduino can be divided into four types:

  • 1. Digital Write: Set the output voltage of the pin to be high or low, which can be used to turn the light on and off.

  • 2. Analog Write: Write the analog value (PWM wave) to the pin, which can be used to adjust the brightness of the light.

  • 3. Digital Read: Read the level signal of the digital pin, which can be used to read the working condition of the switch.

  • 4. Analog Read: Read the voltage of the analog pin, which can be used to read the working condition of the knob.

There are also some components that require additional libraries for use, and these are grouped under the section 5.11 Install External Libraries.

Finally, the kit also provides some 6. Funny Project, which includes many simple and useful manipulations. Try this section of code and you will understand how most simple projects work.