Hi everybody, I would like to know if this is possible.
A infrared sensor which if it detect something in front of it, send a signal to arduino (sign 1 ON). Two wires with voltage, and with copper tape in the extremes of the wires, that, if the copper tape is touched (the electric circuit receives voltage), it doesn't send any sign to arduino. But, if the copper tape is not touched, it send some sign to arduino (sign 2 ON)
If arduino receives 2 signs ( if it has one sign or none sign), the arduino has to beeping (with a speaker or anything) which it can be stopped with a button.
I would like to know too, if that circuit, which I was talking about before, it always have to being received voltage. In this case, I would connect the circuit in a plug, or if there is somehow that with this circuit, or at least, this bases, the circuit can be connected to a battery, without exhausted voltage, because I assume (and, please, correct me if I'm wrong) that if the circuit is always receiving voltage, and the sensor is doing calculations, my battery is going to be a deplete battery.
A lot of thanks, guys!
PS: sorry, my english is not perfect.