I am referring here MIAC datasheet... 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.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
MIAC based temperature controller
- 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
-
- Flowcode V4 User
- Posts: 73
- Joined: Mon Sep 24, 2012 4:31 pm
- Been thanked: 1 time
- Contact:
Re: MIAC based temperature controller
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
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
-
- Flowcode V4 User
- Posts: 73
- Joined: Mon Sep 24, 2012 4:31 pm
- Been thanked: 1 time
- Contact:
Re: MIAC based temperature controller
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??
- 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
I think it should be fine. You should be OK in driving FAN using MIAC Relay.I can't find about the fan's current....How can I check the current of the fan??
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.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??
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
- 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
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.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...
-
- Flowcode V4 User
- Posts: 73
- Joined: Mon Sep 24, 2012 4:31 pm
- Been thanked: 1 time
- Contact:
Re: MIAC based temperature controller
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??
regarding the LM35Dz how can I know which temperature is giving what voltage..and what adc value I should put??
- 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
From LM35Dz data sheet we know it has linear scale factor which is as followsregarding the LM35Dz how can I know which temperature is giving what voltage..and what adc value I should put??
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.Linear + 10.0 mV/°C scale factor
- 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
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).
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.
- 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
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.
-
- Flowcode V4 User
- Posts: 73
- Joined: Mon Sep 24, 2012 4:31 pm
- Been thanked: 1 time
- Contact:
Re: MIAC based temperature controller
Yes I'll be very careful while dealing with the high voltage.,..Thanks everyone...
-
- Flowcode V4 User
- Posts: 73
- Joined: Mon Sep 24, 2012 4:31 pm
- Been thanked: 1 time
- Contact:
Re: MIAC based temperature controller
Enamul dont you have a sample program where you use the LM35Dz
- Enamul
- Posts: 1772
- Joined: Mon Mar 05, 2012 11:34 pm
- Location: Nottingham, UK
- Has thanked: 271 times
- Been thanked: 814 times
- Contact:
-
- Flowcode V4 User
- Posts: 73
- Joined: Mon Sep 24, 2012 4:31 pm
- Been thanked: 1 time
- Contact:
-
- Flowcode V4 User
- Posts: 73
- Joined: Mon Sep 24, 2012 4:31 pm
- Been thanked: 1 time
- Contact:
Re: MIAC based temperature controller
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
Thank you Enamul
- Attachments
-
- PIR(Analogue).fcf
- (5.5 KiB) Downloaded 284 times
- 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
In the code you didn't use adc rather you have used digital input. Do you want me to correct it to analog?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
- 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
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
-
- Flowcode V4 User
- Posts: 73
- Joined: Mon Sep 24, 2012 4:31 pm
- Been thanked: 1 time
- Contact:
Re: MIAC based temperature controller
Thanks for the programm..
Yes please do correct it for me please
Yes please do correct it for me please
-
- Flowcode V4 User
- Posts: 73
- Joined: Mon Sep 24, 2012 4:31 pm
- Been thanked: 1 time
- Contact:
Re: MIAC based temperature controller
Ya think the callibration of the adc value is not right..I'll try to play with it and get it right..thanks again.
- 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
Here is the corrected PIR code...
- Attachments
-
- PIR_Analogue.fcf
- (5.5 KiB) Downloaded 302 times
-
- Flowcode V4 User
- Posts: 73
- Joined: Mon Sep 24, 2012 4:31 pm
- Been thanked: 1 time
- Contact:
-
- Flowcode V4 User
- Posts: 73
- Joined: Mon Sep 24, 2012 4:31 pm
- Been thanked: 1 time
- Contact:
Re: MIAC based temperature controller
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.....
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
- 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
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.
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.
-
- Flowcode V4 User
- Posts: 73
- Joined: Mon Sep 24, 2012 4:31 pm
- Been thanked: 1 time
- Contact:
Re: MIAC based temperature controller
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
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
- 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
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
- 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
Hi
You can get something seems made for you by Martin...Clock using MIAC
http://www.matrixmultimedia.com/mmforum ... 119#p43119
You can get something seems made for you by Martin...Clock using MIAC
http://www.matrixmultimedia.com/mmforum ... 119#p43119