In the below link servo motor was controlled by arduino….it is Possible to control a Servo motor by using data written on a text file via a pic microcontroller?
http://www.ingenstech.com/21-servo-moto ... beginners/
Servo Motor Control – Arduino For Beginners
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- mahendaran_22
- Posts: 6
- Joined: Tue Oct 14, 2014 4:37 am
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: Servo Motor Control – Arduino For Beginners
I'm sure it is possible with a Pic. But we don't have many Pic experts here. Any reason you want to use a Pic vs an Arduino?
- mahendaran_22
- Posts: 6
- Joined: Tue Oct 14, 2014 4:37 am
Re: Servo Motor Control – Arduino For Beginners
no.. i am just asking it can be possible or not .. ??
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: Servo Motor Control – Arduino For Beginners
I'm sure that Pic controllers are capable of that too.
- mahendaran_22
- Posts: 6
- Joined: Tue Oct 14, 2014 4:37 am
Re: Servo Motor Control – Arduino For Beginners
thanks for the suggestion will see to it
- alangoh84
- Posts: 8
- Joined: Wed Nov 05, 2014 6:24 am
Re: Servo Motor Control – Arduino For Beginners
Hi it will work however some things like functions you will need to self script in .h files
why people find arduino easier is because it has alot of libraries which has been coded for.
for PIC you need to code most of the function yourself and in pure C environment.
over here when you declare a pin, you call it pinMode ( 1, INPUT) but in PIC, you do it by referring to the datasheet and lets say PORTA = 00000001 etc
1 = input 0 = output.
you might have to code your delay() function to define how long is 1 sec by calibrating with the Crystal. i have long forgo PIC as arduino is much friendly to use.
but then again, PIC has different model and generally has more pinout which is better for me if i am working for a university project. arduino is just for fun project generally. previously im using a 40 pin PIC to do anything from analog to digital which is basically the same as what arduino can offer just more control pin.
why people find arduino easier is because it has alot of libraries which has been coded for.
for PIC you need to code most of the function yourself and in pure C environment.
over here when you declare a pin, you call it pinMode ( 1, INPUT) but in PIC, you do it by referring to the datasheet and lets say PORTA = 00000001 etc
1 = input 0 = output.
you might have to code your delay() function to define how long is 1 sec by calibrating with the Crystal. i have long forgo PIC as arduino is much friendly to use.
but then again, PIC has different model and generally has more pinout which is better for me if i am working for a university project. arduino is just for fun project generally. previously im using a 40 pin PIC to do anything from analog to digital which is basically the same as what arduino can offer just more control pin.
Please be positive and constructive with your questions and comments.