+ Reply to Thread
Page 3 of 3
First 1 2 3
Results 31 to 44 of 44

Thread: Help Building a Water Meter Gauge using LM3914 and PreAmp

  1. #31
    Needlerp Newbie
    Join Date
    Sep 2009
    Posts
    21

    Default

    I realised that it wasn't working. It was either reporting 0v or 3.5v, but nothing in between.

    I might give up and go for the simpler option after all. How do I wire the LEDs so that they are on by default, and go off as the voltage rises through the LM3914 as per Roff's suggestion?


  2. #32
    Roff Excellent Roff Excellent Roff Excellent Roff Excellent Roff Excellent Roff Excellent Roff Excellent Roff Excellent Roff Excellent Roff Excellent
    Join Date
    May 2003
    Location
    Idaho, USA
    Posts
    6,723

    Default

    Quote Originally Posted by Needlerp View Post
    I realised that it wasn't working. It was either reporting 0v or 3.5v, but nothing in between.

    I might give up and go for the simpler option after all. How do I wire the LEDs so that they are on by default, and go off as the voltage rises through the LM3914 as per Roff's suggestion?
    When the tank is full, the voltage is lowest. If you positioned the vertical LED bar normally (low voltage at the bottom), the bar would be fully lit when empty (because the voltage is high), and as the tank filled, the LEDs would go off one at a time, starting at the top. If you turned the bar upside down, the bar would still be fully lit when empty, but as the tank filled, they would go off one at a time, starting at the bottom. That sounds a little weird (my bad).
    Perhaps you should use dot mode (with the bar still inverted). I think it would look normal, your LM3914 would run cooler, and you would save power.
    Ron


  3. #33
    Needlerp Newbie
    Join Date
    Sep 2009
    Posts
    21

    Default

    Ah. That's what I was going to do originally, but I'd much prefer bar mode not dot. Is there a way I can drive 5v across each LED so it's normally on, so that when the LM3914 thinks each LED is positive, it puts 5v across it's own pin, turning the effective voltage to 0 and turning each LED off in turn?

  4. #34
    Needlerp Newbie
    Join Date
    Sep 2009
    Posts
    21

    Default

    I think I may be nearly there. I've now got the MaxSensor to output 0-.68v when on its own, and an op-amp circuit ased on Eric's information to take 0-.68v from a POT and output 3.4v to 0v.

    However, when I swap the POT over for the output from the Maxsensor, although according to my multimeter they are giving the same outputs, the OpAmp will then only output 0v to 0.7v, and both the input and output seem to be doing a lot of oscillating on the meter before settling on a voltage.

    Does anybody have any suggestions?

  5. #35
    ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent
    Join Date
    Jan 2007
    Location
    Hampshire. England.
    Posts
    10,836
    Blog Entries
    13

    Default

    Quote Originally Posted by Needlerp View Post
    I think I may be nearly there. I've now got the MaxSensor to output 0-.68v when on its own, and an op-amp circuit ased on Eric's information to take 0-.68v from a POT and output 3.4v to 0v.

    However, when I swap the POT over for the output from the Maxsensor, although according to my multimeter they are giving the same outputs, the OpAmp will then only output 0v to 0.7v, and both the input and output seem to be doing a lot of oscillating on the meter before settling on a voltage.

    Does anybody have any suggestions?
    hi,
    Dont quite follow you explanation regarding pot swopping over.?

    Any chance you could post a simple diagram showing how the FULL circuit is connected.
    Eric " Good enough is Perfect "
    I will NOT answer PM's requesting technical help, please use the Forum
    PIC tutorials: Nigel's www.winpicprog.co.uk/ Bill's: www.blueroomelectronics.com/

    Link to my Articles: http://www.electro-tech-online.com/a...icgibbs-55450/

  6. #36
    Needlerp Newbie
    Join Date
    Sep 2009
    Posts
    21

    Default

    Eric,

    To see whether the circuit works, I used a pot to divide a 5v supply so that I could simulate a Vin range of 0-0.68v. Doing this, the OpAmp circuit works perfectly, and is set up as per the attached.

    However, when I remove the Op Amp and replace it with my actual meter, which I separately check is also showing the above voltage range on a multi-meter, I get a completely different response from the Op-Amp. It's as though the Op-amp is clipping my input at anything below about 0.5v, even though I know it works when providing that low voltage via the POT mock-up.

    Thanks
    Attached Images
    Last edited by Needlerp; 19th September 2009 at 09:06 AM.

  7. #37
    ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent
    Join Date
    Jan 2007
    Location
    Hampshire. England.
    Posts
    10,836
    Blog Entries
    13

    Default

    hi,
    Thats not the same circuit as the circuit I posted.???

    I will look it over, but have you changed the inputs and component values.
    Eric " Good enough is Perfect "
    I will NOT answer PM's requesting technical help, please use the Forum
    PIC tutorials: Nigel's www.winpicprog.co.uk/ Bill's: www.blueroomelectronics.com/

    Link to my Articles: http://www.electro-tech-online.com/a...icgibbs-55450/

  8. #38
    Needlerp Newbie
    Join Date
    Sep 2009
    Posts
    21

    Default

    Quote Originally Posted by ericgibbs View Post
    hi,
    Thats not the same circuit as the circuit I posted.???

    I will look it over, but have you changed the inputs and component values.
    I'm powering the OpAmp at 9v single supply, so went back to your original values before you updated them to 5v for me.

  9. #39
    ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent
    Join Date
    Jan 2007
    Location
    Hampshire. England.
    Posts
    10,836
    Blog Entries
    13

    Default

    Quote Originally Posted by Needlerp View Post
    I'm powering the OpAmp at 9v single supply, so went back to your original values before you updated them to 5v for me.
    OK,
    And is the opa a 741.?
    I am going thru your cct on the LTspice sim.
    Eric " Good enough is Perfect "
    I will NOT answer PM's requesting technical help, please use the Forum
    PIC tutorials: Nigel's www.winpicprog.co.uk/ Bill's: www.blueroomelectronics.com/

    Link to my Articles: http://www.electro-tech-online.com/a...icgibbs-55450/

  10. #40
    Needlerp Newbie
    Join Date
    Sep 2009
    Posts
    21

    Default

    Quote Originally Posted by ericgibbs View Post
    OK,
    And is the opa a 741.?
    I am going thru your cct on the LTspice sim.
    No, it's a CA3140EZ

  11. #41
    ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent
    Join Date
    Jan 2007
    Location
    Hampshire. England.
    Posts
    10,836
    Blog Entries
    13

    Default

    Quote Originally Posted by Needlerp View Post
    No, it's a CA3140EZ
    OK,
    Can you describe what is connected to the 1K resistor on the INV input.
    That generates the 0 to 0.68V.?
    Eric " Good enough is Perfect "
    I will NOT answer PM's requesting technical help, please use the Forum
    PIC tutorials: Nigel's www.winpicprog.co.uk/ Bill's: www.blueroomelectronics.com/

    Link to my Articles: http://www.electro-tech-online.com/a...icgibbs-55450/

  12. #42
    Needlerp Newbie
    Join Date
    Sep 2009
    Posts
    21

    Default

    Quote Originally Posted by ericgibbs View Post
    OK,
    Can you describe what is connected to the 1K resistor on the INV input.
    That generates the 0 to 0.68V.?
    It's a MaxBotix MaxSonar EZ4, which provides an analog output of the sonar reading of 0.98mv per inch of depth. which for my purposes returns 0-0.68v as readings. When I power it up and check the output using a multimeter it is indeed returning 0-0.68v, but as soon as I connect it up to the rest of the circuit it seems to stop working properly.

  13. #43
    ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent
    Join Date
    Jan 2007
    Location
    Hampshire. England.
    Posts
    10,836
    Blog Entries
    13

    Default

    Quote Originally Posted by Needlerp View Post
    It's a MaxBotix MaxSonar EZ4, which provides an analog output of the sonar reading of 0.98mv per inch of depth. which for my purposes returns 0-0.68v as readings. When I power it up and check the output using a multimeter it is indeed returning 0-0.68v, but as soon as I connect it up to the rest of the circuit it seems to stop working properly.
    I have just downloaded the d/s for the MaxBot, get back to you later today.
    Eric " Good enough is Perfect "
    I will NOT answer PM's requesting technical help, please use the Forum
    PIC tutorials: Nigel's www.winpicprog.co.uk/ Bill's: www.blueroomelectronics.com/

    Link to my Articles: http://www.electro-tech-online.com/a...icgibbs-55450/

  14. #44
    ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent
    Join Date
    Jan 2007
    Location
    Hampshire. England.
    Posts
    10,836
    Blog Entries
    13

    Default

    hi,
    From the MaxSonar data and your values of 0V thru +0.68V [ about 68 inches range], using a CA3140 powered from a 9V supply, the CA3140 opa outputs +3.8V thru 0Vish. I am assuming that the 9V is a regulated stable value.

    I have added the LM324 opa buffer thats part of MaxSonar circuit in order to show the the source of the 0V thru 0.68V.

    As per this attached image, the circuit works OK over the full range, the only minor limitation in using a single supply is the 0V is about 10mV.!

    You must have a problem in your layout.
    Attached Images
    Last edited by ericgibbs; 19th September 2009 at 11:21 AM.
    Eric " Good enough is Perfect "
    I will NOT answer PM's requesting technical help, please use the Forum
    PIC tutorials: Nigel's www.winpicprog.co.uk/ Bill's: www.blueroomelectronics.com/

    Link to my Articles: http://www.electro-tech-online.com/a...icgibbs-55450/

+ Reply to Thread
Page 3 of 3
First 1 2 3

Similar Threads

  1. Some help with mic preamp to vu meter
    By st1f1 in forum Electronic Projects Design/Ideas/Reviews
    Replies: 61
    Latest: 15th January 2010, 03:52 PM
  2. Help with a LM3914 gauge with cascaded chips and a photocell for brightness
    By madmen in forum Electronic Projects Design/Ideas/Reviews
    Replies: 1
    Latest: 19th April 2009, 05:45 PM
  3. Meter/gauge for car
    By superbrew in forum Electronic Projects Design/Ideas/Reviews
    Replies: 5
    Latest: 23rd October 2007, 01:54 AM
  4. Water level gauge
    By mahesh_jo in forum General Electronics Chat
    Replies: 1
    Latest: 3rd September 2004, 01:58 AM
  5. help with Hard drive VU meter with LM3914
    By kaffine in forum General Electronics Chat
    Replies: 3
    Latest: 14th February 2004, 05:47 PM

Tags for this Thread