PID temperature controller DIY Arduino
Вставка
- Опубліковано 29 чер 2024
- Best & Fast Prototype ($2 for 10 PCBs): www.jlcpcb.com
Thanks to JLCPCB for supporting this video.
Learn how a PID controller for temperature works. We use a K type thermocouple and read real temperature values with the MAX6675 breakout board. SPI connected to the Arduino which will create the PID and control a MOSFET with PWM signal and the power for a DC heater.
my Q&A page: electronoobs.com/eng_preguntas...
Help me on Patreon : www.patreon.com/user?u=4854866
Canal en Español: / electronoobs en español
🔬PRINTERS FDM
-------------------------------------
Artillery Sidewinderr X1 (364€ Aliexpress): s.click.aliexpress.com/e/_9y9haI
Artillery GENIUS (307€ Aliexpress): s.click.aliexpress.com/e/_A9SvG2
Creality3D Ender 3 Pro (230€ Aliexpress): s.click.aliexpress.com/e/_APcCa2
Anycubic Mega S (206€ Aliexpress): s.click.aliexpress.com/e/_ALcTLs
ELEGOO NEPTUNE 2 (186€ Aliexpress): s.click.aliexpress.com/e/_AM2y7c
Prusa i3 MK3S Clone (393€ Aliexpress): s.click.aliexpress.com/e/_ASNXyi
Creality CR-10 V3 (480€ Aliexpress): s.click.aliexpress.com/e/_AnycCO
🔅PRINTERS RESIN
-------------------------------------
ELEGOO Mars Pro (208€ Aliexpress): s.click.aliexpress.com/e/_A0nVFY
ELEGOO Saturn MSLA (480€ Aliexpress): s.click.aliexpress.com/e/_AKxJim
Anycubic Photon Mono (199€ Aliexpress): s.click.aliexpress.com/e/_9ulv4K
Creality HALOT ONE (275€ Aliexpress): s.click.aliexpress.com/e/_Ak7jBC
LINKS
________________________________________________________
Tutorial webpage: www.electronoobs.com/eng_ardui...
Part list: www.electronoobs.com/eng_ardui...
Schematic thermocouple: www.electronoobs.com/eng_ardui...
Final schematic: www.electronoobs.com/eng_ardui...
Code (thermocouple read example): www.electronoobs.com/eng_ardui...
Code (PID NO rotary encoder): www.electronoobs.com/eng_ardui...
Code (FINAL PID): www.electronoobs.com/eng_ardui...
Please, like, share and subscribe in order to motivate me for moe videos like this one. Thank you! - Наука та технологія
I really love your enthusiasm. You're getting better and better. As a viewer right from your first few videos it's amazing to see your progress. Keep on!
On behalf of all mechanical engineering students, thank you so much for breaking this process down into something we can understand!
Thanks for all the time and effort you put in to this video, very well explained!
cant wait to see the recycling extruder project. Thank you! Amazing project!
One of the best PID explanations I've seen. You are an excellent educator. Thanks!
Going to make some rosin with this info? lol
Pidua-cam.com/video/NwuY7qbs2Dkp/v-deo.htmlidpid pid line follower robot
@@mohammedalshrief532 thankes
Siento que la calidad de los vídeos es cada vez mejor, felicitaciones, como siempre increíble.
The heating element can be represented by a first-order transfer function if you apply a step input (e.g 5 V or 12 V or whatever the supply voltage is). Plot the transient behaviour as the temperature raises and settles about a value (sample at regular intervals though). This will fit the equation K/(s(tau)+1). K is the gain so that will be the maximum temperature of the plot. Tau is the time constant and this will be the time it takes for the element to reach about 63% of its maximum temperature. You can either simulate this in Simulink and play with the PID values (make sure you use the z-domain rather than the s-domain though.
If you don't want to use simulink then just use a tuning method like ziegler nichols
Great explanation! I'm what you could call a beginner in grade 10 at school but I've picked up on the basics really quickly and have decided to do a project for in the house. I am going to use a PID to control the temperature for an espresso machine. This explanation was really useful, but still alot of research to do!
man you have one of the best electronics projects channel on UA-cam!!!
good job!
Really nice, man! Great job! 😊
This is incredible. I am an MD doing research in neuroscience trying to make an in-line heater for live-cell imaging. This video is exactly what I needed. absolutely stunning!!! :D :D
How did it work out?
This might be the basis for a new barbecue controller project. Thanks for the effort in making such a clear and complete tutorial.
SO HELPFUL! Learning so much from your explanations through the code and each piece of electronic, thank you so much
Thank you so much for sharing Sir . I am trying to make my own soldering station by myself recently.
Great informative video, very nicely and deeply explained about each and every aspect of PID controller's functionality using Arduino. You are great explainer, this skill of yours will educate needy learners.
This is what I have been looking for my pastry proofer. Thank you very much Sir.
I've been trying to do a PID with Arduino for Sous Vide cooking. The tuning of the PID is the most difficult process for me. The key is to have the patience and good data collection to adjust the various parameters correctly. I tried to doo it with a Crock Pot but there isn't any circulation in a crock pot and I couldn't get the temp deviations down to an acceptable level..
Very good video with good starter information.
Can you share your thoughts about how you brought the temperature deviations down to an acceptable level?
Great job. Everyone else is launching rockets and having us use PID for telemetry. Thanks for simplifying it and making it accessible.
Very nice and clear! You set a high standard.Thanks!
I made my machine learning pid iron station and i made pid code by helping your videos great man
And mad pid line follower 🙂❤👌pidua-cam.com/video/NwuY7qbs2Dkl/v-deo.htmlinefollowerpid
It's excelent! Best explanation I've seen as well. Thank you so much!!!
Amazing work !!!!! thank you for your effort and passion !!!
this is litterely what i needed for a school project and this helped a lot
I haven't even watched the video and I gave you a Thumbs Up. I hope this is exactly what I need to control my burnout oven.
Great video. You inspired me to build a fan for my smoker to control temps for long cooks.
the best explanations ever, thank you for the detail
Ahh... How nice with a video without JLC commercials! ;)
eres genial. gracias por tu aporte, estuve buscando esto durante mucho tiempo.
Brilliant this is what I was looking for
Thank you very much
Exelente control pid lo usaré para modificar un horno para soldar smd ojalá lo hubieras hecho en español
Thanks to you because those subject to handle to you.I am using hakko 907 temperature control iron (clone).your nest video very useful for me and my temperature control iron 907.Thanks
Thinx for your amazing video
A great presentation. congratulations on a real contribution to education.
On process control
Amazing quality!
Thank you for sharing! I learned a lot.
Appreciate you efforts. much easy for students . Thank you
Exactly what I was looking for! A+ Teacher!!!!
You never disappoint.
Awesome work, thank you for sharing the code! I have numerous arduino projects I have waned to complete involving PID control but could not find any PID code.
Great explanation, easy to understand..
well done, I like the way you did not use libs but wrote the code yourself, it is easier to see what you are doing.
nice nice nice, youre a real maker and im a fan:D
Guys why is it that there is a diode on the protoboard for the part that controls the heater ? i dont see it in schematic (min 6:52). Truly one the greatest PID explanations on youtube! Thanks you guys! Keep at it!! :D
Liked and subscribed! Great job
excellent explanation man!
Super awesome presentation thanks!
Great tutorial Man....!
Im Waiting other great video...
Very useful and understable video .. Thank you very much for your effort
Nice explanation of how PID works. Keep up the good work! - Btw. is that soldering iron only 24 Watts? I would think it would be 40 or 50 watts by looking at the size.
excellent videos!!! more of it please!!
Very good video...easy and concise
Thank you for your good explanation !
Thank you very much dude, I really appreciate this video ♥ please can you make a video about a line follower with PID
No PID filtering this time ha..... Am just kidding.I really enjoy your tutorials.Thanks a lot.
good job, congrats
Great video!!
Thank you!!! This is really great!!!!!!!!!!
hi..
thank you for the good explanation about the PID .... it seems there is a 2 degree difference ( higher ) then the set temp...
now im analyse where this offset comes from.
excellent video.
Nice video, thanks for sharing :)
really helpful for Mechatronics engineers
Great video
Good video
One more great video!
Absolute legend thank you sir
Well done, thank you.
Wohooo, I predicted it! ;)
Nice work! Just saying.. most of those industrial PID has also option to control solid state relay with PWM, so it will work flawlessly with any resistive heating element...
I can easily understand your english, it’s very good
good work
dear.... you are a treasure....keep it up..
WOW!! Really nice !! Hmmm, what other heating element i can used? my project is to heat water and maintain its temperature.
I like this video.
From many years of experience i will advise you to have a function on your coming
soldering station controller, where it enters sleep mode, reducing temperature when not being active
soldering.
This is due to the fact that soldering tips are " burning out ", when standing idle with high temperature.
Also the nickel layer is thin, especially on the chinese iron tips you are going to use as per your video..
Kind rgds.
niels larsen.
A lot of the burning of tips is due to the fact these soldering irons do *not* have a temperature controller.
In order to not be too cold when they are working (touching new cold wire and melting tin) they are getting slightly too much power.
Basically, in rest the temperature goes up because nothing cools it down.
I agree it is a nice feature to add.
Where are you from man? You really explain very well!
think very much , very useful video for prctice project
This is an awesome arduino projects
Thank you for sharing
Do you have instagram?
You are a hero
That's great but please make a video on the soldering iron version also .
One doubt: how does the gear system improve the thrust while decreasing the speed in brushed drone ??
Anyway this channel is so great ( I can't refrain from saying that )
cool video.
Wow again you and greatscoot at sametime it magic or other🤣🤣🤣
We have same schedule since we are in same timezone
Köszönjük!
good job thanks, مشكور
Hi, Excellent study, clear explanation. thanks for sharing. I have a question. I wanted to control the 220V AC heater with SSR. I tried to do but I couldn't drive SSR with PWM. and Is banana required for the circuit? :)
great video as usual truly worth subscribing channel,one comment here when PID works shouldn't that mean that the transistor controlling ( with arduino) the MOSFET knows! the exact current required to the mosfet to produce 100 degrees ? so that no wobbling in the osi
sermad reda.
Yes and no. One way to control the temperature of an electric heater is to calculate (or find by trial and error) how much power you need to put in to the heating element to keep it at a constant temperature. At that temperature there is then an equilibrium between the amount of 'heat' you lose (flows from heater to environment) and the amount of heat you add (through electric energy).
For every amount of energy you add, the system will end up at a different equilibrium temperature.
But this is not very useful, see for example what happens when you blow at the hearter. You remove more heat, and the temperature drops.
The advantage of PID is to automatically react to such disturbance by adding more electric power.
And you are right, if the P, I, and D you should not see any wobbly output .... Unless your PID actually NEEDS to respond to a disturbance.
A PID does not ' *know* '' how much energy it needs, it calculates that based on current, past and expected errors.
Awesome video. But can you make a video about how to make a soldering station with these same parts.
Thanks man.
So PID control(er) stablized something, in this case it's temp(heat...)
Interestin' probably now I know the concept behind STAC
Good Video. Is there a way to calculate accurate P,I & D variables instead of hit and trial method?
Excellent video, one thing I haven't grasped clearly is the conversion between units in the code: if I read a temperature value in say celcius from the sensor feedback, and output a current value (0-2.5 A) to the hardware that drives the process; how do I convert between the two units?
Hello great video! Thanks for sharing. I was wondering about PID controllers with ramp and soaks steps working with a relay. Could you post a video about this stuff? I am trying to learn a bit.. I mean just a conceptual implementation would be ok, without building anything..
Hi Electronoobs, Thanks for this excellent tutorial/demo. I have a question though - At 7:46 in your video there are several parts of the wiring that are not in your final schematic. It looks like you've added a diode on the "source" side of the Mosfet (is this connecting source to gate??, but I also see you have a negative (black) jumper looped behind the mosfet - what is that connecting to? I can't see what pin you've connected this to because the mosfet is in the way.
I would also love to know this. Have you figured it out?? Would appreciate some info if you had! :D
Video on Fuzzy logic ! And any diy project with it
Very good video, you have the link of the digital screen that looks like an oscilloscope ?. Thank you
Something like this www.gearbest.com/testers-detectors/pp_437115.html?lkid=13732065
Hi, great video and a great project. I have now made this PID Controller myself and it works really well, but I have a question/wish for you. Could you make an extended video of this project where, in addition to PID, it can also have stepwise adjustment of temperature up and down with time intervals. It had helped me tremendously. Please help me
Excellent
May need elaboration for more advanced engineers on the thermocouple. They DO NOT put out a voltage based on temperature. They work on a difference in temperature between a hot junction and a cold junction. The example video is OK for an elevated temperature in a temperature stable room, but would not work to control the temperature of the room because the cold and hot junctions would be at the same temperature. Great introduction, and a good place for more advanced students to learn about the hot and cold junctions and temperature measurement of the cold junction to get accurate values for the hot junction. The more advanced students and engineers can locate the cold junction in this example.
cool dude
Great video. About how long would it take to boil 4 cups of water using this?
Great work on this!Does it also work with Arduino nano?
Very nice Video! I've got one question. Is it possible to use a Mosfet Modul (D4184) instead of the Mosfet in your Video?
Thanks for science