跳到主要内容

Lesson 21: Plant watering

English

Water the plants while you are away

  • A soil sensor in the flower pot measures how wet the soil is. The Arduino reads it on A0; in the simulator the knob is the soil.
  • A small pump on pin 7 gives the plant water. Here a blue LED shows when the pump runs.
  • You decide when the pump goes on and when it goes off.

Words for this lesson

Word Meaning
moisture how much water is in something, here in %
pump a machine that moves water
percent (%) out of 100
limit the number where something changes
bool a variable that is only true or false

登录或创建账户

IGCSE, A-Level & AP