Voltage divider using OptoCoupler

Discussion in 'General Electronics Chat' started by athulascc, Nov 17, 2015.

  1. athulascc

    Thread Starter Member

    Aug 15, 2014
    86
    1
    hello
    I need Isolated voltage divider , I have input 10-20V voltage that should be map to 0-5v to read by micro controller , but problem is they have not common ground. but + side is common.
    I think optocoupler will be work. but I am not sure.

    I appreciate your great ideas.

    Thanks
     
  2. athulascc

    Thread Starter Member

    Aug 15, 2014
    86
    1
  3. Alec_t

    AAC Fanatic!

    Sep 17, 2013
    5,813
    1,105
    :confused: If input amd output must have a common connection then they are not isolated, so an opto-isolator won't help.

    Edit:
    Approximately-linear transfer via an opto is possible with the sort of circuit attached, but the output would need scaling and offsetting either in software or by use of an opamp.
    IsolatedRamp.PNG
     
    Last edited: Nov 17, 2015
  4. MikeML

    AAC Fanatic!

    Oct 2, 2009
    5,450
    1,066
  5. DickCappels

    Moderator

    Aug 21, 2008
    2,664
    634
    @athulascc , Can you say more about your application, for example, how accurate does the "translation" have to be? What is the load for the output of this circuit? Things like that might matter.
     
    athulascc likes this.
  6. PeterCoxSmith

    Member

    Feb 23, 2015
    148
    38
  7. crutschow

    Expert

    Mar 14, 2008
    13,056
    3,245
    What power supply voltages do you have available?
     
  8. ian field

    Distinguished Member

    Oct 27, 2012
    4,415
    784
    In principle, there's no reason you can't use an opto coupler as an element in a voltage divide - but it won't be very linear and can be tricky to control.

    Its probably worth seeking out the appnotes that describe using opto couplers in linear circuits.

    The gist of it is; you use 2 opto couplers - one feeds the next stage, while one is included in the feedback loop of the amp that drives the 2 series connected diode sections.
     
  9. athulascc

    Thread Starter Member

    Aug 15, 2014
    86
    1
    well my application is solar controller. we need to charge battery when solar voltage is enough. but problem is i cant read solar voltage since GND is not common. check my image.
    circled mosfet disconnect when there is no battery but i need to read voltage of battery and solar anytime .
    hope u get and idea.
    panel voltage varies between 10 to 22v.
    Need to map it to 0-5v.. micro controller GND is battery GND.
     
  10. athulascc

    Thread Starter Member

    Aug 15, 2014
    86
    1
  11. Bordodynov

    Active Member

    May 20, 2015
    643
    188
    That level shifter. Power supplies have a common plus.

    Level_shifter_HtoL.png
     
  12. PeterCoxSmith

    Member

    Feb 23, 2015
    148
    38
    You must read the datasheet. The max input is 200mV so you need an resistive divider to limit 22v to 200mV. The gain is 8.2. So you will need an instrumentation amp on the output side to adjust the span to 5V and a Vref pin to move the voltage down to a range of 0-5V.
     
  13. Techno Tronix

    Member

    Jan 10, 2015
    140
    10
    Voltage divider using Optocouplers is only possible if the switch or signal being detected is within an electrically noisy environment. The output can be used to operate an external circuit, light or as an input to a PC or microprocessor.
     
  14. athulascc

    Thread Starter Member

    Aug 15, 2014
    86
    1
    hello everyone .
    Came up with new idea. Not sure it will work or not.
    please check my sketch
     
  15. athulascc

    Thread Starter Member

    Aug 15, 2014
    86
    1
    my idea is to shift micro-controller GND to up. then battery GND and mcu GND is different. since + is common always, i hope it will work.
    i think 7905 regulator will do this.
     
Loading...