Electronic Circuits and Projects Forum



Servo motor

« First 12345 Last »
  1. Thread Starter #31
    uaefame uaefame is offline
    "power supply is glitching"
    You mean I use another power supply?

    your servo is knackered
    I don't think it's tired. I just using a new one I have plenty of samples here 18 pieces
    0
    Last edited by uaefame; 21st November 2008 at 03:18 PM.

  2. Thread Starter #32
    uaefame uaefame is offline
    I wrote these codes in PIC16F84a
    Code :
        list      p=16F84A             ; list directive to define processor
        #include <p16F84a.inc>         ; processor specific variable definitions
     
        __CONFIG   _CP_OFF & _WDT_OFF & _PWRTE_ON & _XT_OSC
     
    org 0x0
    	cblock 0x0c	
    	d1,d2,d3
    	endc
     
    		bsf		STATUS,RP0
    		movlw	b'00000'
    		movwf	TRISA
    		bcf		STATUS,RP0
     
    START	movlw	b'11111'
    		movwf	PORTA
    		call 	Delay2msec
    		movlw	00h
    		movwf	PORTA
    		call 	Delay18msec
    		goto	START
     
    Delay18msec
    			;17993 cycles
    	movlw	0x0E
    	movwf	d1
    	movlw	0x0F
    	movwf	d2
    Delay18msec_0
    	decfsz	d1, f
    	goto	$+2
    	decfsz	d2, f
    	goto	Delay18msec_0
     
    			;3 cycles
    	goto	$+1
    	nop
     
    			;4 cycles (including call)
    	return
     
    Delay2msec
    			;1993 cycles
    	movlw	0x8E
    	movwf	d1
    	movlw	0x02
    	movwf	d2
    Delay2msec_0
    	decfsz	d1, f
    	goto	$+2
    	decfsz	d2, f
    	goto	Delay2msec_0
     
    			;3 cycles
    	goto	$+1
    	nop
     
    			;4 cycles (including call)
    	return
     
     
    	END
    The motor goes to the desire angle but it shake every 0.5second and stop shaking for 1second then shake for 1/2second and doing it again and again Anyone know why?
    0

  3. #33
    blueroomelectronics blueroomelectronics is offline
    Put your scope on the servo pin or run it through MPLABs simulator.
    0
    Bill
    Semi retired, now just blogging

    http://colossus.dsmynas.com/

  4. Thread Starter #34
    uaefame uaefame is offline
    I finish my testing and I know the working range of my servo motor its between 0.8ms and 2.1ms the angle don't know still need to get it soon .

    About shaking i will do as you said bill.

    You think the control wire consume alot of current? More than the PIC can handle ? Or I am thinking too much?

    Thanks in advance
    0

  5. Thread Starter #35
    uaefame uaefame is offline
    Hello again,

    I did the oscilloscope test it fine I can see nice square wave.
    I am using the same power supply for the servo and the PIC you think that has to do something with it?

    BUT the skaking is still there

    Thanks in advance
    0
    Last edited by uaefame; 21st November 2008 at 11:22 PM.

  6. #36
    blueroomelectronics blueroomelectronics is offline
    The servo control wire draws very little current. Many servo controllers have 100ohm resistor in series anyway.
    0
    Bill
    Semi retired, now just blogging

    http://colossus.dsmynas.com/

  7. Thread Starter #37
    uaefame uaefame is offline
    THanks everyone for replying,

    Q1> I have PIC16F877, HOw many servo motor can be controlled using it?
    Q2> I need to send same command to 3 servo motor at the same time, do i hook up the RB0 to 3 servo motor?
    0

  8. #38
    blueroomelectronics blueroomelectronics is offline
    A skilled programmer could drive as many servos as there are output pins.

    One Output pin per servo

    Stop worrying about servos till you unterstand the PIC and MPLAB better.
    0
    Last edited by blueroomelectronics; 22nd November 2008 at 09:22 PM.

  9. Thread Starter #39
    uaefame uaefame is offline
    I am trying to design a power supply for my servo motor.
    Number of servo = 18
    Servo specification
    Torque: 347 oz/in @ 4.8V, 403 oz/in @ 6V
    Speed: .19 sec/60° @ 4.8V, .15 sec/60° @ 6V
    Current rating i heard it is 2.5A at max not sure ....

    Any idea how my power supply should be or ratting ?
    0

  10. #40
    jpanhalt jpanhalt is offline
    Not sure exactly to what that current rating refers. Is it per servo? Those are pretty hefty servos in modeler's terms. I would not be surprised at the current rating per servo. Then you have to consider what the loaded and stalled currents are.

    For example, in a simple model with typical servos (6) I use a switching supply capable of several amps, because during critical phases (like putting flaps at 90% on a fast landing approach), current drains can be quite high. I have been told more than a amp per servo, and these are just 40 in/oz servos.

    Thus, can you get current drain under load and at stalled? How many servos will be loaded or stalled at the same time? How critical/damaging will it be if the supply shuts down due to overload at some point?

    John
    0

« First 12345 Last »
Tags
Similar Threads
Thread Starter Forum Replies Last Post
Controlling a Servo Motor shaneshane1 General Electronics Chat 61 18th November 2007, 06:58 AM
Theory of servo motor. avinaik Datasheets, Manuals or Parts 2 10th March 2007, 11:15 PM
DC motor, Servo Motor or Step Motor ? wcz Electronic Projects Design/Ideas/Reviews 1 29th June 2005, 01:41 PM
servo motor help! show-boat Microcontrollers 7 14th November 2003, 03:33 AM
servo motor droid Datasheets, Manuals or Parts 2 18th September 2003, 01:40 PM
Electronic Circuits  |  Learning Electronics

Join our community with over 100,000 Members! It's free, easy and when you're logged in you have many more features! Click to register.
Page Time: 0.11700 seconds      Memory: 7,661 KB      Queries: 16      Templates: 0