Texts: Greenhouse program.
1. Develop the Arduino program that controls the greenhouse with the following
characteristics:
- All sensor readings should be displayed on the LCD.
- At the beginning of the day, the dome must be opened so that sunlight enters the greenhouse.
- Measure the amount of light, and if it is less than 150 lumens, the dome should be closed.
- The potentiometer will be used to modify the amount of humidity inside the greenhouse. If the humidity is below 50, the pump motor must be activated.
- When the temperature is higher than 20 °C, the two fans must be activated.
- In case there is a broken plant, the level of methane gas should be greater than 350, and the sound alarm will be triggered.
Materials:
- Tinkercad
- Gas sensor
- 1 Photoresistor
- 3 DC motors
- 1 Servomotor
- 1 buzzer
- 1 Potentiometer
- 1 LCD
- 1 Temperature sensor
- 2 PNP transistors (BJT)
- 2 Relays
- 2 LEDs
- 2 Resistors of 150 Ω
- 2 Resistors of 1 kΩ
- 1 22 kΩ resistor
- 1 10 kΩ resistor
- 1 330 Ω resistor
(Include how you would make the connection in Tinkercad or physical Arduino)