Other Voltage dividers

Discussion in 'Hardware' started by liratheal, 8 Jun 2020.

  1. liratheal

    liratheal Sharing is Caring

    Joined:
    20 Nov 2005
    Posts:
    12,947
    Likes Received:
    2,043
    Evening folks.

    I'm working on a sensor display for my car, using an arduino.

    As far as I can tell, I need a voltage divider to make it all play ball.

    However! I'm not sure whether I have a code issue or a hardware issue at the moment, and since voltage dividers are new to me, I was hoping someone could give me a kick in the right direction.

    At present the layout is

    Arduino 5V - Capacitor - R1 - R2 - Sensor+

    I have a connection to one of the analogue pins on the Arduino just after the capacitor.

    However, diddly squat happens on the arduino when the temp sensor is introduced to hot water.

    I've been referring to these projects;

    https://github.com/speeddragon/Arduino-CarSensorDashboard

    https://www.instructables.com/id/VDO-Oilpressure-sensor-for-Arduino/

    Mostly the github project, though.

    How badly have I screwed up the voltage divider?
     
  2. Bloody_Pete

    Bloody_Pete Technophile

    Joined:
    11 Aug 2008
    Posts:
    8,610
    Likes Received:
    1,254
    Do you have a photo of the layout and the code?
     
  3. liratheal

    liratheal Sharing is Caring

    Joined:
    20 Nov 2005
    Posts:
    12,947
    Likes Received:
    2,043
    The code is on this page;

    https://github.com/Nirach-N09/Arduino-CarSensorDashboard - I'd paste, but it's kind of long and there are other parts in the lib folder.

    Excuse the mess, since it's all up in the air at the moment I haven't been really giving it my all in terms of layout and planning;

    [​IMG]
     
  4. Sam__

    Sam__ Minimodder

    Joined:
    22 Sep 2012
    Posts:
    443
    Likes Received:
    111
    A schematic of what you've put together would make this a lot easier! Are you follwing this one?
    [​IMG]
     
    Bloody_Pete likes this.
  5. liratheal

    liratheal Sharing is Caring

    Joined:
    20 Nov 2005
    Posts:
    12,947
    Likes Received:
    2,043
    Agreed - but my electrical schematic reading skills aren't great, and drawing one would probably make it far worse :p

    I think I followed that one, yes, but as mentioned my electronics skills are.. questionable at best when not dealing with simple stuff like LEDs.
     
  6. Bloody_Pete

    Bloody_Pete Technophile

    Joined:
    11 Aug 2008
    Posts:
    8,610
    Likes Received:
    1,254
    Can we see the other side too.
     
  7. liratheal

    liratheal Sharing is Caring

    Joined:
    20 Nov 2005
    Posts:
    12,947
    Likes Received:
    2,043
    Sure, it's not particularly interesting though, in that the runs are basically straight;

    [​IMG]
     
  8. LennyRhys

    LennyRhys Fan Fan

    Joined:
    16 May 2011
    Posts:
    6,454
    Likes Received:
    971
    It's hard to tell from the photo but it doesn't look like you've broken the track between the terminals of the components, ergo current will just bypass the resistors as if they're not present.

    [​IMG]

    Also, when working with stripboard I always run a knife (or serrated edge) between the tracks to make sure there are no unintentional solder bridges between the tracks.
     
    Bloody_Pete and liratheal like this.
  9. liratheal

    liratheal Sharing is Caring

    Joined:
    20 Nov 2005
    Posts:
    12,947
    Likes Received:
    2,043
    That is almost certainly what it is.
     
    Bloody_Pete and LennyRhys like this.
  10. Bloody_Pete

    Bloody_Pete Technophile

    Joined:
    11 Aug 2008
    Posts:
    8,610
    Likes Received:
    1,254
    Grab yourset a stripboard cutter, usually only a fiver, but its be far the easiest way to cut the tracks on stripboard :)
     
    liratheal and cobalt6700 like this.
  11. liratheal

    liratheal Sharing is Caring

    Joined:
    20 Nov 2005
    Posts:
    12,947
    Likes Received:
    2,043
    Well, now the blind pig in a thunderstorm soldering has been corrected I'm getting consistent voltage readings across all three connections.

    I did have to lose the capacitors, though. I didn't have 10µf to hand and tried 100, that seems to have crippled any output from the Arduino.

    However, the code is now also not working quite how I expected it to, in that it's not reading right. But that's a problem for another day, as I'm tired of looking at this project for now.
     
    LennyRhys likes this.
  12. LennyRhys

    LennyRhys Fan Fan

    Joined:
    16 May 2011
    Posts:
    6,454
    Likes Received:
    971
    Electronics can be fun but it can also be a royal PITA when it comes to problem solving. At least you're in a better place now to proceed when you're ready for it!
     
    cobalt6700, liratheal and Bloody_Pete like this.
  13. Bloody_Pete

    Bloody_Pete Technophile

    Joined:
    11 Aug 2008
    Posts:
    8,610
    Likes Received:
    1,254
    I spend weeks debugging a LED driver circuit I'd designed, went through ALL the maths for the regulator by hand several time and began to doubt my sanity when it turned out 3 of the IC's I'd recieved were DOA! WEEKS! I was loosing my mind!
     

Share This Page