Professional Documents
Culture Documents
Contact Us
electroSome
MIKROC / PIC
MICROCONTROLLER
/ TUTORIALS
21
COMMENTS
FOLLOW:
NEXT STORY
Microcontroller
PREVIOUS STORY
SEARCH HERE
precise angular
position. Servos are
used for
precise positioning
in robotic arms,
legs, RC
BLACK) are used to given power and the third one is used to
give control signals. Servo can be easily be controlled using
microcontrollers using Pulse Width Modulated (PWM) signals
on the control wire. Here we are using a servo whose angular
AM Generation using
Simulink
Condenser Microphone
http://electrosome.com/servo-motor-pic-microcontroller/
1/7
4/9/2014
Circuit Diagram :
MOST VIEWED
Voltmeter and Ammeter using PIC
Microcontroller - 42,845 views
Interfacing Stepper Motor with PIC
Microcontroller - 39,713 views
USB PIC Programmer : PICKit2 - 35,619
views
Digital Clock using PIC Microcontroller and
DS1307 RTC - 35,441 views
Interfacing DC Motor with PIC
Microcontroller using L293D - 34,489 views
Name*
Interfacing Servo Motor with PIC Microcontroller
* = required field
Preferred Format
GND.
MikroC Programming:
HTML
Text
Subscribe
void main()
{
TRISB = 0; // PORTB as Ouput Port
do
{
//To Turn to 0 Degree
PORTB.F0 = 1;
Delay_us(1000);//1ms Delay
PORTB.F0 = 0;
Delay_ms(1000);
//To Turn to 90 Degree
PORTB.F0 = 1;
Delay_us(1500);
PORTB.F0 = 0;
http://electrosome.com/servo-motor-pic-microcontroller/
2/7
4/9/2014
FM Frequency
Microchip PIC
Power Supply Voltage
Crystal Oscillator
electroSome
Follow
Wide Frequency
Range
8 Bit Microcontroller
Variable Frequency
Oscillator
+1
+ 326
Related Posts :
PIC Microcontrollers
About this Ad
Bit Microcontrollers
Interfacing
Servo Motor
with Atmega32
Microcontroller
Interfacing
Servo Motor
with 8051
using Keil C
Interfacing DC
Motor with PIC
Microcontroller
Servo Motor
Tags:
Microcontroller
PIC
Servo Motor
Interfacing
Stepper Motor
with PIC
Microcontroller
Trust Rating
Tutorials
Comments
Community
Sort by Best
Login
Share
Favorite
3/7
4/9/2014
a year ago
Reply Share
Ligo George
Mod
Reply Share
7 months ago
Reply Share
Ligo George
Mod
edwin
edwin
Ligo George
Mod
6 months ago
edwin
Bassant M. Mohamed
a month ago
magnai
a month ago
sarawrislammooon
a month ago
hi i use those codes for servo sg 91r servo but my motor does
not move it goes some 30-45 degree and stops what can i do
please help .........
Reply Share
neville
2 months ago
http://electrosome.com/servo-motor-pic-microcontroller/
4/7
4/9/2014
Reply Share
roboblaze
4 months ago
Ligo George
Mod
5 months ago
Ligo George
Mod
5 months ago
Reply Share
6 months ago
Ligo George
Mod
8 months ago
Hi!!! can you please give me a sample program for five degree
freedom robotic arm using servo motor? we are using mikroc in
16f84a as our pic and we are having a hard time solving it.
thanks! :D
Reply Share
Ligo George
Mod
8 months ago
da
a year ago
maybe you have some microC code which can do the same
servo control via uart? (pic to pic communication)
Reply Share
Ligo George
Mod
da a year ago
electroSome
http://electrosome.com/servo-motor-pic-microcontroller/
5/7
4/9/2014
http://electrosome.com/servo-motor-pic-microcontroller/
6/7
4/9/2014
0
Tw eet
42
Like
Share
http://electrosome.com/servo-motor-pic-microcontroller/
7/7