Microcontroller › AVR › servo motor control using avr
- This topic has 1 reply, 2 voices, and was last updated 12 years, 4 months ago by
dagakshay.
-
AuthorPosts
-
February 4, 2011 at 12:47 pm #634
Amit kumar
Participantfor2 servos i had to use 2 avr ports. i want to use 4 servos in only 1 port in ATMEGA 16,how can it be done without interfering with other servo’s PWM??
February 5, 2011 at 5:10 am #5425dagakshay
Participant<span style="font-size:15.0pt;
color:black”> hello amit…<p style="margin:0in;margin-bottom:.0001pt;border-style:initial;border-color:
initial;outline-width: 0px;outline-style: initial;outline-color: initial;
background-image:initial;background-attachment:initial;background-origin: initial;
background-clip: initial;background-position:initial initial;background-repeat:
initial initial”>one servo motor is interfaced with one pin of your controller doesn’t need complete port to interface it with a servo motor.. the avr is having a separate PWM channels to control sevro.. giving time delay between one on and off is not a good programming technique… my advice to use avr in built PWM channel to control your servo motor… for more details about how to generate PWM in avr refer to the link<p style="margin:0in;margin-bottom:.0001pt;border-style:initial;border-color:
initial;outline-width: 0px;outline-style: initial;outline-color: initial;
background-image:initial;background-attachment:initial;background-origin: initial;
background-clip: initial;background-position:initial initial;background-repeat:
initial initial”> <p style="margin:0in;margin-bottom:.0001pt;border-style:initial;border-color:
initial;outline-width: 0px;outline-style: initial;outline-color: initial;
background-image:initial;background-attachment:initial;background-origin: initial;
background-clip: initial;background-position:initial initial;background-repeat:
initial initial”>http://www.engineersgarage.com/embedded/avr-microcontroller-projects/fast-pwm-mode-timer-circuit<p style="margin:0in;margin-bottom:.0001pt;border-style:initial;border-color:
initial;outline-width: 0px;outline-style: initial;outline-color: initial;
background-image:initial;background-attachment:initial;background-origin: initial;
background-clip: initial;background-position:initial initial;background-repeat:
initial initial”> <p style="margin:0in;margin-bottom:.0001pt;border-style:initial;border-color:
initial;outline-width: 0px;outline-style: initial;outline-color: initial;
background-image:initial;background-attachment:initial;background-origin: initial;
background-clip: initial;background-position:initial initial;background-repeat:
initial initial”> -
AuthorPosts
- You must be logged in to reply to this topic.