servo with a atmega8515

Go To Last Post
7 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

hello can enybody help me with a servo code in bascom
the axemple code dos'nt work of some reson. :(

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Please consider what you have told us. How could we possibly help you without knowing more?

Chuck Baird

"I wish I were dumber so I could be more certain about my opinions. It looks fun." -- Scott Adams

http://www.cbaird.org

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

i have tryd the axemple code with my stk 500 with the servo connected to portb,7 the power is from the stk500.
is it possible that stk500 can't deliver enough
to the servo (MG995 towerpro) or is it maybe
a servo malfunktion.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

We still need more information. What does it do? Does the servo not move the way that you expect it to? Does it work for a while then go haywire? Does it not even budge?

Without knowing what is happening ( code would be good too ) we can't really do anything but guess at what the problem is.

Martin Jay McKee

As with most things in engineering, the answer is an unabashed, "It depends."

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

it moves in small steps (0,5 mm) and when it commes to end point it tryes to continou.
and for the current time i don't have access to my computer so i will put the code up tommorow.
and it's no error on the servo i tryed one of my other MG995 Same thing ther :( .
so i have two possible errors.

# 1 STK500 can't deliver enough power.

# 2 a code error.

Last Edited: Tue. Jan 12, 2010 - 09:36 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

#2 a code error in.

Yup line 47 there looks awfully suspicious.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

i removed that line.
[edit]stupid me that is a part off the config code: oops: