Home     Contact     Projects     Experiments     Circuits     Theory     BLOG     PIC Tutorials     Time for Science     RSS     Terms of services     Privacy policy  
   
 Home      Projects     Experiments     Circuits     Theory     BLOG     PIC Tutorials     Time for Science   

18 August 2011
Author: Giorgos Lazaridis
K-Type Thermocouple PID Controller



  • To read the complete worklog - click here (worklog)
  • To see the references for this project - click here (references)

  • The purpose of this project is to make a PID controller from a scratch, following the PID theory that i wrote some time ago. I plan to use this controller for a future project that i will make, a PCB preheater. Here is a video in which i demonstrate the controller:





    I usually test the circuits on a breadboard first, but due to the fact that the MAX chip is an SMD and also the circuit is quite complicated, I decided to go directly on a prototype PCB instead. The whole idea worked perfect, except of a minor mistake that i did when transferring the circuit from schematic to PCB.

    The bard has 2 potentiometers, one to control the set-temperature and one to control the speed of the fan with PWM pulses. There are 4 inputs for 4 switches/buttons, and 2 outputs for 2 LEDs. The controller can control both 3-wire and 4 wire fans with RPM feedback. When controlling 3-wire fans, the system uses the pulse stretching method to acquire the fan speed.

    The controller reads the heater temperature with a K-type thermocouple, interfaced to the PIC with the MAX6675 (Cold-junction compensated K-Thermocouple to digital converter) through SPI protocol. The heater is controlled by a TRIAC (BT136D) and can handle up to 4A. A galvanic isolation is achieved by using an optocoupler to drive the TRIAC'S gate. I currently use the heater from a hacked hair dryer.












    Comments

  • At 6 November 2012, 3:51:13 user Giorgos Lazaridis wrote:   [reply @ Giorgos Lazaridis]
    • @Iuliu well, actually i do, but i have not finish the housing. I stuck in the nozzle which was originally from special plastic, but it was eventually not so special to withstand the heat of the resistor which accidentally came into contact - so it burned into flames. I will make it from stainless steel or something like that.


  • At 3 November 2012, 11:56:27 user Iuliu wrote:   [reply @ Iuliu]
    • Hello Giorgos Lazaridis have you made the new proiect "a PCB preheater" ?
      I'm thinking to do my self to,but i want to use 16f819 ,that pic i have about 5 pieces,my question is is fast enough at 4 Mhz clock?


  • At 10 July 2012, 13:45:27 user Mr-H wrote:   [reply @ Mr-H]
    • Hi nice job
      but from what i see here, the systeme is unstable


  • At 24 June 2012, 22:03:46 user Giorgos Lazaridis wrote:   [reply @ Giorgos Lazaridis]
    • @Ricardo The layout had errors, check this page:
      http://www.pcbheaven.com/projectpages/K_Type_Thermocouple_PID_Controller/?p=2&topic=worklog
      I have not correct these errors, so you will need to find and correct them yourself. If this is ok with you, i can send the layout to your email. And if you correct these errors and it works, you can send them back so i can then upload them in the site.


  • At 24 June 2012, 13:57:24 user Ricardo wrote:   [reply @ Ricardo]
    • Hi! Could u provide us the layout of PCB?


  • At 24 June 2012, 8:48:30 user Giorgos Lazaridis wrote:   [reply @ Giorgos Lazaridis]
    • @Ricardo unfortunately i cannot help you with this. you need to do it yourself.


  • At 24 June 2012, 8:32:47 user Ricardo wrote:   [reply @ Ricardo]
    • Ok, I just want to know how to do the change of 16F1937 to another one like 16F877A or 18F4520. Can u help us with this? Regards!


  • At 24 June 2012, 4:48:35 user Giorgos Lazaridis wrote:   [reply @ Giorgos Lazaridis]
    • @Ricardo The worklog is here:
      http://www.pcbheaven.com/projectpages/K_Type_Thermocouple_PID_Controller/?p=0&topic=worklog

      There are 5 pages in which i explain exactly how i made it. As for the parts, i cannot help you with them. You need to locate them from your local market, or order them from internet like from farnell.com


  • At 24 June 2012, 3:59:40 user Ricardo wrote:   [reply @ Ricardo]
    • Hi! I know there are a lot of information in your website but I can not find some parts like these:
      IC1 PIC 16F1937 Microcontroller
      IC3 MAX 6675 Cold-junction compensated K-Thermocouple to digital converter (0°C to 1024°C)
      IC5 ULN2003A High Voltage - High Current Darlington Arrays
      IC6 MOC3021 Random Phase Optoisolator TRIAC Driver Output
      IC7 DF02M 1.5 Ampere Bridge Rectifiers
      Also, I'd like to ask you the source code in assembly...


  • At 23 June 2012, 9:29:45 user Giorgos Lazaridis wrote:   [reply @ Giorgos Lazaridis]
    • @Ricardo But everything is in my site. go to the worklog tab and you will find everything there.


  • At 23 June 2012, 9:17:14 user Ricardo wrote:   [reply @ Ricardo]
    • Hi! Assembly it will be nice for me...Can you provide the source code? I want to buy the hardware (PCB) already done/working but I need the 18F4520 instead 16Fxxxx. I don't have time to do it myself and I won't find some parts in my place so, let's talk about...Can you help me? Since now, thanks a lot!


  • At 22 June 2012, 23:08:32 user Giorgos Lazaridis wrote:   [reply @ Giorgos Lazaridis]
    • @Ricardo hello! I'm sorry but i do not program in C, only in assembly.


  • At 22 June 2012, 18:47:32 user Ricardo wrote:   [reply @ Ricardo]
    • Hello!! How's it going? I'm stating Control&Automation Engineering and I liked your job..very nice! So, I have a question, Is there any chance you provide me the source code in C ? I would like to learn how to program PID ALg into a PIC18F4550 using MikroC compiler so, could u help me, please? In last case, Do u have PayPal account? ;) Let's go deal!


  • At 27 January 2012, 4:26:09 user Giorgos Lazaridis wrote:   [reply @ Giorgos Lazaridis]
    • @awan i've been trying to convert the old-style articles (like this one) with the new style articles. I have already upload the TCPDF library, but i cannot get it to work. I hope everything will work well in the end.


  • At 26 January 2012, 22:39:54 user awan wrote:   [reply @ awan]
    • thanks bro for sharing ur project it will be very kind if u share pcb file for this project ....


  • At 7 November 2011, 18:17:21 user Brian S wrote:   [reply @ Brian S]
    • Thanks for the details. It is a pleasure to read or listen to your instructive discussions regarding your interesting projects. I like your attention to intelligent detail.


  • At 22 August 2011, 4:59:14 user Kammenos wrote:   [reply @ Kammenos]
    • @Drone i have both of them in stock ;) I think that MAX6675 is discontinued


  • At 22 August 2011, 4:51:32 user Drone wrote:   [reply @ Drone]
    • Don't use the MAX6675. In late June this year Maxim came out with the MAX31855. It is a better part IMO.


  • At 22 August 2011, 4:25:35 user Kammenos wrote:   [reply @ Kammenos]
    • @Fung they are different brands. Same type, same connection, different brand.


  • At 21 August 2011, 9:03:25 user Fung wrote:   [reply @ Fung]
    • Why do 3 of the 7-segment displays have different surface color? Are they specified to use?


  • At 18 August 2011, 15:35:09 user _pike wrote:   [reply @ _pike]
    • My opinion is to buy the same chip instead of trying to recompile the full programm also sometimes some fuctions are different from pic to pic....it is not worthy recompiling....


  • At 18 August 2011, 10:06:43 user Kammenos wrote:   [reply @ Kammenos]
    • @Stefan i'm sorry but i do not do circuits (nor programs) on demand. You will need to do the change yourself, or get a same PIC. As for the ULN, it is a darlington pair array. Instead of using 6 transistors i use this.


  • At 18 August 2011, 9:42:49 user Stefan wrote:   [reply @ Stefan]
    • Good job,I have a plans for this,but there not in function.So I would like you to finish this project and to build one for myself.But I don't have that PIC microcontroller that you're using I want to use PIC16F877A(887 etc.) can you recompile for it?And I want to know why there is ULN2023,what is his job? :D


     

      Name

      Email (shall not be published)

      Website

    Notify me of new posts via email


    Write your comments below:

          





    delicious
    digg
    reddit this Reddit this
    Faves



     HOT in heaven!

    Find us on Facebook


    NEW in heaven!



    New Circuit: Bistable relay



     Contact     Forum     Projects     Experiments     Circuits     Theory     BLOG     PIC Tutorials     Time for Science     RSS   

    Site design: Giorgos Lazaridis
    © Copyright 2008
    Please read the Terms of services and the Privacy policy