Peltier Plate Current Reversing and Controlling the Current with Arduino Uno

  • Thread starter Deleted member 496780
  • Start date

be80be

Joined Jul 5, 2008
2,400
Look this over and read it.
Code:
 val = peltier_level;
  analogWrite(cold, val); //Write this new value out to the port You setting the power level here
  digitalWrite (hot,LOW); //You set it low so power will flow make sure you keep one set low at
  //any times or you'll have short.!!!!!
  // add here to change from cold to hot
I didn't have a peltier it's just a load it could be a motor or in you case it going to be a
peltier.
 

Thread Starter

Deleted member 496780

Joined Dec 31, 1969
0
Look this over and read it.
Code:
 val = peltier_level;
  analogWrite(cold, val); //Write this new value out to the port You setting the power level here
  digitalWrite (hot,LOW); //You set it low so power will flow make sure you keep one set low at
  //any times or you'll have short.!!!!!
  // add here to change from cold to hot
I didn't have a peltier it's just a load it could be a motor or in you case it going to be a
peltier.
For the Arduino only the pins D1 and D2 are being utilized nothing in the analog? Also Should I change the code with the initilization variables to int hot = 1, int cold = 2? or int hot = 2, int cold = 1?
 

be80be

Joined Jul 5, 2008
2,400
You can only use pwm pins 3 and 5 are good the drawing was wrong.
I picked 3 and 5 like this.hot.jpg
Red of your peltier goes on 3 and ground on 5
 

bertus

Joined Apr 5, 2008
23,040
Hello,

The H-bridge can not work, as all N-fets are used.
To have the upper N-fet working, you will need a gate voltage higher as the powersupply voltage.
You could use a H-bridge driver between the arduino and mosfets to solve the problem.

Bertus
 

Thread Starter

Deleted member 496780

Joined Dec 31, 1969
0
Hello,

The H-bridge can not work, as all N-fets are used.
To have the upper N-fet working, you will need a gate voltage higher as the powersupply voltage.
You could use a H-bridge driver between the arduino and mosfets to solve the problem.

Bertus
Wait so be80be's solution wouldn't work? How would I modify it?
 

Thread Starter

Deleted member 496780

Joined Dec 31, 1969
0
You can only use pwm pins 3 and 5 are good the drawing was wrong.
I picked 3 and 5 like this.View attachment 140353
Red of your peltier goes on 3 and ground on 5
what would the h-bridge driver look like instead of using a regular h-bridge since Bertus said that an H-bridge can not work as all N-fets are utilized.
 

be80be

Joined Jul 5, 2008
2,400
It's not so it will work not the best you don't get full power
View attachment 140359
But he is right it's not the best way to go you really need a lot more part's
But it will work with the part's you have or should I say should work.
 
Last edited:

Thread Starter

Deleted member 496780

Joined Dec 31, 1969
0
Hello,

The H-bridge can not work, as all N-fets are used.
To have the upper N-fet working, you will need a gate voltage higher as the powersupply voltage.
You could use a H-bridge driver between the arduino and mosfets to solve the problem.

Bertus
Will it work at all though? I know it won't be that as efficient, but I'm just worry if it'll work :/
 

be80be

Joined Jul 5, 2008
2,400
I just showed you 2 sim's it shows it working The Nfet's you have should work as the circuit I posted
just has voltage drop.
 

Thread Starter

Deleted member 496780

Joined Dec 31, 1969
0
I just showed you 2 sim's it shows it working The Nfet's you have should work as the circuit I posted
just has voltage drop.
Oh thank you very much!!! Dude you're a lifesaver! I'm feel bad for asking so many questions. So I should use this circuit right?

Code:
 Serial.print("Power=");
  Serial.print(power);
  Serial.print(" PLevel=");
  Serial.println(peltier_level);
  digitalWrite(hot, LOW);
  val = peltier_level;
  analogWrite(cold, val); //Write this new value out to the port
  digitalWrite (hot,LOW);
  // add here to change from cold to hot
Also for this part of the code, how do I make it an option for the user to choose between hot or cold? Would I add an if statement?
 

Attachments

Last edited by a moderator:

be80be

Joined Jul 5, 2008
2,400
Hello,

The H-bridge can not work, as all N-fets are used.
To have the upper N-fet working, you will need a gate voltage higher as the powersupply voltage.
You could use a H-bridge driver between the arduino and mosfets to solve the problem.

Bertus
Sim don't look good
Looks like you get about 6.5 volts
 
Top