+ Post New Thread
Results 1 to 10 of 10
  1. #1
    Member level 1
    Points: 501, Level: 4

    Join Date
    Dec 2013
    Posts
    35
    Helped
    1 / 1
    Points
    501
    Level
    4

    how to control 230v using pic microcontroller?

    Hi friends,
    i am doing a project based on pic16f877a MCU, i am using a transformer and and i want that 230 volt of transformer(and it must not exceed from 230v)to convert and give 5volts to pic MCU,how could i control this criteria?
    Thanks in advance

    •   Alt6th January 2014, 06:50

      advertising

        
       

  2. #2
    Member level 1
    Points: 787, Level: 6

    Join Date
    Jan 2014
    Location
    Bangalore, India
    Posts
    36
    Helped
    9 / 9
    Points
    787
    Level
    6

    Re: how to control 230v using pic microcontroller?

    Hi Bhoobalan,

    You need a 230V/12V or 230V/9V step down transformer. Connect the primary of the transformer to the 230V. Now you get 12V or 9V AC on the secondary. Since microcontroller operates on DC, you need to rectify this 12V or 9V AC to DC. This is done by a full wave rectifier(using 4 diodes: see diagram). To obtain constant 5V from the rectifier bridge output, you need a 5V regulator. [The most popular regulator is LM7805(see diagram)]. The capacitors filters the voltage to help reducing noise and ripple. The current rating of transformer and the regulator depends on the current requirements of your circuit.

    Check this link for the circuit diagram:
    http://www.engineersgarage.com/contr...-robots?page=4



    Raj Gunaseelan



  3. #3
    Member level 1
    Points: 501, Level: 4

    Join Date
    Dec 2013
    Posts
    35
    Helped
    1 / 1
    Points
    501
    Level
    4

    Re: how to control 230v using pic microcontroller?

    Hi Raj Gunaseelan ,
    Thanx for ur reply........ i want to vary the voltage b/w 0-5v(i don't want constant voltage)?


    1 members found this post helpful.

  4. #4
    Member level 1
    Points: 787, Level: 6

    Join Date
    Jan 2014
    Location
    Bangalore, India
    Posts
    36
    Helped
    9 / 9
    Points
    787
    Level
    6

    Re: how to control 230v using pic microcontroller?

    Do you want to supply power to the microcontroller or do you want to measure AC voltage? Why and how(using potentiometer?) do you want to vary the voltage?



    •   Alt6th January 2014, 11:43

      advertising

        
       

  5. #5
    Full Member level 3
    Points: 1,674, Level: 9

    Join Date
    Jul 2010
    Posts
    164
    Helped
    47 / 47
    Points
    1,674
    Level
    9

    Re: how to control 230v using pic microcontroller?

    Hi Bhoobalan,

    If you are talking about supply to the MCU, then usage of SMPS is the best. But you also had mentioned that you need varied voltage.

    Why would you need a varied voltage for the power supply of MCU?



  6. #6
    Advanced Member level 2
    Points: 4,490, Level: 15
    Achievements:
    7 years registered

    Join Date
    Jul 2009
    Location
    tunisia
    Posts
    627
    Helped
    40 / 40
    Points
    4,490
    Level
    15

    Re: how to control 230v using pic microcontroller?

    if isolation is not required and you are looking for a cheaper solution, then i recommend this cirrcuit,
    http://www.t-es-t.hu/download/microchip/tb008b.pdf



  7. #7
    Member level 1
    Points: 501, Level: 4

    Join Date
    Dec 2013
    Posts
    35
    Helped
    1 / 1
    Points
    501
    Level
    4

    Re: how to control 230v using pic microcontroller?

    Guys, i am going to connect one lamp with MC, so that i want to vary the voltage b/w 0-5 v(for example fan regulator). And also,if there is any voltage fluctuation in main, it must not affect the lamp. for example,if voltage is <230 or >230 means it must not affect the lamp voltage(0-5v).
    help me friends.........



  8. #8
    Banned
    Points: 23,048, Level: 36

    Join Date
    Dec 2012
    Location
    Bangalore, India
    Posts
    4,294
    Helped
    827 / 827
    Points
    23,048
    Level
    36

    Re: how to control 230v using pic microcontroller?

    Lamp is 5V type or 230V? If 230 then you need TRIAC and write PWM code to control the conduction angle of TRIAC.



  9. #9
    Full Member level 3
    Points: 1,674, Level: 9

    Join Date
    Jul 2010
    Posts
    164
    Helped
    47 / 47
    Points
    1,674
    Level
    9

    Re: how to control 230v using pic microcontroller?

    Are you trying to control the intensity of the lamp or only turn ON/OFF??



    •   Alt11th January 2014, 14:09

      advertising

        
       

  10. #10
    Newbie level 4
    Points: 29, Level: 1

    Join Date
    Jan 2014
    Posts
    5
    Helped
    0 / 0
    Points
    29
    Level
    1

    Re: how to control 230v using pic microcontroller?

    Use this concept and apply whenever you need to connect the high voltage with low current and voltage device.

    Keep these things in mind.
    Limitations of the voltage and current values of the IC.
    Never exceed 80% of the maximum value.
    So,

    Drop down the voltage using a high wattage resistor.
    Then use a bridge rectifier.
    User an IC like 7805 as voltage regulator,
    Add filter capacitors,
    check the voltage and current in multimeter and the waveform in oscilloscope (there should be square wave only).

    Then connect the IC.



--[[ ]]--