Servo Motor Control – Arduino For Beginners

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
User avatar
mahendaran_22
 
Posts: 6
Joined: Tue Oct 14, 2014 4:37 am

Servo Motor Control – Arduino For Beginners

Post by mahendaran_22 »

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/

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

Re: Servo Motor Control – Arduino For Beginners

Post by adafruit_support_bill »

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?

User avatar
mahendaran_22
 
Posts: 6
Joined: Tue Oct 14, 2014 4:37 am

Re: Servo Motor Control – Arduino For Beginners

Post by mahendaran_22 »

no.. i am just asking it can be possible or not .. ??

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

Re: Servo Motor Control – Arduino For Beginners

Post by adafruit_support_bill »

I'm sure that Pic controllers are capable of that too.

User avatar
mahendaran_22
 
Posts: 6
Joined: Tue Oct 14, 2014 4:37 am

Re: Servo Motor Control – Arduino For Beginners

Post by mahendaran_22 »

thanks for the suggestion will see to it

User avatar
alangoh84
 
Posts: 8
Joined: Wed Nov 05, 2014 6:24 am

Re: Servo Motor Control – Arduino For Beginners

Post by alangoh84 »

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.

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

Return to “Arduino”