Servo with Transistor problem

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
carlosr
 
Posts: 25
Joined: Tue Nov 27, 2012 7:27 pm

Servo with Transistor problem

Post by carlosr »

Hello,

I have a problem here that I've been all day long trying to figure out, and its driving me crazy!

I want to use a NPN transistor as an On/Off switch for a servo. (why? because i made the servo continuous, and the servo still rotates on the "center angle", tho im experimenting this with a regular servo)

Here is my scheme

The problem is that, the servo doesnt move, it makes a little squeeling noise, but does not rotate to any angle.

I really dont know where the problem can be, how can i make it work?

Thank you,
Greetings.

carlosr
 
Posts: 25
Joined: Tue Nov 27, 2012 7:27 pm

Re: Servo with Transistor problem

Post by carlosr »

Hello

I also have tried changing the Base resistor with a 680Ω resistor. The servo started to rotate, but insted of rotating to the angles, it started rotating back and forth like crazy.

Then I used a 220Ω resistor, the result was the same, just the "crazy" rotation was faster.

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: Servo with Transistor problem

Post by adafruit_support_bill »

The simplest way to stop the servo rotation is to stop sending control pulses. If you are using the standard Arduino servo library, just call the detach() function on your servo.

carlosr
 
Posts: 25
Joined: Tue Nov 27, 2012 7:27 pm

Re: Servo with Transistor problem

Post by carlosr »

Hello, its working fine with the servo detach();


Thank you.

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”