can this chip do it?

Started by
16 comments, last by CProgrammer 19 years, 8 months ago
I was thinking of using an atmel avr chip. Connecting that to my USB-Controller, writing a programm for the avr that contrls the servos and expects commands from the usb-chip.

If the 20 ms are latency then everything should be fine.
Perhaps its how I hooked up the servo.
How important is the Ground(GND)?
I atached the red cable to battery plus, black to battery minus and white to digital out.
Do I perhaps have to branch the black cable and insert one half into the GND?

-CProgrammer
Advertisement
When I programmed my own servocontroller for a project in school, using a PIC-processor and an 'ordinary' servomotor, the servomotor 'wanted' a pulsewidth between 0.5ms (zero degrees) and 2.5ms (90 degrees) every 20ms (or 50 times a second). The pulsewidth can be calibrated but I'm pretty sure that those 20ms only is the time between the start (or end) for each pulse.
So it may ver well be that this is what they call the latency as the pulse only comes that often.
I hope that helped.
-------------------------------------------------"The object of war is not to die for your countrybut to make the other bastard die for his."
Mutare: Im using the digital output. Hence the pulses are created by myself via code. Two calls, to set and clear the port and two Sleep calls.

Infinisearch: I modified the servo to attach to the GND.
Didnt help. I think its not possible because a windows programm cant get such an accuracy. I mean the OS has tons of apps running in the background, plus Im using c++ and the set and clear calls are from a dll that came with the chip.
Probably my approach to programm a avr chip with assembler that controls the servo and in turn is controlled via my chip would work better. What do you think?

-CProgrammer
1. the servo only has 3 wires? If so do you mean a servo as in Radio Control car/plane/boat servo?
2. Please describe or post a diagram of the schematic/wiring diagram of your setup. A picture of the servo would be helpful as well.
3. Did you check the spec's of said servo in regards to voltage/current requirements? are you meeting them?

-potential energy is easily made kinetic-

yes three cables and yes usually used for modell planes or the likes.
heres a picture:


heres the product: The product number is: 225508 - 14
here

According to the specs I should be using 4.8 V I think. Im using 4.5 which I think should be fine.

Oh and I attahed another cable at half the blacks cable length and attached that to the GND.

-CProgrammer

[Edited by - CProgrammer on August 6, 2004 3:27:52 PM]
Oh I thought you were refering to a stepper motor of some sort, not a servo from hobby RC'ing. In that case another quick google brings up this page:

http://www.pontech.com/products/sv200/

which indicate pulse width modulated control, for those servo's.

BTW your link for the servo site doesn't work i get some page about cookies in german and i have cookies enabled, so you might want to fix it or give a model number to search for.

Look at the following page (i googled 'control servo with computer') :

http://www.taniwha.com/~paul/fc/rcout.html

for an idea of interfacing the servo.

-potential energy is easily made kinetic-

http://www.hvwtech.com/appnotes/servos_allabout.asp

http://www.epanorama.net/links/motorcontrol.html
(look out for section on rc servo motors)

-potential energy is easily made kinetic-

Hey thanks for the links.

-CProgrammer

This topic is closed to new replies.

Advertisement