Help in water tank project! using BC547 [CLOSED]

I an making a project using arduino(which is compulsory ).
the project the "Water tank overflow turn off switch ". The project aims to turn of the switch using servo motor (the switch i the same as the fan round switch ).
i need help in connecting the BC547 transistor and cant seem to get the circuit right like where the ends of probe go or how the collector and emitter should be attached to the battery.

Since i am using Tinkercad to make the circuit the NP_N transistor is to be replaced by BC547.
(i have attached 2 1K ohm resistors to the transistor )
The only problem i am facing in the connection of transistor and how will the arduino read its signal .

It will never get a signal over just one wire, you need common ground between the two circuits.

how exactly ?
can you help me with the circuit

First of all, do you know what ground (GND) is? It's very fundamental in electronics, so you should know. Then you just add to yep circuits ground together, and voilà, you got common ground!

But do you really need the 9 V circuit? Why don't you use the 5 V from the Arduino instead? Distance?

Yep, not to also mention the fact the positive from the 9V battery goes nowhere:

oh !!

I know, I thought I'd just skip to the eliminate 9 V all together...


this is how it will look
Since it is a small project that's why i have used a 9V battery to power it

i cant because the power from arduino cant complete the circuit in large scale

The Arduino as well? If so you'll be changing batteries often.

I think it's time to get us up to date with your project. You have a water tank that's not supposed to or must not overflow. How far away is the Arduino located from the sensor? What is to be done when the alarm goes off?

Don't you have any power source next to Arduino?
And what kind of water is to be monitored? Because if it's for humans (e.g. drinking water or coffee) it isn't a good idea to put copper wires inside.

Anyway, why don't you take a look at this project I made several years ago? Maybe it could give you some useful hints:

3 Likes

Why is that considered a hazard?
My drinking water comes through copper pipes.

Yeah but there's not current flowing between the pipes and an electrode.

When you stick the probes in water, the voltage at A0 will go from 4.5V to close to zero volts.

Do you understand how to read the schematic?

1 Like

to answer your question
The water tank must not overflow.
bc547 will is at 40 cm wire at least and arduino at 60 to 80 cm.
i am using a modified switch so the the servo motor can rotate it


Similar to these.

As to where it will be used :
Fish tank
Water tank where plants are grown (as they require frequent water change)
These are the only problems i am currently addressing in the project .

Yes i do !
thankyou this has made the connection easier !

thankyou for

I will use a different power source for the arduino .

Normal water/ tap water
I haven't thought about using this project for humans since there are ROs for the drinking water supply.

@prachi_er

You don't need the transistor , just do an analogRead();

Good. So my advise is to avoid any contact with copper wires, using a non-invasive solution, like ultrasonic sensor (it was the solution I implemented and worked for almost 10 years, the lifetime of that espresso machine). It can also give you a good precision level measure (if the water is steady), not only just the limit reached, so you can define the limits just on the software side...

ok
but using sensors increase the maintenance and get hard for the user to use it