hello, i'm trying to use a servo with my picaxe. I tried it on Arduino before, and it worked just connecting the pins at the right position, without resistors.
now i just connected the same way on the picaxe, and it doesn't move.. I then remembered that in the "start here" project, a resistor was used.. So the question is: is it necessary? why do i need a resistor? and how do i wire it ?
Another thing that is probably messing up.. i have the darlington chip there.. shoud i remove it?
No-one’s replied to this, so I’ll stab a guess. A complete guess, bearing in ming that I’m not familiar with either picaxe or arduino.
Start with a question: Do you know if the transistor collector is the inverse of the base? There are several darlington arrangements and I don’t know which is in use. I.e, are you putting in a “1” and getting out a “0”? That would certainly cause the servo not to work as the variable length 1-2ms pulse MUST be a “high” pulse with the line left low for the remainder of the duty cycle.
A) You should NOT use a darlington before a servo. Just as you should not use a darlington after a serial signal etc. Darlington is only when you want to add a little more power, not when you want to send signals. And the servo just needs signals on the signal-wire! It has 3, the other2 are providing the power.
B) No one knows what the deal is with the resistor. That is the truth, any one saying different is lying. There are lots of theories, noise, redusing signal strength, sinking etc… but the truth is that nobody really knows. You should just always ad a 330 ohm resistor between a TTL chip and a servo, that is how it is! (Do it!)
I’ve run with and without, I’ve run with and without, for the most part though, I’ve read that it’s good to have at least a 220ohm res for any of the i/o pins on a mcu…just in case.
Well, in general, resistor Well, in general, resistor would be needed to reduce current through/voltage on the servo. May be servo internal resistance is usually small, which implies a current which might be too stong for either MCU or the servo itself… so it would make a lot of sense to put some resistor there just to reduce the current. TTL high level is 5V, if Rservo is measured in single digit Ohms, current strength would be in Amperes (rather than milliamperes)… can be disastrous for the chip, I guess.
It’s to reduce the current in the servo signal line. Presumably this affords the circuit some protection if some artist acudentally passes the drive voltage in there instead of the TTL signal out from the MCU. Personally, I’ve never bothered.
[edited about 0.78 seconds later] just realised peter_al replied in the next thread rather than replying to this one.
Yawn, another theory. Nobody knows why that thing with the 330 in front of the servo. And that is fine, it is like "what is outside the universe"-kind of thing. Theories, theories, just add it.
…I’m just not telling you because the last time I told you how something works you called me bad names like “techie” and stuff. Besides I don’t want to spoil the illusion that it all hangs together by magic.
Oh, and another thing: Santa Claus is REAL. Don’t let anyone tell you otherwise.
Sorry if it ever came out Sorry if it ever came out wrong; "techie" is NOT a bad thing to be! Us artys would be nowhere without you. Absolutely! You are the key!
Uh, well, as a certified “arty” I can tell you now, that even if “no one knows why”, you can figure it out. All you need is knowledge of Ohm’s Law and reading MCU and servo specs. It’s way simpler than “FritsLDR”, seriously…
Can we not be so serious here? I think that what frits was trying to say was “just use a 330 ohm resistor”.
I know Ohm’s law. Very well. And I feel sure that frits does also. But I also know that there is no way that I could ever explain it in other than my native language.
If you want to post a walk-thru of Ohms Law (in English or Danish ) then please feel free to do so. Or if you’d like, an explaination of EMS.
Most of the people here do not have Electrical Engineering degrees, or even any experience in electronics. They are here as hobbyists, and just want to know how to solve a problem.