es un trabajo espectacular, muchas gracias por el aporte, solo un detalle, te agradecería de corazón que actives la opción "subtitulos" para poder entender, los de habla hispana, la explicación. Por lo demas, espectacular trabajo :) (para poner subtitulos, dar clic en "editar" --> "Subtitulos" .. nada mas.. gracias)
Thank you very much for watching our videos. We will create Spanish subtitles for all our videos. Part 3 of this tutorial has subtitles already: ua-cam.com/video/E9KzENHTmcY/v-deo.html
You can learn more and download the tutorial source code at: www.studentcompanion.co.za/automatic-temperature-control-system-using-pic-microcontroller-mikroc/
Hi, I really have a problem with LM35. Firstly, the LM35 cannot read the temperature in Celcius by writing the code as mV = mV/10.0. However, I changed the code to mV = mV/100 instead. Secondly, the LM35 cannot read the actual temperature but it is just reading only 49.9 Celcius. Could you help me, please? Also, I would like to use the DHT11 on this project as well but I do not know how to write the code. Thank you.
What do you mean you can't read the temperature kn celcius? Did you watch this video to understand how it works: ua-cam.com/video/uXxvvrJpFVw/v-deo.html
Hi. You can use any heater or fan of your choice, but if you decide to use high power fan and heater, use the appropriate relays with ratings capable to handle this power. And remember high voltage is dangerous it can kill you. So be safe. If you have never worked with high voltage like 220V or 110V look for assistance from a certified electrician. Don't do it yourself. If you are desing this project for demonstration purposes I would suggest you use a low voltage DC motor for fan and a bulb for heater. Search in electronics shops around your area or online. You can also use any low
If I add eeprom read and write in program routine will it worked. Even power off my last setting data still retain, after power turn on No need to set again
+megreen lock yes, it will work, than you have to change how you project starts, instead of prompting the user to enter the reference temperature, the PIC should read this value from EEPROM
+StudentCompanionSA Hi There, I tries to put this routine to your program But I get ( Invalid expression error messge ) What i miss out, thank you for your good video. void code_read(){ Delay_ms(20); inTemp = EEPROM_read(0x80); } void code_write(){ EEPROM_write (0x80,inTemp ); } you did a good job !
+StudentCompanionSA Thank you....... I mean an error message come from void code_read () { after I compile the program, give an Invalid expression error. I using pic 18F series. I suspect 18F series cannot use this void code_read(){ command or otherwise
+miaritiana nandrian tu peux elaborer plus de ce que tu veux dire que ca ne veut pas marcher. Que ce que tu as changer dans le code a part le PIC? quels erreurs le compilateur genere?
Hi. Line 115 is just a mikroC function to convert a float variable to a string variable so that we can be able to display it on the LCD. You can only send strings characters to LCD.
good day, i tried building the it on the breadboard but the keypad is not working at all, example if i press 9, the lcd will show 4 or Clear. i double check all the connections
+olavi Jonas it can only be something wrong with your harware. Did you try with a different keypad? Based on the information provided we really can't guess what could be wrong. Other people have built this project successfully.
thanks for the reply, the pic that i am using is pic18f4620 because the pic 18f45k22 is not available were i am living. could that be the problem maybe
+olavi Jonas No. As long as you recompiled the code, set correctly your settings and generate a new hex file. Because you can't use an hex fike generated fkr a different PIC and expect it to work with your PIC.
I changed the code and ran it to work with a new hex. for the PIC18F4620, i simulated it in proteus and it is working fine, only when i built it on the bread board, it not working, the LCD, temperature sensor is working perfect, only the keypad, its like the numbers are running around the keypad. if but chance i pressed to numbers and then simulate it, the heater and the fan goes on when it suppose to go on.
sir where can we get the keypad used in the project means is it specific to this pic only...??? sir pls tell me the specification of keypad used...nd how much it will cost
There is nothing much to change, just choose a different PIC, configure correctly your clock and other configuration bits, then connect your inputs/outputs correctly to match your new PIC if there are diferences. The rest of the code should be more or less then same. If you encouter an error while building the code, post your error message.
@@StudentCompanion Can you please mention the things I have to change from PIC18F45K22 to PIC18F45K80 Step by step I have to submit the prototype tomorrow
I have already answered you, if you have a more specific question or if you get errors, ask the question again. Part 2 of this video shows step by step how to start a new project, select clock and other configuration bits. Follow that video
Which version of Proteus are you using? If you are using an old version especially version 7 or earlier version of 8, you might not have new PIC models including PIC18F45K22.
When Version 7 was released, it did not include PIC18F45K22 as Microchip keep on releasing new PIC models very year. You must use one of the new version 8. it will include it, or use a different PIC (older model) for your project. This project can be implemented by almost any PIC with necessary number of pins.
We appreciate all your feedback guys. Thanks
Great job well done indeed. Thanks keep them coming...
thanks
es un trabajo espectacular, muchas gracias por el aporte, solo un detalle, te agradecería de corazón que actives la opción "subtitulos" para poder entender, los de habla hispana, la explicación. Por lo demas, espectacular trabajo :) (para poner subtitulos, dar clic en "editar" --> "Subtitulos" .. nada mas.. gracias)
Thank you very much for watching our videos. We will create Spanish subtitles for all our videos. Part 3 of this tutorial has subtitles already: ua-cam.com/video/E9KzENHTmcY/v-deo.html
You can learn more and download the tutorial source code at: www.studentcompanion.co.za/automatic-temperature-control-system-using-pic-microcontroller-mikroc/
Good Job ,Well done
thank you.
+Abdallah Lalas Great indeed
thanks a lot for this tutorial.
now trying this project in practice
great!
Hi! I can't find the source code for this project.
Thanks.
+tota896 You are welcome!
Hi, I really have a problem with LM35. Firstly, the LM35 cannot read the temperature in Celcius by writing the code as mV = mV/10.0. However, I changed the code to mV = mV/100 instead. Secondly, the LM35 cannot read the actual temperature but it is just reading only 49.9 Celcius. Could you help me, please? Also, I would like to use the DHT11 on this project as well but I do not know how to write the code. Thank you.
What do you mean you can't read the temperature kn celcius? Did you watch this video to understand how it works: ua-cam.com/video/uXxvvrJpFVw/v-deo.html
If I use 3 button for increase, decrease. ok & cancel button, then what'll the program?
Hi, could you tell me where could i get heater and fan that necessary for this project. Thank you
Hi. You can use any heater or fan of your choice, but if you decide to use high power fan and heater, use the appropriate relays with ratings capable to handle this power. And remember high voltage is dangerous it can kill you. So be safe. If you have never worked with high voltage like 220V or 110V look for assistance from a certified electrician. Don't do it yourself. If you are desing this project for demonstration purposes I would suggest you use a low voltage DC motor for fan and a bulb for heater.
Search in electronics shops around your area or online.
You can also use any low
Student Companion thank you so much for your replying and suggestion
You are welcome!
If I add eeprom read and write in program routine will it worked. Even power off my last setting data still retain, after power turn on No need to set again
+megreen lock yes, it will work, than you have to change how you project starts, instead of prompting the user to enter the reference temperature, the PIC should read this value from EEPROM
+StudentCompanionSA
Hi There, I tries to put this routine to your program But I get ( Invalid expression error messge ) What i miss out, thank you for your good video.
void code_read(){
Delay_ms(20);
inTemp = EEPROM_read(0x80);
}
void code_write(){
EEPROM_write (0x80,inTemp );
}
you did a good job !
+megreen lock change your delay to delay_ms (20)
delay is written with small letters.
+StudentCompanionSA Thank you....... I mean an error message come from void code_read () { after I compile the program, give an Invalid expression error. I using pic 18F series. I suspect 18F series cannot use this void code_read(){ command or otherwise
+megreen lock can you post the whole code. I guess the problem is how you wrote your function. did you write it above or below the void main function?
What size breadboard should I use to fit all components reasonably
Hi. A normal full size 830 points breadboard can be used. But remember you can't put relays on breadboard using high power. It's very dangerous.
Thanks! And also....how big is the main power supply for the circuit
You just need 5v regulated power supply like this one without the 3.3v section: ua-cam.com/video/QhyEHQ5t0SU/v-deo.html
The link doesn't work, can you please provide an updated link for the project files?
hi what you use software to progerm the ciruit?
+naz asyraf Hi. The software used is called Proteus.
Thank
+naz asyraf you are welcome.
Do you know embedded system ?
Student Companion do you know embedded system
How can we make the reference temperature between some range (21-25)*C
Declare two reference temperature variables min and max then compare the range
j"ai changer le pic ,j"ai utiliser avec un PIC18F4520 et j"ai bien suivie le datasheet mais ca veut pas marcher...c"est qw le probleme?
+miaritiana nandrian tu peux elaborer plus de ce que tu veux dire que ca ne veut pas marcher. Que ce que tu as changer dans le code a part le PIC? quels erreurs le compilateur genere?
bah,ca dit [erreur de bits]...j'ai changer le code micro c est ca montre toujour une erreur
+miaritiana nandrian coller ici tout les erreurs generees
ca y'est je l"ai regler ..merci.derniere question: vous utiliser quelle batterie pr alimenter votre projet?
+miaritiana nandrian ca doit etre alimenter par 5V courant continu
Hello! I am Haftamu, I don't get line 115 in the automatic temperature control mikroc code which is Actual temp, how can I get actual temp value?
Hi. Line 115 is just a mikroC function to convert a float variable to a string variable so that we can be able to display it on the LCD.
You can only send strings characters to LCD.
Thank you for replaying!
Thank you for replaying!
So, what is the difference between the Temp ref and Actual temp? does it mean we can find the Actual temp from Temp ref value?
You are welcome
good day, i tried building the it on the breadboard but the keypad is not working at all, example if i press 9, the lcd will show 4 or Clear. i double check all the connections
+olavi Jonas it can only be something wrong with your harware. Did you try with a different keypad? Based on the information provided we really can't guess what could be wrong. Other people have built this project successfully.
thanks for the reply, the pic that i am using is pic18f4620 because the pic 18f45k22 is not available were i am living. could that be the problem maybe
+olavi Jonas No. As long as you recompiled the code, set correctly your settings and generate a new hex file. Because you can't use an hex fike generated fkr a different PIC and expect it to work with your PIC.
+olavi Jonas Have you tried simulating your new code with your PIC18F4620 and see if it's working well in simulation?
I changed the code and ran it to work with a new hex. for the PIC18F4620, i simulated it in proteus and it is working fine, only when i built it on the bread board, it not working, the LCD, temperature sensor is working perfect, only the keypad, its like the numbers are running around the keypad. if but chance i pressed to numbers and then simulate it, the heater and the fan goes on when it suppose to go on.
Good day. I have a question. What will be the changes in the code if i use PIC16F877a for this project?
Have a look at this thread: www.studentcompanion.co.za/forums/topic/is-there-any-changes-on-the-code-if-i-change-it-to-pic16f877a/
If you need more info, ask specific questions we will assist you
That link is about a different project. For this, you have given the codes. What will be the changes to the codes if it will be changed to PIC16F877a.
Also, will it affect the codes if i change it to PIC16F877a?
Here is the discussion: www.studentcompanion.co.za/forums/topic/can-i-use-pic16f877a-as-the-microcontroller-for-automatic-temperature-control/
sir where can we get the keypad used in the project means is it specific to this pic only...??? sir pls tell me the specification of keypad used...nd how much it will cost
the keypad is not specific to this PIC any 4x3 keypad can be used.
you can get it from Electronic shops in your area. we can't tell you the price because we don't know how much they charge you in your area
can i do this project on veroboard by same way as yours?
+soumya palkundu yes you can
ok and in your diagram do you connect pin 2 of microcontroller with pin 2 of lm35 sensor?
soumya palkundu this video explain how to connect LM35: ua-cam.com/video/lrMXX-qBGlU/v-deo.html
CAN NOT DOWNLOAD CODE
how we can replace this pic by pic18f45k80 ??
There is nothing much to change, just choose a different PIC, configure correctly your clock and other configuration bits, then connect your inputs/outputs correctly to match your new PIC if there are diferences.
The rest of the code should be more or less then same.
If you encouter an error while building the code, post your error message.
@@StudentCompanion
Can you please mention the things I have to change from
PIC18F45K22 to PIC18F45K80
Step by step
I have to submit the prototype tomorrow
I have already answered you, if you have a more specific question or if you get errors, ask the question again.
Part 2 of this video shows step by step how to start a new project, select clock and other configuration bits. Follow that video
i can't find pic 18f45k22 , where is the problem ?
+nawel ham find it where? Can you be specific with your question? In Proteus, mikroC, in your electronic shop, etc. ?
i can't find it in Proteus
Which version of Proteus are you using? If you are using an old version especially version 7 or earlier version of 8, you might not have new PIC models including PIC18F45K22.
i have Proteus version 7 thanks for replying me
When Version 7 was released, it did not include PIC18F45K22 as Microchip keep on releasing new PIC models very year. You must use one of the new version 8. it will include it, or use a different PIC (older model) for your project. This project can be implemented by almost any PIC with necessary number of pins.
Pls can upload an inverter design using microcontrollers
Maybe in the future but we are planning tutorials on DAC with PIC soon which can be used to generate sine wave.
@@StudentCompanion I really need this tutorial on 50HZ sinewave generating with pic...Know the basic concept..