How to Control DC motor

Cuongle
Hello everyone!
I have a project with Mini2440Kit to PID Control a Motor.
 But, I've just done it with Pic16F887 and Laptop to display speed and set
up P, I, D values.  

I have no idea where I can begin with this Kit.
Anyone could give me some recommendations.
Thank you.

Anatoliy
Hello!
Maybe you look at StartOS. It's easy.

Shahid Riaz
hi, If you already familiar with C/C++, test2440 is the best source with
ADS 1.2. Modify the routines, add desire code and have a fun.

Cuongle
Attachment: Layout.png (19.83 KB)
Thank you Anatoliy and Shahid. I read test2440 and reviewed StartOS.
And now, I design this model (attachment).
I wonder is it possible to do that?
 Should I use GPIO (as shown in picture above) or
Serial COM port to transfer parameters to another kit, ex: PIC to control
the motor?

Thanks for reading my topic.

luc
I do not think its possible to read the encoder only by software.
What is the max frequency of the encoder ?
Have a look at for example dspic30F4012. quadrature decoder, pwm onboard.

Regards
Luc

Cuongle
@Luc: thanks for your advice. the encoder has 200 pulses/round & the
max-speed of the motor is 3000rpm. So, it about <=10KHz ?
Is it possible?
If not, should I use COM port to communicate between Mini2440 (the master)
and the another MCU (my MCU: AMR 3-Cortex LPC1769)?
The mini2440 will have a GUI to display the status of the motor & recieve
set-speed(from users) to transfer to the above MCU. 
Is it possible?
Thank you everyone for reading this topic.

Luc
Cuongle,

I think this is the only correct way to do it.The LPC1769 has all the
hardware onboard so a loop with very short cycle time is possible to do the
PID loop controlling the motorspeed and -position.

Cuongle
yeah, thank you Luc. I decided to choose option 2 (Kit2440 vs LPC1769).

I used to control the motor by using LCP1769 and my laptop.
I created a GUI on the laptop to display status of the motor and transmit
parameters to LPC1769 (ex: set-speed) via UART.

But,I am very new to embedded systems. Hoping anyone help me some samples
about how to create a GUI on mini2440 and how to write a UART-driver for
this KIT to comunicate with LPC1769.

Thank you very much.

Wingz
http://wingston.wordpress.com/embedded-programming-on-the-mini2440-using...

you can check that link out to learn how to write C code and get it running
on the mini2440 in the most hassle-free and extendable way possible.. let
me know if you need any more help..