Society of Robots - Robot Forum

Electronics => Electronics => Topic started by: MBJ on January 17, 2015, 05:55:16 PM

Title: How to connect a servo with microcontroller p.s I am a beginner :P
Post by: MBJ on January 17, 2015, 05:55:16 PM
My robotics kit is not here yet but
if I have a microcontroller and I have servos, batteries etc.
How should I connect them? I mean how would I know that this is the right way to connect them or how would I know the difference in the input and output ports.
and is it possible that I bought a microcontroller and a servo from different places and the servo is unable to connect because its pin (or wire or lead) is of different kind and the port on the microcontroller is of different kind? is it possible?

Thank you!!  :)
Title: Re: How to connect a servo with microcontroller p.s I am a beginner :P
Post by: Cycloned on January 18, 2015, 05:12:56 AM
Servos have 3 leads coming out of then. The black or brown one is ground, the red is positive and the white or orange is input to the servo. So just just connect the first 2 to 5V and Gnd and the 3rd to any output pin on the microcontroller.
Title: Re: How to connect a servo with microcontroller p.s I am a beginner :P
Post by: Ibaeni on January 19, 2015, 04:01:43 PM
Could you provide a link or details about what kit/microcontroller/servos you bought?
Title: Re: How to connect a servo with microcontroller p.s I am a beginner :P
Post by: MBJ on January 20, 2015, 01:22:07 PM
Thank You Sir Cycloned :)
Title: Re: How to connect a servo with microcontroller p.s I am a beginner :P
Post by: MBJ on January 20, 2015, 01:26:49 PM
Sir Ibaeni, I haven't bought the kit actually but those were the parts (e.g servos, batteries, etc.) and I bought them from a shop within my country through a relative.