MIAC based temperature controller

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

Moderators: Benj, Mods

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 relay output in the miac,that is Q1,Q2,Q3,Q4....regarding the fan, it is a normal home fan,which is rated at 220V and 50Hz
I am referring here MIAC datasheet...
rekay.PNG
(48.34 KiB) Downloaded 9195 times
This is saying you can switch up to 8A at 250Vac. Can you please check the FAN maximum current? I know that is much less than 8A that could be maximum 1A may be even less than that. But it worth checking. If it is less than 1 A, you can easily switch FAN using MIAC relay.
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 »

I can't find about the fan's current....How can I check the current of the fan??

Regarding the LM35Dz.....How can I connect it to the miac...the output voltage is in mV...and is too low for the miac..can you tell me how to proceed with it please...
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 »

You know for the fan I wanted to connect the supply voltage from the socket to the output relay and from the outpout relay to the MIAC..that is connect the live from a socket to the relay and from the relay to the fan?? can this be done??

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 »

I can't find about the fan's current....How can I check the current of the fan??
I think it should be fine. You should be OK in driving FAN using MIAC Relay.
You know for the fan I wanted to connect the supply voltage from the socket to the output relay and from the output relay to the MIAC..that is connect the live from a socket to the relay and from the relay to the fan?? can this be done??
Here is a diagram for how to connect FAN with AC socket and MIAC without regulator if it is celling FAN and also true for table FAN.

Edit: Considering IEE standard and info from Stuart, I have changed the L and N opposite way. Now L will always be present in MIAC relay input.
Attachments
FAN.PNG
(7.65 KiB) Downloaded 9171 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 »

Regarding the LM35Dz.....How can I connect it to the miac...the output voltage is in mV...and is too low for the miac..can you tell me how to proceed with it please...
Yes you are right it can't be used directly. Miac's datasheet says for 0 to 12V analog input ADC value varies from 0 to 240. I think you can simply use a non-inverting amplifier with the gain of 10 to drive MIAC adc input for LM35Dz.
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 »

Great I was thinking to connect the fan like that...

regarding the LM35Dz how can I know which temperature is giving what voltage..and what adc value I should put??

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 »

regarding the LM35Dz how can I know which temperature is giving what voltage..and what adc value I should put??
From LM35Dz data sheet we know it has linear scale factor which is as follows
Linear + 10.0 mV/°C scale factor
That means every 10 mV change in output caused by 1 deg temp rise. If we amplify the output by 10, in that case it will be every 100mV causes the change in temp.
Enamul
University of Nottingham
enamul4mm@gmail.com

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 »

Thanks for all your input on this Enamul.
I would just like to repeat what you said earlier about taking extreme care with Mains connections.
Ensure the wiring up is done with the power removed and that it is suitably insulated against accidental contact.
Also note that if you switch the Neutral side, the wire from the Fan will be Live at all times (apart from when the fan is on).
Last edited by LeighM on Wed Dec 05, 2012 10:53 am, 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: MIAC based temperature controller

Post by Enamul »

Yes..that's absolutely right. I did neutral switching intentionally to avoid dealing with L in MIAC. Although anything could be dangerous if not remain careful.
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 »

Yes I'll be very careful while dealing with the high voltage.,..Thanks everyone...

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 »

Enamul dont you have a sample program where you use the LM35Dz

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 »

Yes, I have. I will post for you
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 »

Ok thank you Enamul

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 can you please check this program,For adc value not between 50<Temp<100 relay relay 2 should be on...but relay 1 is remaining on

Thank you Enamul
Attachments
PIR(Analogue).fcf
(5.5 KiB) Downloaded 284 times

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 check this program,For adc value not between 50<Temp<100 relay relay 2 should be on...but relay 1 is remaining on
In the code you didn't use adc rather you have used digital input. Do you want me to correct it to analog?
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 »

Here is a simple code for LM35Dz..You might need to tweak little to get here right temp.
Attachments
LM35Dz_MIAC.fcf
(7 KiB) Downloaded 325 times
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 for the programm..
Yes please do correct it for me 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 »

Ya think the callibration of the adc value is not right..I'll try to play with it and get it right..thanks again.

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 »

Here is the corrected PIR code...
Attachments
PIR_Analogue.fcf
(5.5 KiB) Downloaded 302 times
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 »

Thank you Enamul

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 have a small request to make..
Do you have a program to set time and display it??
I'm trying to look at the program underfloor heating but cant understand it properly..
Can you please post a program where there is only time only or please modify this program to get only the time display..i'm trying to do it but in vain...;( is it necessary to have a module having RTC in it to run the program of time????
Thank you Enamul for your precious help.....
Attachments
MIAC_Underfloor_v1.1.fcf
Here is the program i'm telling you,can you please modify it..
(166.39 KiB) Downloaded 284 times

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
I believe if you need accurate time and date in the temp controller you should use RTC module not just TMR based timing which is used in the code you attached. If you decide to use just TMR based timing I can post TMR0 based clock; but if you want to interface RTC module I can give you the link of forum where I have shown how to interface RTC module with MIAC.
Please let me know which one you want.
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 »

I dont have the RTC module, dont think I will get it,is RTC found in the GSM module??
Can you please post the TMR0 based clock, and I'll have a look at the RTC wec site in case I get an RTC module..
Thank you loads

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 »

RTC modules are very cheap may be 10$ in USA. You can buy of your own as that will maintain real time but TMR0 will not maintain real time.
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 »

Hi
You can get something seems made for you by Martin...Clock using MIAC
http://www.matrixmultimedia.com/mmforum ... 119#p43119
Enamul
University of Nottingham
enamul4mm@gmail.com

Post Reply