// #define USE_PIN_53_FOR_SD_CARD
// #define SD_CARD_SPEED SPI_FULL_SPEED // Full speed
#define SD_CARD_SPEED SPI_HALF_SPEED // Half speed
// #define SD_CARD_SPEED SPI_QUARTER_SPEED // Quarter speed
// #define USE_PIN_4_FOR_SD_CARD
// Comment the line below to disable watchdog
// #define WATCHDOG // Reseta o controlador se a função "wdt_reset()" não for executada em até 8 segundos.
// Essa função minimiza problemas com o travamento do código mas, pode apresentar incompatibilidades com alguns bootloaders
// Comment the line below to disable ethernet functions
//#define ETHERNET_SHIELD // Comente esta linha para desativar as funções do ethernet shield.
// Uncomment the line bellow to use an ESP8266 as WIFI module
// #define USE_ESP8266 // Descomente esta linha para usar um ESP8266 como módulo WIFI.
// Comment this two lines below if have not stamps
// Comente as duas linhas abaixo se não tiver stamps
//#define STAMPS_V4X // Comente esta linha para usar Stamps EZO
// #define STAMPS_EZO // Descomente esta linha para usar Stamps EZO
// Comment the line below if you haven't a stamp for tank pH.
//#define USE_STAMP_FOR_TANK_PH // Comente esta linha se você não tem um "stamp" para o pH do aquário.
// Comment the line below if you haven't a stamp for calcium reactor.
//#define USE_STAMP_FOR_CALCIUM_REACTOR // Comente esta linha se você não tem um "stamp" para o reator de cálcio.
// Comment the line below if you haven't a stamp for ORP.
//#define USE_STAMP_FOR_ORP // Comente esta linha se você não tem um "stamp" para a ORP.
// Comment the line below if you haven't a stamp for density.
// #define USE_STAMP_FOR_DENSITY // Comente esta linha se você não tem um "stamp" para a densidade.
// Uncomment the line bellow to use a digital tilt hydrometer (iSpindel) instead EC stamp and probe.
// Descomente a linha abaixo para usar o densímetro digital (iSpindel) em vez de stamp e sonda de condutividade.
// #define TILT_HYDROMETER
// Comment this two lines below if have not RFM12B wireless transceiver
// #define RFM12B_LED_CONTROL // Descomente esta linha para controlar os LEDs via RF
// #define RFM12B_RELAY_CONTROL // Descomente esta linha para controlar os relês via RF
// Comente esta linha para desativar as mensagens no monitor serial ou para usar os pinos 0 e 1 (RX e TX) como OUTPUT
// Comment this line to disable the messages on serial monitor or to use pins 0 and 1 (RX e TX) as OUTPUT
#define DEBUG // Comente esta linha para usar os pinos 0 e 1 para controle dos coolers e buzzer.
// Comment the line below to disable this function
// Comente a linha abaixo para desativar esta função
// #define DISABLE_SKIMMER // Desliga o skimmer caso o nível no compartimento esteja alto.
// Evita transbordamento do skimmer caso a bomba de retorno seja desligada
// Comment this line to enable password screen
// Comente esta linha para ativar a solicitação de senha.
// #define SKIP_PASSWORD_SCREEN // comente esta linha se deseja solicitar uma senha após o primeiro toque no TFT
// Comment this line to use static IP.
// Comente esta linha para usar IP estático
// #define USE_DHCP // Descomente esta linha para usar DHCP
// Uncomment the line below to use screensaver
// Descomente a linha abaixo para ativar o protetor de tela
// #define USE_SCREENSAVER
// Comment the line below to disable night mode for stream pumps
// Comente a linha abaixo para desativar o modo noturno para bombas de circulação.
#define NIGHT_MODE // Reduz a potência das bombas de circulação quando os LEDs estão desligados.
// Uncomment the line below to use temperature in Fahrenheit.
// #define USE_FAHRENHEIT // Descomente esta linha para usar temperatura em Fahrenheit
// Comment the line bellow if you don't want use a TFT. This function works only with IDE 1.6.7 or higher.
#define USE_TFT // Comente esta linha se você não quer usar um TFT. Estão função funciona apenas com a IDE 1.6.7 or higher.
// Change the TFT model below if needed. Normally it should work for all models with HX8352-A controller
// Altere o modelo do TFT abaixo se necessário. Nomalmente este dever funcionar para todos os modelos com controlador HX8352-A.
#define TFT_MODEL ITDB32WD
// Uncomment the line below if you are using a TFT shield.
#define USE_TFT_SHIELD // Descomente esta linha se você estiver usando um "TFT shield".
// Select the suitable speed for your SD card. Don't leave two lines uncommented here.
// Selecione a velocidade adequada para seu cartão SD. Não deixe duas linhas descomentadas aqui.
//#define SD_CARD_SPEED SPI_FULL_SPEED // Full speed
#define SD_CARD_SPEED SPI_HALF_SPEED // Half speed
//#define SD_CARD_SPEED SPI_QUARTER_SPEED // Quarter speed
// Uncomment the line below if you have the SD card on ethernet shield.
//#define USE_PIN_4_FOR_SD_CARD // Descomente esta linha se você tem o cartão SD conectado no "ethernet shield".
// Uncomment the line below if you have the SD card on TFT
// Do not uncomment this line when using Ferduino Mega 2560
#define USE_PIN_53_FOR_SD_CARD // Descomente esta linha se você tem o cartão SD conectado no TFT. Não descomente esta linha se estiver usando um Ferduino Mega 2560
// Uncomment the line bellow if your touch screen have coordinates mirrored. So don't need change in ProcessMyTouch: x = 399-myTouch.getX () and y = 239-myTouch.getY ().
// #define INVERT_TOUCH // Descomente essa linha se seu "touch screen" tem as coordenadas espelhadas. Assim não será necessário alterar em "ProcessMyTouch": x = 399-myTouch.getX () and y = 239-myTouch.getY ().
// Uncomment the line below to enable an extra channel for lightning during the night.
// #define USE_EXTRA_CHANNEL_FOR_LIGHTNING_DURING_NIGHT // Descomente esta linha para utilizar um canal extra para relâmpagos durante a noite.
// Select the extra channel to be used for lightning during the night. 0 = white, 1 = blue, 2 = royal blue, 3 = red, 4 = UV
#define EXTRA_CHANNEL_FOR_LIGHTNING 0 // Selecione o canal extra para ser usado para relâmpagos noturnos. 0 = branco, 1 = azul, 2 = azul royal, 3 = vermelho, 4 = ultra violeta
// Define the minimum PWM value to clouds and lightning. If the current PWM is smaller than this value the effect won't be done over the channel.
// When the PWM is smaller than this value the clouds and lightnigs are considered nocturnal. So the lightning will use the extra channel if moon PWM is higher than this value.
#define MIN_PWM_NUVEM 30 // Define o valor mínimo de PWM para nuvens e relâmpagos. Se o PWM atual for menor que este valor o efeito não será executado sobre o canal.
// Quando o PWM é menor que este valor as nuvens e relâmpagos são considereados noturnos. Então o relâmpago will usar o canal extra se o PWM lua for maior que este valor.
exit status 1
SdFatUtil.h: No such file or directory
Dallas Temperature IC Control Library Demo
21:20:31.583 ->
21:20:31.583 -> Locating devices...Found 0 devices.
21:20:31.618 ->
21:20:31.618 -> Parasite power is: OFF
21:20:31.653 ->
21:20:36.630 -> Requesting temperatures...DONE
21:20:41.781 -> Requesting temperatures...DONE
21:20:46.921 -> Requesting temperatures...DONE
21:20:52.053 -> Requesting temperatures...DONE
21:20:57.212 -> Requesting temperatures...DONE
21:21:02.327 -> Requesting temperatures...DONE
21:21:07.975 -> Requesting temperatures...DONE
Sensor 1: 439
21:22:40.518 ->
21:22:40.518 -> Sensor 2: 403
21:22:40.553 ->
21:22:40.553 -> Sensor 3: 402
21:22:40.553 ->
21:22:40.553 -> Sensor 4: 367
21:22:40.588 ->
21:22:40.588 -> Sensor 5: 347
21:22:40.588 ->
21:22:40.588 -> Sensor 6: 336
21:22:40.622 ->
21:22:40.622 -> *******************************
21:22:40.622 ->
21:22:45.627 -> Sensor 1: 345
21:22:45.627 ->
21:22:45.627 -> Sensor 2: 335
21:22:45.662 ->
21:22:45.662 -> Sensor 3: 353
21:22:45.662 ->
21:22:45.662 -> Sensor 4: 330
21:22:45.697 ->
21:22:45.697 -> Sensor 5: 320
21:22:45.697 ->
21:22:45.697 -> Sensor 6: 321
21:22:45.732 ->
21:22:45.732 -> *******************************
21:22:45.732 ->
I'm alive!
What would you like to do?
21:26:02.937 -> (0) To set the current time.
21:26:02.970 -> (1) To display the current time.
21:26:03.004 -> Enter 0 or 1: 218
21:26:10.556 ->
21:26:11.576 -> What would you like to do?
21:26:11.576 -> (0) To set the current time.
21:26:11.609 -> (1) To display the current time.
21:26:11.643 -> Enter 0 or 1: 228
21:26:13.100 ->
21:26:14.156 -> What would you like to do?
21:26:14.156 -> (0) To set the current time.
21:26:14.190 -> (1) To display the current time.
21:26:14.224 -> Enter 0 or 1:
To communication with the stamp of PH of the tank enter: y0
21:27:26.373 -> To communication with the stamp of PH of the reactor enter: y1
21:27:26.373 -> To communication with the stamp of ORP enter: y2
21:27:26.408 -> To communication with the stamp of EC enter: y3
21:27:26.408 -> To clear the channel opened enter: 00
21:27:33.050 -> Channel for PH of the tank is opened.
21:27:33.050 ->
21:27:38.535 -> Channel for ORP is opened.
21:27:38.535 ->
21:27:42.805 -> Channel for EC is opened.
21:27:42.805 ->
After do the process go to http://www.rinkydinkelectronics.com/t_cal_verify.php to check the coordinates.
21:33:20.652 -> If all is right place thi values at UtouchCD.h
21:35:33.702 ->
21:35:33.702 -> I2C Scanner
21:35:33.702 -> Scanning...
21:35:33.702 -> No I2C devices found
21:35:33.702 ->
Arduino:1.8.9 (Windows 10), Scheda:"Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"
Ethernet_shield_with_ENC28J60:1:10: error: EtherCard.h: No such file or directory
#include <EtherCard.h>
^~~~~~~~~~~~~
compilation terminated.
exit status 1
EtherCard.h: No such file or directory
Arduino:1.8.9 (Windows 10), Scheda:"Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"
C:\Users\Gray Wolf\Downloads\code for test\Ethernet_shield_with_W5100\Ethernet_shield_with_W5100.ino: In function 'void setup()':
Ethernet_shield_with_W5100:27:41: error: call of overloaded 'begin(byte [6], IPAddress&, const byte&)' is ambiguous
Ethernet.begin(mac, ip, SelectSlave_ETH);
^
In file included from C:\Users\Gray Wolf\Downloads\code for test\Ethernet_shield_with_W5100\Ethernet_shield_with_W5100.ino:2:0:
C:\Program Files (x86)\Arduino\libraries\Ethernet\src/Ethernet.h:82:13: note: candidate: static int EthernetClass::begin(uint8_t*, long unsigned int, long unsigned int)
static int begin(uint8_t *mac, unsigned long timeout = 60000, unsigned long responseTimeout = 4000);
^~~~~
C:\Program Files (x86)\Arduino\libraries\Ethernet\src/Ethernet.h:89:14: note: candidate: static void EthernetClass::begin(uint8_t*, IPAddress, IPAddress)
static void begin(uint8_t *mac, IPAddress ip, IPAddress dns);
^~~~~
C:\Users\Gray Wolf\Downloads\code for test\Ethernet_shield_with_W5100\Ethernet_shield_with_W5100.ino: In function 'void loop()':
Ethernet_shield_with_W5100:41:10: error: 'class EthernetClient' has no member named 'getRemoteIP'; did you mean 'remoteIP'?
client.getRemoteIP(remoteIP);
^~~~~~~~~~~
remoteIP
exit status 1
call of overloaded 'begin(byte [6], IPAddress&, const byte&)' is ambiguous
Can't open.
Can't open!
Arduino:1.8.9 (Windows 10), Scheda:"Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"
Lo sketch usa 1498 byte (0%) dello spazio disponibile per i programmi. Il massimo è 253952 byte.
Le variabili globali usano 9 byte (0%) di memoria dinamica, lasciando altri 8183 byte liberi per le variabili locali. Il massimo è 8192 byte.
avrdude: ser_open(): can't open device "\\.\COM4": Impossibile trovare il file specificato.
avrdude: ser_drain(): read error: Handle non valido.
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: Handle non valido.
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: Handle non valido.
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: Handle non valido.
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: Handle non valido.
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: Handle non valido.
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: Handle non valido.
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
Can't open.
#include <SdFat.h>
const byte SelectSlave_SD = 53;
const byte SelectSlave_RFM = 69;
const byte SelectSlave_ETH = 4;
SdFat SD;
SdFile file;
float temp;
float tempe;
void setup()
{
int16_t n;
char buf[8];
pinMode(SelectSlave_RFM, OUTPUT);
pinMode(SelectSlave_ETH, OUTPUT);
digitalWrite(SelectSlave_RFM, HIGH);
digitalWrite(SelectSlave_ETH, HIGH);
Serial.begin(9600);
SD.begin(SelectSlave_SD, SPI_HALF_SPEED);
while(!Serial)
{
; // wait for serial.
}
if(file.open("LOGTDIA.TXT", O_CREAT | O_APPEND | O_WRITE))
{
Serial.println("Writing...");
Serial.println();
for(temp = 27.5; temp > 22.0; temp -= 0.15)
{
file.print(temp);
file.write((uint8_t*)"\0", 1);
file.write((uint8_t*)"\r\n", 2);
}
for(tempe = 22.5; tempe < 28.0; tempe += 0.15)
{
file.print(tempe);
file.write((uint8_t*)"\0", 1);
file.write((uint8_t*)"\r\n", 2);
}
file.close();
Serial.println("Done!");
Serial.println();
}
else
{
Serial.println("Can't open.");
}
if(file.open("LOGTDIA.TXT", O_READ))
{
Serial.println("Reading...");
Serial.println();
delay(5000);
while ((n = file.read(buf, sizeof(buf))) > 0)
{
Serial.println(buf);
}
file.close();
Serial.println();
Serial.print("Finished!");
}
}
void loop()
{
}
Users viewing this topic: No registered users and 1 guest