When I used single servo and used this code.Everything was perfect.Object followed by servo perfecly.(left-right position)
second servo and new code =troubleCode:DEFINE LCD_DREG PORTB DEFINE LCD_DBIT 0 DEFINE LCD_RSREG PORTB DEFINE LCD_RSBIT 4 DEFINE LCD_EREG PORTB DEFINE LCD_EBIT 5 DEFINE LCD_BITS 4 DEFINE LCD_LINES 2 DEFINE OSC 4 DEFINE ADC_BITS 8 'A/D çevirim sonucu kaç bit olacak DEFINE ADC_CLOCK 3 'Clock kaynağı (3=rc) DEFINE ADC_SAMPLEUS 100 SYMBOL F=PORTA.0 SYMBOL G=PORTA.1 alta var byte usta var byte altb var byte ustb var byte ADCON1=2 TRISA=3 TRISB=0 PORTB=0 TRISC=0 LCDOUT $FE,1 pause 2000 adcin 0,ALTa ADCin 1,usta t var byte i var byte T=150 yap: adcin 0,altb ADCin 1,ustb if ((((usta+10)*100)/(ustb+10)))>130 and (not (t>194)) then T=T+15 endif if (((alta*100)/altb))>130 AND (not (t<51)) then T=T-15 endif gosub motor LCDOUT $fe,2,#usta," ",#ustb," ",#altA," ",#altb lcdOUT $fe,$C0,#T goto yap motor: for i=0 to 25 PAUSEUS 20000-(T*10) PULSOUT PORTC.2,T next return end
Now i unplugged a servo ,left-right position servo stiill slower and worked not properly..
Something wrong about codes you and me wrote....
Swap servos? What happens?
Dave
Always wear safety glasses while programming.
OK I have got to ask. What are you moving with your servo? As I said in my previous email, 450 mA is fine for testing UNLOADED servos. Possibly 2 servos. If you are using "standard" size servos then 450 mA is just adequate for turning 1 or 2 without a voltage compression under load. Again.....what are you moving with the servo?
Nick
This video shows left-right perfect tracking...http://www.dailymotion.com/burak450/...orks-fine_tech
This video shows two servos crazy at the beginning..http://www.dailymotion.com/burak450/...-to-servo_tech
This video shows (when up and down motion)(no vibration in left-right motion) servo vibrates weirdly...http://www.dailymotion.com/burak450/...-of-servo_tech
Finally this video shows work of two servos up-down-left-right motion...http://www.dailymotion.com/burak450/...two-servo_tech
something like grrrrrrr sound means vibration
Vibration when up-down motion and crazy servo at the beginning make problems...
Thats why I said it didnt work (properly! )or well or correctly
I hope I answered all questions with videos...
Last edited by burak450; - 3rd October 2008 at 23:59.
OK...just as I thought. Your power supply is not big enough. The other thing is you may need to get a larger servo to hold the turret vertically. The oscillation you see is the servo struggling to hold position and causing voltage dips because it is stalling. Get a 3A power supply from surplus, use several voltage regulators in parallel, filter with caps and get a metal gear servo to hold up the turret, they tend to be more heavy duty.
Nick
Last edited by Macgman2000; - 4th October 2008 at 00:17.
I dont think so, it can hold upto 10 kilos....Turret isnt a heavy thing...The other thing is you may need to get a larger servo to hold the turret vertically.
Did I understand right?I need to have 9v 3A power supply...
several 7805 ?how many?2 enough?What do you think?
Bookmarks