Author Topic: Controlling Servo from Computer (AVR)  (Read 1555 times)

0 Members and 1 Guest are viewing this topic.

Offline farnoiseTopic starter

  • Jr. Member
  • **
  • Posts: 9
  • Helpful? 0
Controlling Servo from Computer (AVR)
« on: November 03, 2012, 11:05:55 AM »
Hello All,
I understand this is a very broad question, but what I am trying to do is control bunch of servos using communication port on my PC. It doesn't have to be a GUI interface I just want to send a key stroke to the AVR, then AVR can convert that into PWM and rotate each servo based on what I have specified in my program. It sounds kind of simple but for some reason I can't find anything.
Please NOTE: I DO NOT want to use a servo controller. I am trying to make this with AVR and my own program. any suggestions/tutorials I can go through?

Thanks

Offline waltr

  • Supreme Robot
  • *****
  • Posts: 1,944
  • Helpful? 99
Re: Controlling Servo from Computer (AVR)
« Reply #1 on: November 03, 2012, 05:38:15 PM »
Start with just the AVR output to control one servo.
Then control several servos.

Next learn to setup and use the AVR's UART and first have it echo a character typed on the PC back.
Next is to use a values typed on the PC, to the UART in the AVR and have that value determine the pulse width to control the servo.

These topics are covered in the Robot Tutorials (see top/right corner of this web page), in these forum discussion and on many place on the web found by googling.

 


Get Your Ad Here