Society of Robots - Robot Forum

Electronics => Electronics => Topic started by: houssem on October 05, 2011, 02:39:47 PM

Title: servo motor connection with the pic
Post by: houssem on October 05, 2011, 02:39:47 PM
hi i just have a simple question about the $50 Robot ; in this tutorial the first servo is connected with pin2 (PD0  rxd)  . how can this servo be controlled through this input pin , i though that PD0 (RXd) is a receiver that is used to change data with the computer???  thanks
Title: Re: servo motor connection with the pic
Post by: Soeren on October 05, 2011, 03:27:25 PM
Hi,

[...] the first servo is connected with pin2 (PD0  rxd)  . how can this servo be controlled through this input pin , i though that PD0 (RXd) is a receiver that is used to change data with the computer???  thanks
Many controller pins have several functions and their exact behaviour is decided in the software.
This pin can be used as RXD, but can be used as a generic I/O pin as well (not at the same time of course).

Look up the datasheet and study the parts describing I/O functions.
Title: Re: servo motor connection with the pic
Post by: houssem on October 05, 2011, 03:32:51 PM
Thanks