# HELP needed, Hbridge design, and µC code for DC motor

Discussion in 'Embedded Systems and Microcontrollers' started by iceman11`, May 4, 2007.

1. ### iceman11` Thread Starter Active Member

May 4, 2007
39
0
howzit guys, im kinda new to design, and i got the following as a universtiy project.any help advice, suggestions etc would be extremely useful.
thanks in advance.
Here is the QuestionL==:

2) Characterisation of DC motor: Measure the no load characteristic of motor-tachometer set. Simulink model of motor and tachometer

3) H-bridge design: Design an H-bridge to supply the motor from a 12 V source. Test behaviour using Multisim and lay out a PC-board.

4) Micro-controller code: PWM, A/D, controller. You should use the A/D conversion time as the sampling rate of the PI controller.

You will implement a digital proportional and integral (PI) controller.
The motor will draw 1A in locked-rotor condition.

Well thats it.
i await all your guys great advice,
thanks again,
Electrical Engineering student,University of Kwazulu Natal, SA

2. ### iceman11` Thread Starter Active Member

May 4, 2007
39
0
o ya, i almost forgot the main part...

"Design, build and test a speed control system for a 12 V, 0.5 A dc motor using a second motor as a tachometer. "

3. ### thingmaker3 Retired Moderator

May 16, 2005
5,072
6
What have you done so far on your project, and where are you getting stuck?

4. ### iceman11` Thread Starter Active Member

May 4, 2007
39
0
Yo, we have some code done to generate the PWM, also we have started working on our Hbridge. if u wanna c the code, pls can i have yor email address.ty.

5. ### iceman11` Thread Starter Active Member

May 4, 2007
39
0
Please could you help me with the Plant Identifacion Techniques needed to implement a digital proportional and integral (PI) controller.

u(t) is the controller output (plant input)

e(t) is the controller input (error between the command and the measured plant output)

kp is the controller proportional gain selected by the designer.

Ti is the controller reset time selected by the designer.

In discrete time, with sampling rate, h, this may be implemented by the algorithm,

Some measures are required to ensure that the controller output ui+1 does not overflow or underflow.