Sign in

username:

password:



Not a member?

Search basicx



Search tips

Subscribe to basicx



basicx by Keywords

Accelerometer | ADC | ADXL | Adxl20 | AVR | BasicStamp | BX-35 | BX28 | BX35 | COM3 | Compiler | Downloader | EEPROM | Electromagnet | GetADC | GP2D1 | GPS | I2C | IDE | Keypad | LCD | LCD+ | MIDI | Motors | Multitasking | Netmedia | Networking | PCB | PID | PlaySound | PWM | Relays | RTC | Servo | ShiftOut | SitePlayer | SPI | Stack | Timer | USB

Ads

Discussion Groups

Discussion Groups | BasicX | Very Odd Servo Problem.....

Discussion forum for the BasicX family of microcontroller chips.

Very Odd Servo Problem..... - ryan_autet - Mar 23 8:26:11 2007

hi Im a noob at this but im having this messed up problem,
For the life of me my microcontroller wont control Parralex Conintues
Rotation Servos.

If i keep the power off the serveros my code runs fine but soon at i
power up the servos and Pulsing out to them the Prossor restarts
Every time.

At first i though my multi tasking timming as off but some thing is
wrote with the servo code and i cant figuer out what :P

I know it some thing silly though

can any one help me out?

Public Sub Forward()
Dim Counter As Integer
A_Interval = 0.001
B_Interval = 0.002
Call PutPin(RLed, 0)

For Counter = 1 To 25
Call PulseOut(Left_Servo, B_Interval, 1)
Call PulseOut(Right_Servo, A_Interval, 1)
Next
Call PutPin(RLed, 1)
End Sub



(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )


RE: Very Odd Servo Problem..... - Richard Friedrich - Mar 23 8:33:29 2007

sounds like power supply is messed up - use 4 C cells or 4 AA cells to
power the servo only - tie the grounds together

richard

________________________________

From: b...@yahoogroups.com [mailto:b...@yahoogroups.com] On Behalf
Of ryan_autet
Sent: Friday, March 23, 2007 7:25 AM
To: b...@yahoogroups.com
Subject: [BasicX] Very Odd Servo Problem.....

hi Im a noob at this but im having this messed up problem,
For the life of me my microcontroller wont control Parralex Conintues
Rotation Servos.

If i keep the power off the serveros my code runs fine but soon at i
power up the servos and Pulsing out to them the Prossor restarts
Every time.

At first i though my multi tasking timming as off but some thing is
wrote with the servo code and i cant figuer out what :P

I know it some thing silly though

can any one help me out?

Public Sub Forward()
Dim Counter As Integer
A_Interval = 0.001
B_Interval = 0.002
Call PutPin(RLed, 0)

For Counter = 1 To 25
Call PulseOut(Left_Servo, B_Interval, 1)
Call PulseOut(Right_Servo, A_Interval, 1)
Next
Call PutPin(RLed, 1)
End Sub

[Non-text portions of this message have been removed]


(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )

Re: Very Odd Servo Problem..... - ryan_autet - Mar 23 9:06:13 2007

Im using 4 AA Batters With a 3.3V/5V DC/DC Converter
>From Tekgear.ca
http://www.tekgear.ca/index.cfm?
pageID=90&prodid=466§ion=99&nodelist=1,99&function=viewproducts
is 200mA to low for this ??

--- In b...@yahoogroups.com, "Richard Friedrich"
wrote:
>
> sounds like power supply is messed up - use 4 C cells or 4 AA
cells to
> power the servo only - tie the grounds together
>
>
>
> richard
>
>
>
> ________________________________
>
> From: b...@yahoogroups.com [mailto:b...@yahoogroups.com] On
Behalf
> Of ryan_autet
> Sent: Friday, March 23, 2007 7:25 AM
> To: b...@yahoogroups.com
> Subject: [BasicX] Very Odd Servo Problem.....
>
> hi Im a noob at this but im having this messed up problem,
> For the life of me my microcontroller wont control Parralex
Conintues
> Rotation Servos.
>
> If i keep the power off the serveros my code runs fine but soon at
i
> power up the servos and Pulsing out to them the Prossor restarts
> Every time.
>
> At first i though my multi tasking timming as off but some thing is
> wrote with the servo code and i cant figuer out what :P
>
> I know it some thing silly though
>
> can any one help me out?
>
> Public Sub Forward()
> Dim Counter As Integer
> A_Interval = 0.001
> B_Interval = 0.002
> Call PutPin(RLed, 0)
>
> For Counter = 1 To 25
> Call PulseOut(Left_Servo, B_Interval, 1)
> Call PulseOut(Right_Servo, A_Interval, 1)
> Next
> Call PutPin(RLed, 1)
> End Sub
>
>
> [Non-text portions of this message have been removed]
>



