Saturday, February 29, 2020

Week 3

Tasks for the week


  • Improving the code
  • Finishing the circuit 


Fig. 3.0

The figure 1 shows the circuit made during the third week. Four LEDs and corresponding resistors were added to improvise the project. 

Fig. 3.1

The figure 2 shows the top view of the circuit.   

A pair of green LEDs was placed in the circuit which is connected in series with the resistor. One is connected to the power supply which supplies power to the motor while the other is connected to the one that supplies power to the Arduino. 

The two green LEDs will be on whenever the switch for the power supply is switched on. If the brightness of the light decrease it would mean that the voltage in the power supply is dropping. 

Thereby, voltage level is directly proportional to the light intensity in this case. A yellow LED was placed between the motor. Whenever the motor does work, the yellow light
will be turned on.

The code was improvised in a way that, even if the sensor fails to work the motor will continue to do work. The code activates in such a way that, if the moisture value remains constant for a long period of time, motor will pump water into the system every fixed interval of time.  A red LED is placed on the board, and if the sensor is damaged it will light up.


No comments:

Post a Comment