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
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?