Hello We are two girls from Sweden who needs some help with our School-project. We are going to use a Peltier to control a glass outside temperature. We only have a Pseudo-cod at the moment but need help with the CE-cod. So if you have any clue, please help us
Pseudo-cod
-start up
-messure the temperature
-write temperatur i Serial monitor
write the temperature you want in Serial monitor
if the temp is wrong
the peltier starts to cool the glass
write the current temp in Serial monitor every second
when the temp is correct, LED on
hold the correct temp
(We have started with putting the Peltier in DIGITAL 3, Temperatur sensing ANALOG A0)
What part of converting the pseudecode to real code are you having problems with? What code have you currently got? What does it do that it shouldn't? What does it not do that it should?
We have started with putting the Peltier in DIGITAL 3
We have started by trying to fry the Arduino. That is NOT a good start.
This project seems very similar in that it uses a control loop to control a peltier:
You seem to be using on/off control (sometimes called bang-bang) rather than proportional control with PWM.
I would recommend using proportional control - a peltier switched off conducts heat extremely well so cannot
maintain a temperature difference, its best to drive it continuously and adjust the current.
Perhaps - but its probably more logical to start with breaking down the task of writingyour code into small pieces:
One piece controls the peltier.
One piece reads the temperature, converting to centigrade (or whatever you use),
One piece has the logic for controlling everything (it uses the other two).
Test each piece separately and build upwards - try to understand how existing code samples work
and which bits are doing each task.
We're glad to here that it's a simple project even tho we don't think that a the moment haha
If we need to write done a cod for each thing, which part should we start with? Controlling the Peltier? We don't have any knowledge with programming and arduino since before...
Julmat:
We're glad to here that it's a simple project even tho we don't think that a the moment haha
If we need to write done a cod for each thing, which part should we start with? Controlling the Peltier? We don't have any knowledge with programming and arduino since before...
Many thanks!! / Julia and Matilda
Start with whatever seems easiest, and for which you have the hardware, and if necessary experiment
a bit - but keep researching similar projects, you will find out lots of useful tips and tricks eventually.