Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

I need control 8 motor speed by 1 MicroController IC

Status
Not open for further replies.

ahmad2005

Member level 1
Member level 1
Joined
Mar 30, 2011
Messages
40
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,288
Location
Mirpur,Dhaka,Bangladesh
Activity points
1,618
I need to control 8 motor speed by 1 MicroController IC

I need control 8 motor speed by 1 MicroController IC. For this purpose i decided to use PIC16F887 IC but it has only two PWM module so how can i program ...
 
Last edited:

My friend look this examples for servos controlled over PC software :
 

Attachments

  • !!! 16 channel serial servo controller.rar
    179.8 KB · Views: 156
  • !!! Control 8 servo motors with a PC.rar
    251.7 KB · Views: 126
  • !!! Serial Servo Motor Controller PIC16F84.rar
    1.8 MB · Views: 155

    V

    Points: 2
    Helpful Answer Positive Rating
What kind of motors do you need to control? You can attempt to use the timer modules for such a purpose. While it is possible, it's not the easiest of tasks programming for this, especially if you're a beginner.
 

Re: I need to control 8 motor speed by 1 MicroController IC

I need control 8 motor speed by 1 MicroController IC. For this purpose i decided to use PIC16F887 IC but it has only two PWM module so how can i program ...
Sounds like a perfect mismatch between task and selected microcontroller.
May be you can check PSoC from Cypress. It offer an option to generate multiple PWMs in hardware through logic programmable cells.
Check it out.

Bob
 
@Tahmid, I actually want to use DC motor for this purpose and need programming idea. so that i want to know how do i use two PWM to control the speed of 8 DC motor. I just want to programming idea or flowchart and also i will interface this MCU to PC through UART.

@bobsanjose,
thanks but I have no idea about PSoC. I saw their datasheet but they haven't included the feature of PWM. I will trying to know more about it.

---------- Post added at 20:11 ---------- Previous post was at 20:11 ----------

@Tahmid, I actually want to use DC motor for this purpose and need programming idea. so that i want to know how do i use two PWM to control the speed of 8 DC motor. I just want to programming idea or flowchart and also i will interface this MCU to PC through UART.

@bobsanjose,
thanks but I have no idea about PSoC. I saw their datasheet but they haven't included the feature of PWM. I will trying to know more about it.
 

It's kind of hard to explain. Have you done software PWM before? The thing is, you have to use software PWM here because you don't have enough CCP modules. You have to do PWM for each channel making sure you control all channels properly. And you will probably need to keep PWM frequency low to give enough time for action before the next interrupt.

An easier solution could be, use 2x 16F737 or 2x 16F777. It has 3 CCP modules, so you can use hardware for 3 motors and control a 4th motor with software PWM. Using 2 of these would mean that you can control 8 DC motors, 6 through hardware, 2 through software.

Hope this helps.
Tahmid.
 
@Tahmid,
Thanks. but i have no idea about software PWM ? How it works and How do it implemented ? and How do i use 3 CCP modules to control the 6 motors. i think one module can control 1 motor at a time but how do i implement it to control 2 motor at a time ? would you kindly explain it..
 

NO wait it is possible to do that on that chip..

Hardcore programmers woud not like it but you can bit bang the ports therefore bypassing the ccp totally.

Just a thought a lot of code but a challenge is a challenge and theres always a solution
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top