LMD18200 Question - Motor Controller

Status
Not open for further replies.

evilopinions

New Member
Hi

I am working on a simple motor controller using LMD18200 , Pic 16F628A a infrared sensor a 12 V motor and a schmidt trigger.

Here are my Pic connections :

1 - PWM output (RA 2)
2 - Brake
3 - ----
4 - Button
5 - Ground
6 - Sensor Input
7 - ---
8 - ---
9 - Direction output
10 , 11 ,12 , 13 - LCD databits
14 - VCC
15 - Button
16 - Button
17 - LCD ( Register select)
18 - LCD ( Enable signal)

I need to write a source code in MICro C probably in order to control the motor speed and direction. I should be able to request certain amount of revolutions and the motor should be able to abide by the request.

I am using a sensor to detect the no of revs of the motor by using two timers ----one to keep track of the time and one for counting pulses to decide the no of revs undergone (speed)

Can someone point me to resources or get me started on this.

A
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…