11- Project 2 Automatic Temperature Control, part 1 | mikroC Pro for PIC Tutorial

Поділитися
Вставка
  • Опубліковано 15 гру 2024

КОМЕНТАРІ • 154

  • @studentcompanionsastudentc4850
    @studentcompanionsastudentc4850 9 років тому +4

    We appreciate all your feedback guys. Thanks

  • @keshenanaidu7160
    @keshenanaidu7160 9 років тому +5

    Great job well done indeed. Thanks keep them coming...

  • @nandoherio3508
    @nandoherio3508 7 років тому +1

    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)

    • @StudentCompanion
      @StudentCompanion  7 років тому +1

      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

  • @StudentCompanion
    @StudentCompanion  9 років тому +5

    You can learn more and download the tutorial source code at: www.studentcompanion.co.za/automatic-temperature-control-system-using-pic-microcontroller-mikroc/

  • @didouwind
    @didouwind 9 років тому +5

    Good Job ,Well done

  • @sakibhasan9077
    @sakibhasan9077 6 років тому +1

    thanks a lot for this tutorial.

  • @dsimiyu520
    @dsimiyu520 8 років тому +3

    now trying this project in practice

  • @lausaangelgreecec.7062
    @lausaangelgreecec.7062 2 роки тому +1

    Hi! I can't find the source code for this project.

  • @tota896
    @tota896 9 років тому +4

    Thanks.

  • @sirideeply1697
    @sirideeply1697 6 років тому +1

    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.

    • @StudentCompanion
      @StudentCompanion  6 років тому +1

      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

  • @mimunna2459
    @mimunna2459 Рік тому

    If I use 3 button for increase, decrease. ok & cancel button, then what'll the program?

  • @sirideeply1697
    @sirideeply1697 6 років тому +1

    Hi, could you tell me where could i get heater and fan that necessary for this project. Thank you

    • @StudentCompanion
      @StudentCompanion  6 років тому +1

      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

    • @sirideeply1697
      @sirideeply1697 6 років тому +1

      Student Companion thank you so much for your replying and suggestion

    • @StudentCompanion
      @StudentCompanion  6 років тому +2

      You are welcome!

  • @megreenlock9002
    @megreenlock9002 9 років тому +3

    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

    • @StudentCompanion
      @StudentCompanion  9 років тому +2

      +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

    • @megreenlock9002
      @megreenlock9002 9 років тому +2

      +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 !

    • @StudentCompanion
      @StudentCompanion  9 років тому +2

      +megreen lock change your delay to delay_ms (20)
      delay is written with small letters.

    • @megreenlock9002
      @megreenlock9002 9 років тому +2

      +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

    • @StudentCompanion
      @StudentCompanion  9 років тому +1

      +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?

  • @MrTreygo
    @MrTreygo 5 років тому +1

    What size breadboard should I use to fit all components reasonably

    • @StudentCompanion
      @StudentCompanion  5 років тому +1

      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.

    • @MrTreygo
      @MrTreygo 5 років тому +1

      Thanks! And also....how big is the main power supply for the circuit

    • @StudentCompanion
      @StudentCompanion  5 років тому +1

      You just need 5v regulated power supply like this one without the 3.3v section: ua-cam.com/video/QhyEHQ5t0SU/v-deo.html

  • @NSH_2814
    @NSH_2814 Рік тому

    The link doesn't work, can you please provide an updated link for the project files?

  • @nazasyraf719
    @nazasyraf719 7 років тому +2

    hi what you use software to progerm the ciruit?

  • @mulealexa986
    @mulealexa986 3 роки тому +1

    How can we make the reference temperature between some range (21-25)*C

    • @StudentCompanion
      @StudentCompanion  3 роки тому

      Declare two reference temperature variables min and max then compare the range

  • @miaritiananandrian4923
    @miaritiananandrian4923 6 років тому +1

    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?

    • @StudentCompanion
      @StudentCompanion  6 років тому +1

      +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?

    • @miaritiananandrian4923
      @miaritiananandrian4923 6 років тому +1

      bah,ca dit [erreur de bits]...j'ai changer le code micro c est ca montre toujour une erreur

    • @StudentCompanion
      @StudentCompanion  6 років тому +1

      +miaritiana nandrian coller ici tout les erreurs generees

    • @miaritiananandrian4923
      @miaritiananandrian4923 6 років тому +1

      ca y'est je l"ai regler ..merci.derniere question: vous utiliser quelle batterie pr alimenter votre projet?

    • @StudentCompanion
      @StudentCompanion  6 років тому

      +miaritiana nandrian ca doit etre alimenter par 5V courant continu

  • @haftamumekonnen4666
    @haftamumekonnen4666 7 років тому +1

    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?

    • @StudentCompanion
      @StudentCompanion  7 років тому +2

      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.

    • @haftamumekonnen4666
      @haftamumekonnen4666 7 років тому +1

      Thank you for replaying!

    • @haftamumekonnen4666
      @haftamumekonnen4666 7 років тому +1

      Thank you for replaying!

    • @haftamumekonnen4666
      @haftamumekonnen4666 7 років тому +1

      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?

    • @StudentCompanion
      @StudentCompanion  7 років тому +1

      You are welcome

  • @olavijonas1110
    @olavijonas1110 7 років тому +1

    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

    • @StudentCompanion
      @StudentCompanion  7 років тому +1

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

    • @olavijonas1110
      @olavijonas1110 7 років тому +1

      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

    • @StudentCompanion
      @StudentCompanion  7 років тому +1

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

    • @StudentCompanion
      @StudentCompanion  7 років тому +1

      +olavi Jonas Have you tried simulating your new code with your PIC18F4620 and see if it's working well in simulation?

    • @olavijonas1110
      @olavijonas1110 7 років тому +1

      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.

  • @JH-vj9ys
    @JH-vj9ys 5 років тому +1

    Good day. I have a question. What will be the changes in the code if i use PIC16F877a for this project?

    • @StudentCompanion
      @StudentCompanion  5 років тому

      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/

    • @StudentCompanion
      @StudentCompanion  5 років тому +2

      If you need more info, ask specific questions we will assist you

    • @JH-vj9ys
      @JH-vj9ys 5 років тому +2

      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.

    • @JH-vj9ys
      @JH-vj9ys 5 років тому +1

      Also, will it affect the codes if i change it to PIC16F877a?

    • @StudentCompanion
      @StudentCompanion  5 років тому +2

      Here is the discussion: www.studentcompanion.co.za/forums/topic/can-i-use-pic16f877a-as-the-microcontroller-for-automatic-temperature-control/

  • @Harpreet-rl1pz
    @Harpreet-rl1pz 8 років тому +2

    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

    • @StudentCompanion
      @StudentCompanion  8 років тому +1

      the keypad is not specific to this PIC any 4x3 keypad can be used.

    • @StudentCompanion
      @StudentCompanion  8 років тому +2

      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

  • @soumyapalkundu7387
    @soumyapalkundu7387 7 років тому +1

    can i do this project on veroboard by same way as yours?

    • @StudentCompanion
      @StudentCompanion  7 років тому +1

      +soumya palkundu yes you can

    • @soumyapalkundu7387
      @soumyapalkundu7387 7 років тому +1

      ok and in your diagram do you connect pin 2 of microcontroller with pin 2 of lm35 sensor?

    • @StudentCompanion
      @StudentCompanion  7 років тому +1

      soumya palkundu this video explain how to connect LM35: ua-cam.com/video/lrMXX-qBGlU/v-deo.html

  • @electronicsideas1361
    @electronicsideas1361 9 місяців тому

    CAN NOT DOWNLOAD CODE

  • @الهندسةالطبيةالحيويةجامعةالملك

    how we can replace this pic by pic18f45k80 ??

    • @StudentCompanion
      @StudentCompanion  3 роки тому +2

      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.

    • @الهندسةالطبيةالحيويةجامعةالملك
      @الهندسةالطبيةالحيويةجامعةالملك 3 роки тому

      @@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

    • @StudentCompanion
      @StudentCompanion  3 роки тому +1

      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

  • @nawelhamouri2817
    @nawelhamouri2817 7 років тому +1

    i can't find pic 18f45k22 , where is the problem ?

    • @StudentCompanion
      @StudentCompanion  7 років тому +1

      +nawel ham find it where? Can you be specific with your question? In Proteus, mikroC, in your electronic shop, etc. ?

    • @nawelhamouri2817
      @nawelhamouri2817 7 років тому +1

      i can't find it in Proteus

    • @StudentCompanion
      @StudentCompanion  7 років тому +1

      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.

    • @nawelhamouri2817
      @nawelhamouri2817 7 років тому +1

      i have Proteus version 7 thanks for replying me

    • @StudentCompanion
      @StudentCompanion  7 років тому +1

      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.

  • @adeshinaajibola5114
    @adeshinaajibola5114 4 роки тому

    Pls can upload an inverter design using microcontrollers

    • @StudentCompanion
      @StudentCompanion  4 роки тому +1

      Maybe in the future but we are planning tutorials on DAC with PIC soon which can be used to generate sine wave.

    • @adeshinaajibola5114
      @adeshinaajibola5114 4 роки тому

      @@StudentCompanion I really need this tutorial on 50HZ sinewave generating with pic...Know the basic concept..