Peltier Plate Current Reversing and Controlling the Current with Arduino Uno

  • Thread starter Deleted member 496780
  • Start date

be80be

Joined Jul 5, 2008
2,395
Try this part and see what it does
Code:
int i = 0;
void setup() {
  // TEC112703  controll pin initiate;
  pinMode(4, OUTPUT);
  pinMode(5, OUTPUT);
  pinMode(9, OUTPUT); // Speed control
  //Enable the Motor Shield output;
  pinMode(6, OUTPUT);
  digitalWrite(6, HIGH);
}
void loop() {
  digitalWrite(6, HIGH);
  digitalWrite(4, HIGH);
  digitalWrite(5, LOW);  // Set the current direction of TEC112703
  for (i = 20; i < 250; i = i + 5)
  {
    analogWrite(9, i);   // set the current of TEC112703

    delay(200);
  }
  Serial.println("stop 3s");
  digitalWrite(6, LOW);//Turns it all off
}
 

be80be

Joined Jul 5, 2008
2,395
It worked there site shows 2 ways to hook up motor the right way and the wrong one.
the motor goes on A1 and B1 looks like they lay it out A1 A2 which is showed on the first thing I found

But there sample code tells you to use D4 and D5 and D6 which is A1 and B1 motor hookup

Need to add some kind of pid to keep the temp where you would want it.
 
Last edited:
Top