EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise
You are here: Home / Topics / digital automatic voltage regulator

digital automatic voltage regulator

|

Microcontroller › AVR › digital automatic voltage regulator

  • This topic has 1 reply, 2 voices, and was last updated 12 years, 11 months ago by AJISH ALFRED.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • May 27, 2012 at 11:20 am #1819
    sasidhar yalavarthi
    Participant

     

    i am using atmega 32 to generate pwm but i dont know how to vary duty cycle from it.
    actually i want to make an automatic voltage regulator for synchronous generator.
    first i will make terminal voltage step down rectify and use adc of mcu to get some value . 
    i will keep some reference.
    if terminal voltage decreases then field voltage should increase for that duty cycle should slowly increase.
     
    this is my whole idea.
     
    but i dont know how to calculate error and increase duty cycle in steps.
     
    i know codes for pwm and adc but i dont know the code for how to check error between measured and reference and to increase the pwm duty cycle accordingly
    May 27, 2012 at 4:45 pm #7919
    AJISH ALFRED
    Participant

     

    Hi Sasidhar,

                        Interesting project. I think you should continuosly check and compare the value from the adc with your reference value.

     

    Are you using timers for generating PWM or simply delay waiting inside a continuous loop?

     

    Anyway, there should be a condition check for same adc value and reference value. If the condition fails, you should update the number of counts required in timer ISR or the delay required in the code (increase or decerease depending whether the adc value is lesser or greater than the reference).

     

    Hope you got some idea.

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Log In

RSS Recent Posts

  • how to work on pcbs that are thick May 19, 2025
  • 100uF bypass Caps? May 19, 2025
  • Fuel Auto Shutoff May 18, 2025
  • Actin group needed for effective PCB software tutorials May 18, 2025
  • compatible eth ports for laptop May 18, 2025

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2025 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise