Hi.After a little time,Servo resets 16f877a when I make power on .I know i need to use opto-isolator and i have 4n35 but i dont know what connections are required.Somebody can tell me?Thanks everybody who answers my question...
Hi.After a little time,Servo resets 16f877a when I make power on .I know i need to use opto-isolator and i have 4n35 but i dont know what connections are required.Somebody can tell me?Thanks everybody who answers my question...
Last edited by burak450; - 30th September 2008 at 00:49.
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
thanks for your response but I mean what connections are required between 16f877a and 4n35 and servo motor?
Connect the output pin of the pic to pin 1 of 4n35 via a resistor of 330 ohms connect pin 2 to digital ground. you can also place a led diode in series (between pic and opto to detect the state)
Pin 4 and 5 (4nn35) will be used to drive your servo (max current 150mA) if you need more current you must use a power transistor or a mosfet. Connect to analog ground pin 4 and pin 5 to your servo ground side. Connect the positive analog voltage directly to the servo.
When your pic pin will go high the opto will conduct switching on your servo.
I am sorry but i dont get exactly.Can you send any proteus file to here?
my servo is this http://www.rcuniverse.com/market/item.cfm?itemId=230128
what kind of circuit should I use?
Find enclose the schematic. You should separate the supply of the pic from the supply of the servo to avoid the electrical noise generated by the servo will disturb the functionality of your pic. Remember that 4N35 can supply a maximum current of 50 mA so if you want to use the schematic as it is, you must check that your servo does not need higher current. Naturally you do not need to change the software, because the wiring will give you a direct interfacing.
Hope this will solve your problem.
Bookmarks