Page 4 of 5

Re: MIAC based temperature controller

Posted: Mon Dec 10, 2012 12:48 pm
by DylanBalloo
Can I build one??You know I got a time constraint...If I buy one online it will take time to reach me..thats why..

Re: MIAC based temperature controller

Posted: Mon Dec 10, 2012 12:53 pm
by Enamul
You can simply use Martin's code which is ready to use

Re: MIAC based temperature controller

Posted: Mon Dec 10, 2012 3:48 pm
by DylanBalloo
Can you give me the link please..Thanks

Re: MIAC based temperature controller

Posted: Mon Dec 10, 2012 3:51 pm
by Enamul

Re: MIAC based temperature controller

Posted: Mon Dec 10, 2012 3:54 pm
by DylanBalloo
Thanks Enamul..the problem is that it is done with flowcode 5..and i've got flowcode 4..

Re: MIAC based temperature controller

Posted: Mon Dec 10, 2012 3:55 pm
by DylanBalloo
can you please save it as flowcode 4 for me and post it please..

Re: MIAC based temperature controller

Posted: Mon Dec 10, 2012 6:08 pm
by DylanBalloo
Hello Enamul, I'm trying to run this program on flowcode but I cant find the panel where there is the miac displayed.can you please help me.
thank you

Re: MIAC based temperature controller

Posted: Thu Dec 13, 2012 5:35 am
by DylanBalloo
Hello Enamul, for the motor output, how can I make is spin in one direction for one condition and spin the other way round for another condition??
Thank you

Re: MIAC based temperature controller

Posted: Fri Dec 14, 2012 3:05 pm
by Enamul
can you please save it as flowcode 4 for me and post it please..
Hi
Can you please request Martin for that? As he has written the code he code have FCv4 version or might be able to change that to FCv4. It's really time consuming task to convert code.

Re: MIAC based temperature controller

Posted: Fri Dec 14, 2012 3:08 pm
by Enamul
Hello Enamul, I'm trying to run this program on flowcode but I cant find the panel where there is the miac displayed.can you please help me.thank you
Click view>panel...you will see panel.

Re: MIAC based temperature controller

Posted: Fri Dec 14, 2012 3:15 pm
by Enamul
for the motor output, how can I make is spin in one direction for one condition and spin the other way round for another condition??
Hi
What kind of motor you are trying to use..please post details whenever you ask something.

Re: MIAC based temperature controller

Posted: Fri Dec 14, 2012 5:10 pm
by medelec35
DylanBalloo wrote:can you please save it as flowcode 4 for me and post it please..
Hi Dylan,
You download the free version of Flowcode V5 here:
http://www.matrixmultimedia.com/lc_index.php?p=25

Once installed, you can run simulation to check if it's what you’re after.

You would also be able to use V5 to create a V4 version.

For copying formulas, just double click on the component e.g calculation box
Copy using copy (Edit menu) or Ctrl & C
Create a new calculation box in V4 then just select paste (Edit menu) or Ctrl & V
You can copy and paste variables too.

Martin

Re: MIAC based temperature controller

Posted: Fri Dec 14, 2012 7:04 pm
by DylanBalloo
Hello enamul, regarding the motor its a 12V dc motor, I've tested it with a battery when i respect the polarity in connect it, it spins in one direction, when i reverse the polarity it spins in another direction. so i want to connect the motor to the pwm output of the miac,and I want it to spin in one direction for some command and spin in another direction for other command.how can I do that??
Thank you

Re: MIAC based temperature controller

Posted: Fri Dec 14, 2012 7:06 pm
by DylanBalloo
Hi Martin, thanks for the information.I will do it..

Re: MIAC based temperature controller

Posted: Fri Dec 14, 2012 7:31 pm
by DylanBalloo
Hi Enamul, for flowcode V5, how can you change the simulation speed??I cant find the option "project option"

Re: MIAC based temperature controller

Posted: Fri Dec 14, 2012 8:13 pm
by medelec35
Hi Dylan,
Your welcome.
DylanBalloo wrote:how can you change the simulation speed??I cant find the option "project option"
Go to 'Build' menu.
Select Project options.
From there you can change simulation speed.
DylanBalloo wrote: so i want to connect the motor to the PWM output of the MIAC and I want it to spin in one direction for some command and spin in another direction for other command.how can I do that??
Thank you
How about using two PWM outputs (Channels A and C) that connects to your motor (If motor draws too much current then use separate transistor drivers as you don't want to damage MIAC outputs.
What you could do is enable PWM on ch A and set channel C to 0% duty.
Then motor will turn in one direction depending on PWM duty.
Then set ch C to PWM and ch A to 0% duty output.
Then motor should rotate in the opposite direction.
I will find a motor and see if that works ok.

Martin

Re: MIAC based temperature controller

Posted: Fri Dec 14, 2012 8:21 pm
by Enamul
Hi
You will need H-bridge to control the direction of motor. You can have look in your lab there might be some ic or you can make using mosfet if motor's current rating is high.

Re: MIAC based temperature controller

Posted: Sat Dec 15, 2012 1:27 am
by medelec35
Something like this Flowchart for small low power motors.
For motors that will exceed maximum current of a Miac, then I totally agree with Enamul about H-bridge.

If your not 100% sure if MIAC can handle low power motor or not then better to be safe than sorry and go for H-bridge route anyway.

Re: MIAC based temperature controller

Posted: Sat Dec 15, 2012 6:38 pm
by DylanBalloo
Hi Martin and Enamul, I think I'll go for the H-Bridge Circuit regarding the motor.I'll keep you inform of the progress.Thank you both for your precious help

Re: MIAC based temperature controller

Posted: Thu Dec 20, 2012 8:39 am
by DylanBalloo
Hello everyone,
regarding the H-bridge, it requires two inputs, I was thinking to put the output A and B from MIAC into the input of the H-bridge. Is that good?
I am trying to create a small program for pwm using flowcode 5 but in flowcode 4 when you enable pwm, you can choose the number of pwm to be used using the nldx,but in flowcode 5 i cant find nldx. how to enable either one of the output A or B using pwm?
Thank you

Re: MIAC based temperature controller

Posted: Thu Dec 20, 2012 9:40 am
by LeighM
Hi Dylan
In Flowcode v5, chose the “MIAC” project, then select “MIAC” from the “MIAC Module” drop down menu.
Then select PWM from the “Mechatronics” drop down menu.
Select the PWM component, then “Ext Properties”, select PWM Channel 1 or 2
Channel 1 outputs on A, channel 2 outputs on C
Regards,
Leigh

Re: MIAC based temperature controller

Posted: Thu Dec 20, 2012 10:03 am
by DylanBalloo
Ok thank you Leigh, but how can I use output B and D???

Re: MIAC based temperature controller

Posted: Thu Dec 20, 2012 10:18 am
by LeighM
PWM is a hardware feature, which is only available on A and C

Re: MIAC based temperature controller

Posted: Thu Dec 20, 2012 11:16 am
by DylanBalloo
Ok thanks Leigh, when will I get the GSM module??Please

Re: MIAC based temperature controller

Posted: Thu Dec 20, 2012 11:30 am
by LeighM
January- I will be in touch in the new year