(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )

Re: Very Odd Servo Problem..... - ryan_autet - Mar 23 9:10:51 2007

Im using 4 AAs with a DC /DC Converter from TekGear.ca
http://www.tekgear.ca/index.cfm?
pageID=90&prodid=466§ion=99&nodelist=1,99&function=viewproducts

is 200mA not enought to controll servos?
--- In b...@yahoogroups.com, "Richard Friedrich"
wrote:
>
> sounds like power supply is messed up - use 4 C cells or 4 AA
cells to
> power the servo only - tie the grounds together
>
>
>
> richard
>
>
>
> ________________________________
>
> From: b...@yahoogroups.com [mailto:b...@yahoogroups.com] On
Behalf
> Of ryan_autet
> Sent: Friday, March 23, 2007 7:25 AM
> To: b...@yahoogroups.com
> Subject: [BasicX] Very Odd Servo Problem.....
>
> hi Im a noob at this but im having this messed up problem,
> For the life of me my microcontroller wont control Parralex
Conintues
> Rotation Servos.
>
> If i keep the power off the serveros my code runs fine but soon at
i
> power up the servos and Pulsing out to them the Prossor restarts
> Every time.
>
> At first i though my multi tasking timming as off but some thing is
> wrote with the servo code and i cant figuer out what :P
>
> I know it some thing silly though
>
> can any one help me out?
>
> Public Sub Forward()
> Dim Counter As Integer
> A_Interval = 0.001
> B_Interval = 0.002
> Call PutPin(RLed, 0)
>
> For Counter = 1 To 25
> Call PulseOut(Left_Servo, B_Interval, 1)
> Call PulseOut(Right_Servo, A_Interval, 1)
> Next
> Call PutPin(RLed, 1)
> End Sub
>
>
> [Non-text portions of this message have been removed]
>



(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )

Re: Very Odd Servo Problem..... - Tom Becker - Mar 23 9:57:29 2007


> ... is 200mA not enough to control servos?

Probably not. The servo is very likely shutting the DC-DC converter
down and reseting your processor. As Richard suggested, most folks
use a separate exclusive supply for motors, sharing only ground, to
avoid the problem you've encountered.
Tom



(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )

Re: Very Odd Servo Problem..... - ryan_autet - Mar 23 10:12:06 2007

--- In b...@yahoogroups.com, "Tom Becker" wrote:
> > ... is 200mA not enough to control servos?
>
> Probably not. The servo is very likely shutting the DC-DC converter
> down and reseting your processor. As Richard suggested, most folks
> use a separate exclusive supply for motors, sharing only ground, to
> avoid the problem you've encountered.
> Tom
>
mmm Well thank you for your insight :) That realy saddens me now i have
to redo the entire power suply for this project :P



(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )

Re: Very Odd Servo Problem..... - Chris Odom - Mar 24 9:10:33 2007

Hi Ryan,

I'm pretty sure the problem lies with your code. Servos usually need a
minimum delay of around 20ms between consecutive pulses. Simply add
the line "Call Delay (0.02)" after your PulseOut commands and it should
work.

For more information about programming servos with the BX-24, see
Chapter 11 of my textbook, which is posted online at
http://www.basicxandrobotics.com/. Click on "Samples and Reviews" on
the menu bar.

Hope this helps.

chris

--- In b...@yahoogroups.com, "ryan_autet" wrote:
> For the life of me my microcontroller wont control Parralex Conintues
> Rotation Servos.
> can any one help me out?
>
> Public Sub Forward()
> Dim Counter As Integer
> A_Interval = 0.001
> B_Interval = 0.002
> Call PutPin(RLed, 0)
>
> For Counter = 1 To 25
> Call PulseOut(Left_Servo, B_Interval, 1)
> Call PulseOut(Right_Servo, A_Interval, 1)
> Next
> Call PutPin(RLed, 1)
> End Sub
>



(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )