i am new to arduino, when i try to uploade this termocupler test program:
// this example is public domain. enjoy!
// www.ladyada.net/learn/sensors/thermocouple
#include "max6675.h"
int thermoDO = 8;
int thermoCLK = 9;
int thermoCS_1 = 10;
int thermoCS_2 = 15;
int thermoCS_3 = 16;
int thermoCS_4 = 17;
int thermoCS_5 = 18;
int thermoCS_6 = 19;
MAX6675 thermocouple_1(thermoCLK, thermoCS_1, thermoDO);
MAX6675 thermocouple_2(thermoCLK, thermoCS_2, thermoDO);
MAX6675 thermocouple_3(thermoCLK, thermoCS_3, thermoDO);
MAX6675 thermocouple_4(thermoCLK, thermoCS_4, thermoDO);
MAX6675 thermocouple_5(thermoCLK, thermoCS_5, thermoDO);
MAX6675 thermocouple_6(thermoCLK, thermoCS_6, thermoDO);
int vccPin = 3;
int gndPin = 2;
void setup() {
Serial.begin(9600);
// use Arduino pins
pinMode(vccPin, OUTPUT); digitalWrite(vccPin, HIGH);
pinMode(gndPin, OUTPUT); digitalWrite(gndPin, LOW);
Serial.println("MAX6675 test");
// wait for MAX chip to stabilize
delay(500);
Serial.print("working");
}
void loop() {
// basic readout test, just print the current temp
delay(500);
Serial.print("Sensor_1 temp = ");
Serial.println(thermocouple_1.readCelsius());
delay(500);
Serial.print("Sensor_2 temp = ");
Serial.println(thermocouple_2.readCelsius());
delay(500);
Serial.print("Sensor_3 temp = ");
Serial.println(thermocouple_3.readCelsius());
delay(500);
Serial.print("Sensor_4 temp = ");
Serial.println(thermocouple_4.readCelsius());
delay(500);
Serial.print("Sensor_5 temp = ");
Serial.println(thermocouple_5.readCelsius());
delay(500);
Serial.print("Sensor_6 temp = ");
Serial.println(thermocouple_6.readCelsius());
delay(500);
Serial.print("\n");
}
i get this error message:
Sketch uses 4.322 bytes (13%) of program storage space. Maximum is 32.256 bytes.
Global variables use 340 bytes (16%) of dynamic memory, leaving 1.708 bytes for local variables. Maximum is 2.048 bytes.
C:\Users\Uno\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino2/bin/avrdude -CC:\Users\Uno\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino2/etc/avrdude.conf -v true -patmega328p -carduino -PCOM5 -b115200 -D -Uflash:w:C:\Users\Uno\AppData\Local\Temp\build05f352c0f12e4ef374138bccb7196f25.tmp/serialthermocouple.ino.hex:i
avrdude: Version 6.3, compiled on Jun 22 2016 at 16:05:21
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "C:\Users\Uno\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino2/etc/avrdude.conf"
avrdude: no programmer has been specified on the command line or the config file
Specify a programmer using the -c option and try again
what do i do to fix that.