Problems Library Connect 6 servomotors to 1 dsPIC dsPIC30F40

General discussion on mikroC for dsPIC30/33 and PIC24.
Post Reply
Author
Message
rodrigo mendez
Posts: 11
Joined: 05 May 2009 15:44

Problems Library Connect 6 servomotors to 1 dsPIC dsPIC30F40

#1 Post by rodrigo mendez » 08 Nov 2010 00:04

Dear Gentlemen:

My name is Rodrigo Mendez, I am studying the dsPIC chips from two years ago and I please ask you my question, I need your help.

Please answer the following possible.

1. Problem: Connect 6 servomotors to 1 dsPIC.

2. Hardware Used: dsPIC30F4011, XTAL 20 MHz, Microchip ICD2 to introduce the program.

3. Used compiler: mikroC, mikroElektronika C compiler for Microchip dsPIC and PIC 24 microcontroller 30/33 Version: 4.0.0.0

4. Used Libraries:
- PWM Library
- PWM Motor Control Library

5. Questions. Please reply (Y or N) and if necessary to discuss your answer or give me the examples.

5.1 Could you tell me, Is possible give me the correct configuration word to “Device Flag”?
- Project-> Edit-> Device Flags

I don´t know if I am doing the correct settings.

5.2 Is possible to use “PWM Library” to 6 Servo Motors?
- I have tried save and simulate in the dsPIC the example included in the “Help” and it does not work.

5.3 Is possible to use “PWM Motor Control Library” to 6 Servo Motors?
- I have tried save and simulate in the dsPIC the example included in the “Help” and Only fuction with 1 servomotor.

Is very important your help and I am studying to use 6 servo because of the dsPIC datasheet indicates in the dsPIC30F4011 has 6 channels.

Thank you very much for your attention

Best Regards

Rodrigo Mendez

sophtware
Posts: 60
Joined: 05 Jun 2008 02:35
Location: Dacula, GA
Contact:

Re: Problems Library Connect 6 servomotors to 1 dsPIC dsPIC3

#2 Post by sophtware » 10 Nov 2010 13:47

Just search this forum for 8 servo controller using PIC16F627A by 'xor'. The code is in MikroBasic, but is so short it can be converted to any language. I've converted it to MikroC, and if you want a copy let me know and I will post it here.

The program uses the internal 4Mhz oscillator, so no external xtal is required.

rodrigo mendez
Posts: 11
Joined: 05 May 2009 15:44

Re: Problems Library Connect 6 servomotors to 1 dsPIC dsPIC3

#3 Post by rodrigo mendez » 11 Nov 2010 12:35

Thank You Mister Marko:

Please, send me the example to 6 Servomotor, but remember. I want to now if is posible to use the "pwm library" or "pem motor library" to 6 servomotors on dspic30f4011.

Please, is very important your help.

Regards

Post Reply

Return to “mikroC for dsPIC30/33 and PIC24 General”