You are on page 1of 2

The idea in this practice is to make a prototype of a self-watering flower pot.

You have to measure


the humidity of the soil in the pot. If it is too dry you should water it and if it is too humid you should
apply heat to dry it (you will simulate this heater with a red LED).

1.- Contextualization

What is the climate change?


How does it affect our lives?
How does climate change affects hydrological situation?
What the desertification process is?
What is the hydrological situation in Europe nowadays?
Why it is important to save water?
What can we do at home for saving water? Incentives for not wasting water.

2.- Programming.

Materials. For doing this practice, you will need:

• Motherboard + blue wire.


• Humidity probe (sensor).
• Servo motor
• RED led (it will simulate a heater)
• small wires for connecting the components
Initical checks

• Check that the computer recognizes the motherboard and the serial port (blue
wire).

Humidity probe

• Is it analog or digital?
• Read its values through the serial port (using Arduino code if necessary). For doing
this section you will need a plastic cup, water and a piece of cotton.
• Value when it's totally dry:
• Value when it's almost dry:
• Value when it's quite humid:
• Value when it is totally humid (immersed in water):
• In which range of values do you consider that your plants are too humid? and too
dry?

Servo
• To know how the servo works, you have to do different functional testings.

- Fixed it at 0º In a loop forever In a loop


- wait 3 - Fixed it at 0º forever - Fixed it
seconds - Fixed - wait 3 seconds at 90º - wait 3
it at 90º - wait -Fixed it at 90º seconds -Fixed
3 seconds - wait 3 seconds it at 180º -
- Fixed it at 180º wait 3 seconds -
- wait 3 seconds Fixed it at -90º -
- Fixed it at 90º wait 3 seconds
- wait 3 seconds - Fixed it at 180º

Final programming
• Now you know how the components work and what you want to do in each range of
values, you are ready to program.

You might also like