PID project

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

Post Reply
bradss
Posts: 13
Joined: Fri Nov 16, 2012 4:49 pm
Has thanked: 6 times
Contact:

PID project

Post by bradss »

Kkkk
Last edited by bradss on Wed Apr 17, 2013 9:09 pm, edited 3 times in total.

User avatar
Enamul
Posts: 1772
Joined: Mon Mar 05, 2012 11:34 pm
Location: Nottingham, UK
Has thanked: 271 times
Been thanked: 814 times
Contact:

Re: PID project

Post by Enamul »

That's sound interesting to me. I am interested to help you. If you start with simple control and then improve that to PID and with the simple control you can have feedback. Let me introduce with your stuff more in details so that I can plan for you.
Enamul
University of Nottingham
enamul4mm@gmail.com

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: PID project

Post by Benj »

Hello,

We will be releasing a DSP library for Flowcode in January which includes a module for PID control.

In the mean time I think there is an article on PID control in the Articles section of our learning centre.

bradss
Posts: 13
Joined: Fri Nov 16, 2012 4:49 pm
Has thanked: 6 times
Contact:

Re: PID project

Post by bradss »

Thanks guys I will start off with some simple control and progress from there as you suggested Enamul, I will let know how I progress :D

nc56
Posts: 60
Joined: Thu Nov 15, 2012 1:21 pm
Has thanked: 14 times
Been thanked: 4 times
Contact:

Re: PID project

Post by nc56 »

what's the power of your motor ?

bradss
Posts: 13
Joined: Fri Nov 16, 2012 4:49 pm
Has thanked: 6 times
Contact:

Re: PID project

Post by bradss »

The motor is 0 -24 volts 16 watt. And the techo is feeding back a voltage of 5 volts at full speed
Last edited by bradss on Sat Feb 09, 2013 2:12 pm, edited 1 time in total.

User avatar
Enamul
Posts: 1772
Joined: Mon Mar 05, 2012 11:34 pm
Location: Nottingham, UK
Has thanked: 271 times
Been thanked: 814 times
Contact:

Re: PID project

Post by Enamul »

Hi

Can you please post the datasheet for the motor or post the link of the datasheet so that I can have a look? I will post some starting program for you. I think you mean tech output voltage varies with speed.
Enamul
University of Nottingham
enamul4mm@gmail.com

bradss
Posts: 13
Joined: Fri Nov 16, 2012 4:49 pm
Has thanked: 6 times
Contact:

Re: PID project

Post by bradss »

Hi what I meant was I applied a 5 volt signal to the motor and measured the voltage I was feedback from the tachometer which was 1.7 volts.
the motor I am using is a feedback rig with tachometer attached, here are the specs I found;

DC MOTOR: VOLTAGE: 24V
NOMINAL CURRENT: 1A
TORQUE CONSTANT: 0.06 Nm/A
GENERATED POWER: 16 W
MAX SPEED: 3000 RPM
TACHO METER: RANGE : 0-2000 RPM
TORGUE: 50 gr.cm
VOLTAGE SUPPLY: INPUT: 220VAC,50Hz
OUTPUT DC: +15V,-15V
+24 VOLTS TO MOTOR
Last edited by bradss on Sat Feb 09, 2013 2:13 pm, edited 1 time in total.

User avatar
Enamul
Posts: 1772
Joined: Mon Mar 05, 2012 11:34 pm
Location: Nottingham, UK
Has thanked: 271 times
Been thanked: 814 times
Contact:

Re: PID project

Post by Enamul »

Hi
I am confused by your data...
DC MOTOR: VOLTAGE: 24V
That's operating voltage of the motor.
VOLTAGE SUPPLY: INPUT: 220VAC,50Hz
OUTPUT DC: +15V,-15V
What is it then?
Enamul
University of Nottingham
enamul4mm@gmail.com

bradss
Posts: 13
Joined: Fri Nov 16, 2012 4:49 pm
Has thanked: 6 times
Contact:

Re: PID project

Post by bradss »

Sorry I was not very clear in my last post; 220 V AC is the mains power for the feed back rig itself. The motor it self is 24 volt DC. With a nominal current of 1A and generates 16W. The rig has an input for the signal to the motor, a + and -15 volt Dc output and an output from the tachometer.

bradss
Posts: 13
Joined: Fri Nov 16, 2012 4:49 pm
Has thanked: 6 times
Contact:

Re: PID project

Post by bradss »

I will send info and pictures to your email as could not post it here.

User avatar
Enamul
Posts: 1772
Joined: Mon Mar 05, 2012 11:34 pm
Location: Nottingham, UK
Has thanked: 271 times
Been thanked: 814 times
Contact:

Re: PID project

Post by Enamul »

Thanks I will have a look in your email
Enamul
University of Nottingham
enamul4mm@gmail.com

bradss
Posts: 13
Joined: Fri Nov 16, 2012 4:49 pm
Has thanked: 6 times
Contact:

Re: PID project

Post by bradss »

thanks
Last edited by bradss on Mon Sep 16, 2013 9:58 pm, edited 1 time in total.

dazz
Posts: 1314
Joined: Sun Jan 15, 2012 3:15 pm
Has thanked: 474 times
Been thanked: 458 times
Contact:

Re: PID project

Post by dazz »

Hi
try this link and check the example file http://www.matrixmultimedia.com/article.php?a=56
or hold fire a tiny bit as Benj replied in his post the next release should have dsp functionality

Regards
Dazz
To sign up to the V5 forum follow this link http://www.matrixmultimedia.com/forum_upgrades.php

bradss
Posts: 13
Joined: Fri Nov 16, 2012 4:49 pm
Has thanked: 6 times
Contact:

Re: PID project

Post by bradss »

tanks daz, I will check that out, mite not be able to wait due to time constraints,but do you know when it will be relased and how will i access it once it is?

kersing
Valued Contributor
Valued Contributor
Posts: 2045
Joined: Wed Aug 27, 2008 10:31 pm
Location: Netherlands
Has thanked: 553 times
Been thanked: 1081 times
Contact:

Re: PID project

Post by kersing »

Flowcode 5.5 has been released earlier today... See this message for details on upgrading.
“Integrity is doing the right thing, even when no one is watching.”

― C.S. Lewis

bradss
Posts: 13
Joined: Fri Nov 16, 2012 4:49 pm
Has thanked: 6 times
Contact:

Re: PID project

Post by bradss »

Hi Benj,

can't seem to open your examples you posted on PID control. would it be possible for you to repost them as I cant use the new dsp as i only have access to version 4 and my project has stalled :(
thanks

bradss
Posts: 13
Joined: Fri Nov 16, 2012 4:49 pm
Has thanked: 6 times
Contact:

Re: PID project

Post by bradss »

Hi Guys,

would somebody be kind enough to have breeze over my code, using version 4, have the circuit built but having tuning problems, works fine without feedback so guessing the ciruits ok and possible a problem with my code which i can not find. thanks

Post Reply