Go Down

Topic: negative voltage detection (Read 537 times)previous topic - next topic

vinothkrishnan

Dec 28, 2015, 08:33 am
how to detect negative voltage in arduino?
i have to drive -10 volt to 0 and 0 to +10 volt in an arduino .
how to do it ? pls guide me

Wawa

#1
Dec 28, 2015, 08:46 am
Detect or measure.
If detect, what should the switch points be.

In general, a voltage divider connected to ground is used for positive voltages.
And a voltage divider connected to VCC can be used for negative voltages.
Leo..

larryd

#2
Dec 28, 2015, 09:02 am
Opto isolator.
No technical PMs.
If you need clarification, ask for help.

TomGeorge

#3
Dec 28, 2015, 09:11 am
Hi,

What is the application.

A language problem here, do you have to get an arduino to detect/measure a -10V to 0V and a 10V to 0V voltage?

Tom.....
Everything runs on smoke, let the smoke out, it stops running....

Wawa

#4
Dec 28, 2015, 09:26 am
Sounds like a dual-rail supply has to be monitored.

If grounds can be shared, four resistors could do the job.
10k between +5volt and a digtal pin, and ~27k from the digital pin to -10volt will produce switch points of ~1volt and ~3.6volt. Far enough apart for a digital pin to detect two states.
10k to ground and 12k to +10volt could work for the positive voltage.
Same could be used for two analogue pins to measure voltage.
Leo..

Paul__B

#5
Dec 28, 2015, 12:42 pm
OK, this is called the "XY problem".

You are asking for information on what you think to be the way to approach your problem,  The problem is, this is not necessarily the proper way to approach it, and solutions to the question you first posed may not be a useful or efficient way to actually address your real need.

So you need to explain why you think you want to do this.  It may be easier than you think, it may even not be necessary, and in particular, the answers you have otherwise received may even be quite inappropriate.

MarkT

#6
Dec 28, 2015, 01:44 pm
In general you can scale, level shift and invert with an opamp circuit called a differential amplifier,
so this might be one way if it turns out you are talking about analog rather than digital signals.

For detecting presence/absense there are many ways.  Optoisolators for one.
[ I will NOT respond to personal messages, I WILL delete them, use the forum please ]

Go Up