MIAC based temperature controller

For MIAC users to discuss projects, applications, and any other issues related to the MIAC unit.

Moderators: Benj, Mods

DylanBalloo
Flowcode V4 User
Posts: 73
Joined: Mon Sep 24, 2012 4:31 pm
Been thanked: 1 time
Contact:

Re: MIAC based temperature controller

Post 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..

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: MIAC based temperature controller

Post by Enamul »

You can simply use Martin's code which is ready to use
Enamul
University of Nottingham
enamul4mm@gmail.com

DylanBalloo
Flowcode V4 User
Posts: 73
Joined: Mon Sep 24, 2012 4:31 pm
Been thanked: 1 time
Contact:

Re: MIAC based temperature controller

Post by DylanBalloo »

Can you give me the link please..Thanks

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: MIAC based temperature controller

Post by Enamul »

Enamul
University of Nottingham
enamul4mm@gmail.com

DylanBalloo
Flowcode V4 User
Posts: 73
Joined: Mon Sep 24, 2012 4:31 pm
Been thanked: 1 time
Contact:

Re: MIAC based temperature controller

Post by DylanBalloo »

Thanks Enamul..the problem is that it is done with flowcode 5..and i've got flowcode 4..

DylanBalloo
Flowcode V4 User
Posts: 73
Joined: Mon Sep 24, 2012 4:31 pm
Been thanked: 1 time
Contact:

Re: MIAC based temperature controller

Post by DylanBalloo »

can you please save it as flowcode 4 for me and post it please..

DylanBalloo
Flowcode V4 User
Posts: 73
Joined: Mon Sep 24, 2012 4:31 pm
Been thanked: 1 time
Contact:

Re: MIAC based temperature controller

Post 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
Attachments
Reptile_Control.fcf
(67.45 KiB) Downloaded 397 times

DylanBalloo
Flowcode V4 User
Posts: 73
Joined: Mon Sep 24, 2012 4:31 pm
Been thanked: 1 time
Contact:

Re: MIAC based temperature controller

Post 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

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: MIAC based temperature controller

Post 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.
Enamul
University of Nottingham
enamul4mm@gmail.com

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: MIAC based temperature controller

Post 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.
Attachments
Reptile_Control.fcf
(67.43 KiB) Downloaded 380 times
Enamul
University of Nottingham
enamul4mm@gmail.com

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: MIAC based temperature controller

Post 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.
Enamul
University of Nottingham
enamul4mm@gmail.com

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: MIAC based temperature controller

Post 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
Martin

DylanBalloo
Flowcode V4 User
Posts: 73
Joined: Mon Sep 24, 2012 4:31 pm
Been thanked: 1 time
Contact:

Re: MIAC based temperature controller

Post 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

DylanBalloo
Flowcode V4 User
Posts: 73
Joined: Mon Sep 24, 2012 4:31 pm
Been thanked: 1 time
Contact:

Re: MIAC based temperature controller

Post by DylanBalloo »

Hi Martin, thanks for the information.I will do it..

DylanBalloo
Flowcode V4 User
Posts: 73
Joined: Mon Sep 24, 2012 4:31 pm
Been thanked: 1 time
Contact:

Re: MIAC based temperature controller

Post by DylanBalloo »

Hi Enamul, for flowcode V5, how can you change the simulation speed??I cant find the option "project option"

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: MIAC based temperature controller

Post 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
Martin

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: MIAC based temperature controller

Post 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.
Enamul
University of Nottingham
enamul4mm@gmail.com

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: MIAC based temperature controller

Post 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.
Attachments
Motor control1.fcf
(23.38 KiB) Downloaded 315 times
Martin

DylanBalloo
Flowcode V4 User
Posts: 73
Joined: Mon Sep 24, 2012 4:31 pm
Been thanked: 1 time
Contact:

Re: MIAC based temperature controller

Post 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

DylanBalloo
Flowcode V4 User
Posts: 73
Joined: Mon Sep 24, 2012 4:31 pm
Been thanked: 1 time
Contact:

Re: MIAC based temperature controller

Post 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

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: MIAC based temperature controller

Post 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

DylanBalloo
Flowcode V4 User
Posts: 73
Joined: Mon Sep 24, 2012 4:31 pm
Been thanked: 1 time
Contact:

Re: MIAC based temperature controller

Post by DylanBalloo »

Ok thank you Leigh, but how can I use output B and D???

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: MIAC based temperature controller

Post by LeighM »

PWM is a hardware feature, which is only available on A and C

DylanBalloo
Flowcode V4 User
Posts: 73
Joined: Mon Sep 24, 2012 4:31 pm
Been thanked: 1 time
Contact:

Re: MIAC based temperature controller

Post by DylanBalloo »

Ok thanks Leigh, when will I get the GSM module??Please

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: MIAC based temperature controller

Post by LeighM »

January- I will be in touch in the new year

Post Reply