STUDENT SUBMIT A COMPLETE DRAFT OF FYP
PROPOSAL REPORT TO SUPERVISOR
Date: 13/5/2019 (Monday) –
31/5/2019 (Friday)
In this week I am going to Jalan Pasar, Kuala Lumpur to buy a
voltage regulator because some of the equipment needs supply above 5v. The equipment
is water valve which is to control the water in and out to the fish tank.
Figure Voltage Regulator
Figure Solenoid Valve
Figure above show the solenoid valve
that function to control water in and out of water at fish tank. This solenoid
valve also control by the Arduino and need to program.
Coding for
Solenoid Valve.
int solenoidPin
= 4; //This is the output pin on the Arduino we are usingvoid setup()
{ // put your setup code here, to run once: pinMode(solenoidPin, OUTPUT);
//Sets the pin as an output}void loop()
{ // put your main code here, to run
repeatedly: digitalWrite(solenoidPin,
HIGH); //Switch Solenoid ON delay(1000);
//Wait 1 Second digitalWrite(solenoidPin, LOW);
//Switch Solenoid OFF delay(1000);
//Wait 1 Second


No comments:
Post a Comment