Author Topic: HOW TO SENSE 12 VOLT DC VOLTAGE USING MICROCONTROLLER?  (Read 5823 times)

0 Members and 1 Guest are viewing this topic.

Offline Raj

  • Frequent Contributor
  • **
  • Posts: 694
  • Country: in
  • Self taught, experimenter, noob(ish)
Re: HOW TO SENSE 12 VOLT DC VOLTAGE USING MICROCONTROLLER?
« Reply #25 on: July 06, 2018, 04:40:47 pm »
Yup,its a cultural thing.
People don't play attention to the important parts otherwise.


It's origin? our schooling system I guess.
The textbooks are huge but the parts students are supposed to learn are one or two lines per page,made to underline by our teachers. I still used to read the whole book
« Last Edit: July 06, 2018, 04:52:10 pm by Raj »
 

Offline Raj

  • Frequent Contributor
  • **
  • Posts: 694
  • Country: in
  • Self taught, experimenter, noob(ish)
Re: HOW TO SENSE 12 VOLT DC VOLTAGE USING MICROCONTROLLER?
« Reply #26 on: July 06, 2018, 05:25:04 pm »
Raj n Kumar, why Indians love to use eyes blinding text all the time ? Not only you two, but I have seen too many at various forums as well.

Is it a cultural thing ? As common netiquette, its like shouting out loud when talking, everytime.  :-//
Perhaps their love of eye burning text is linked to their taste for mouth burning spicy food?

Anyway, I recently posted this schematic in another thread. It converts a voltage ranging from 10V to 15V to 0V to 5V, which can be read from an MCU ADC pin.

https://www.eevblog.com/forum/projects/mesuring-a-12v-lead-acid-battery/msg1644677/#msg1644677

Interesting...I would have taken a way expensive route with negative voltage or ground isolation from input,making input ground, -10+diode drop equalvant and a diode at input,

or simply use 16 bit mode adc ( there's an article on microchip's website on how to do that on 10 but atmegas without external adc)
« Last Edit: July 06, 2018, 05:31:46 pm by Raj »
 

Offline Raj

  • Frequent Contributor
  • **
  • Posts: 694
  • Country: in
  • Self taught, experimenter, noob(ish)
Re: HOW TO SENSE 12 VOLT DC VOLTAGE USING MICROCONTROLLER?
« Reply #27 on: July 08, 2018, 09:46:29 am »
Hey orignal post author,
If I am guessing correctly,I think you are trying to make a car voltmeter or a battery monitor of some sort,right?
 

Offline wabhavkumarTopic starter

  • Contributor
  • Posts: 12
  • Country: in
Re: HOW TO SENSE 12 VOLT DC VOLTAGE USING MICROCONTROLLER?
« Reply #28 on: September 29, 2018, 11:46:55 am »
Hello all,
can anyone suggest, below attached circuit diagram can work or not?
if not, please suugest pc817 optocoupler circuit for sensing 12 volt using microcontoller.
 

Offline Raj

  • Frequent Contributor
  • **
  • Posts: 694
  • Country: in
  • Self taught, experimenter, noob(ish)
Re: HOW TO SENSE 12 VOLT DC VOLTAGE USING MICROCONTROLLER?
« Reply #29 on: September 29, 2018, 02:07:41 pm »
This will work
 

Offline wabhavkumarTopic starter

  • Contributor
  • Posts: 12
  • Country: in
Re: HOW TO SENSE 12 VOLT DC VOLTAGE USING MICROCONTROLLER?
« Reply #30 on: September 29, 2018, 04:32:24 pm »
this circuit is not working at 50 meters circuit
 

Offline Mr. Scram

  • Super Contributor
  • ***
  • Posts: 9810
  • Country: 00
  • Display aficionado
Re: HOW TO SENSE 12 VOLT DC VOLTAGE USING MICROCONTROLLER?
« Reply #31 on: September 29, 2018, 04:49:31 pm »
thank you for the valuable reply. Please suggest optocoupler circuit.
What's wrong with a voltage divider? It seems by far the simplest solution. Without more information we're left guessing.
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19522
  • Country: gb
  • 0999
Re: HOW TO SENSE 12 VOLT DC VOLTAGE USING MICROCONTROLLER?
« Reply #32 on: September 29, 2018, 06:50:35 pm »
this circuit is not working at 50 meters circuit
What do you mean by 50 meters circuit? It makes no sense.

Is this connected to circuit, via a long piece of cable? If so, then you should have said before!
 

Offline Kjelt

  • Super Contributor
  • ***
  • Posts: 6460
  • Country: nl
Re: HOW TO SENSE 12 VOLT DC VOLTAGE USING MICROCONTROLLER?
« Reply #33 on: September 29, 2018, 09:19:47 pm »
At 50 metres you should put a microcontroller on both ends and connect with rs422/485 or ethernet
 

Offline Mr. Scram

  • Super Contributor
  • ***
  • Posts: 9810
  • Country: 00
  • Display aficionado
Re: HOW TO SENSE 12 VOLT DC VOLTAGE USING MICROCONTROLLER?
« Reply #34 on: September 29, 2018, 09:23:13 pm »
What do you mean by 50 meters circuit? It makes no sense.

Is this connected to circuit, via a long piece of cable? If so, then you should have said before!
This community seems so eager to help that it often starts offering advice before someone has bothered to properly specify the problem. That doesn't foster proper behaviour.
 

Offline SparkyFX

  • Frequent Contributor
  • **
  • Posts: 676
  • Country: de
Re: HOW TO SENSE 12 VOLT DC VOLTAGE USING MICROCONTROLLER?
« Reply #35 on: September 29, 2018, 09:43:32 pm »
I donĀ“t see why that reed switch should not operate at the microcontrollers operating voltage. Or switch ground with a pull up?
Support your local planet.
 

Offline wabhavkumarTopic starter

  • Contributor
  • Posts: 12
  • Country: in
Re: HOW TO SENSE 12 VOLT DC VOLTAGE USING MICROCONTROLLER?
« Reply #36 on: September 30, 2018, 11:00:50 am »
I am really sorry for posting an incomplete question.
yes, if no/nc switch is connected with 50m length of wire, then this circuit is not working properly.
Can anyone suggest some better circuit?
 

Offline Raj

  • Frequent Contributor
  • **
  • Posts: 694
  • Country: in
  • Self taught, experimenter, noob(ish)
Re: HOW TO SENSE 12 VOLT DC VOLTAGE USING MICROCONTROLLER?
« Reply #37 on: September 30, 2018, 01:41:00 pm »
go see Reply #20 on: 06-07-2018, 18:21:35

Use it.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf