How to detect current with arduino. e.g. I want to detect if there are some voltages on two cables!

how to detect current with arduino.
e.g. I want to detect if there are some voltages on two cables !

please help me :slight_smile:
(if I don't reply it's because my profile is new and limits the number of replies) :slight_smile:
(and if what I write is a bit weird it's because I use deepl translator and sometimes it translates weird) :face_with_monocle:

Do you want to measure current or voltage?
What voltage would you expect? AC/DC

Voltages are detected by using the analogue input pins with an

 analogRead(pin);

Call.

Current is more tricky, you put a current through a resistor and measure what the voltage is across it. Then you use ohms law to calculate the current.

I don't thing you want to measure current at all.

All voltages being fed into an Arduino must be less that the voltage feeding the Arduino chip. So that is 5V or 3V3 depending on what sort of Arduino you have.

1 Like

a voltage is measured between two points. if you want to measure measure a voltage on a cable there needs to be a reference, presumably the ground that the cable is part of

detecting a current is common in model railroads. there are several approaches. some that require the current pass thru a detection circuit which is part of the circuit. the voltage across a pair of diode is used to power the LED in an opto-isolator which becomes active when a current is present. or do you want to measure the amount of current?

1 Like

thank you so much for helping me :slight_smile:

thanks this also helped a lot :slight_smile:

another question is: if I connect the (+) to the positive cable where the current comes from to one of the analog positions, where do I connect the gnd to the (-)?

the ground of that system

what is the cable part of?

remote
i took the remote and the receiver out of a helicopter :slight_smile:
the question is where to plug the gnd?

battery negative

thank you :slight_smile:

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.