I need to check if there is AC current going through a cable and send that information to the Arduino.
I know there are Current Sensors, that send Analog Data about the current going through. They measure the current intensity and send the according voltage.
However, i dont need that, i only need to detect current or not.
Is it posible to find a cheaper, smaller, electronic solution? instead of using a fully current sensor?
Make your own? Wrap some wire loops around the current carrying wire. When current flows it will induce a current in your windings (so you're essentially making a transformer), feed that current to a resistor, a voltage will be create that you can read with analog input (or feed into the input of a comparator (see the LM358 circuit that does Arduino voltage source switching) and get a high/low output that way.
You need to decide/determine what is the minimum current that will show as Yes or On. Then you'll have an analog sensor connected to a comparator with hysteresis. Then you'll have your digital On or Off signal.
CrossRoads:
Make your own? Wrap some wire loops around the current carrying wire. When current flows it will induce a current in your windings (so you're essentially making a transformer)
No, that's not a transformer, its two circuits with no mutual inductance between them.
For a transformer both wires must wrap together, in parallel. So you could just run the
sense wire alongside the sensed wire for a few feet. Wrapping a wire around another
is the wrong geometry.
I suspect the original poster wants to detect the presence or absence of mains voltage,
not current, anyway (ie is the wiring live?).
For this simple proximity will work (wrapping the wire around would do this), but a
fairly high-impedance sensor is needed - luckily the Arduino pins are high impedance
so you'd almost certainly get a rough trapezoidal voltage (clipped by the Arduino's
protection diodes) into either a digital or analog pin.
Stray electric fields would be an issue, as would keeping the sense wire short, since
capacitive sensors pick up any signal in range indiscriminantly. Some experimentation
would be required...
[ And make sure the mains wiring is in good nick, no damage to the insulation ]
if you loop the wire through the sensor, you get a multiple for every loop. 4 loops and you have almost 2.5 amps if your load is 600ma, if your load is 5 amps, you would get 20 amps
Apologies, my last transmission went too early. Finger trouble.
If you want;
1 to know if the light is on or off, binary response, use a photodiode as KenF suggests
2 to respond to various levels of light, analog response, use a photoresistor as part of a potential divider pair and scale this on an analog pin using the Map function to scale the level of sensing
3 a slower response, then measure the heat from the lamp (if it is producing a measurable amount) with a thermistor.
Apologies, my last transmission went too early. Finger trouble.
If you want;
1 to know if the light is on or off, binary response, use a photodiode as KenF suggests
2 to respond to various levels of light, analog response, use a photoresistor as part of a potential divider pair and scale this on an analog pin using the Map function to scale the level of sensing
3 a slower response, then measure the heat from the lamp (if it is producing a measurable amount) with a thermistor.
I will use a photodiode I guess, however what if it is day time? does it still work?
Are there any auto feed leds?
That means, that it would feed automatically from the current, without connecting, im saying from the magnetic field produced by the flowing electric current.