donnafe
Junior Member level 3
i will be making a project in-titled AUTOMATIC SHOWER. .in this project a shower showers water in a specified time. .which is included in th program. . plz help me in doing so. .
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
i will be making a project in-titled AUTOMATIC SHOWER. .in this project a shower showers water in a specified time. .which is included in th program. . plz help me in doing so. .
do you have a circuit diagramm for it to understand it well?
or you just writing a code that will act as a automatic shower ?
i dont have circuit diagram yet because. . i dont know how will i start my project. .
---------- Post added at 20:47 ---------- Previous post was at 20:46 ----------
thank you so much. .
usually for relay circuit..if you use the 5V relay, you can use 2n222 transistor, 1k base resistor, 1n4001 diode..the vcc is 5V..
this method is call sinking current..
you can refer on the net how sinking current work to aplified the current to trigger relay..
when it reaches the fifth minute the water will flow again. .
for how long?
---------- Post added at 15:49 ---------- Previous post was at 15:38 ----------
i dont know C but the concept is still the same with basic..
as you know, 1000ms = 1 sec
so for example:
loop:
delayms 60000
portb.0 = 1
delayms 10000
portb.0 = 0
delayms 230000
portb.0 = 1
delayms 10000
portb.0 = 0
goto loop
here the source code..
i made it using microbasic pro 4.15