problema com programação de projeto Automação residencial

boas gostaria de saber se me podiam ajudar com esta programação e que quando meto verificar só me apara-se erros.

alguém me pode ajudar?

Automacao_final_v2.pde (35.8 KB)

Dizeres quais são os erros é o primeiro passo...

e que eu não consigo fazer a verificação porque da me erro

ja experimento abrir o ficheiro ?

Não.

Estou num iPad. Se meteres aqui os erros é fácil de dizer onde está o problema.
O fórum tem uma funcionalidade para inserir código carregando no botão com um #. Se o fizeres é mais simples para todos.

pode me explicar como faco isso

Leia as instruções disponíveis no topo do fórum

http://forum.arduino.cc/index.php/topic,148850.0.html

Ok vou ver e depois mando os erros muito obrigado

Os erros que me aparecem sao:

Automacao_final_v2.pde:1:21: error: pitches.h: No such file or directory
Automacao_final_v2:142: error: 'NECIRrcv' does not name a type
Automacao_final_v2:171: error: no matching function for call to 'Server::Server(int)'

Desde a versão Arduino 1.0, a classe Server na biblioteca Ethernet teve o nome mudado para EthernetServer.

C:\Arduino\hardware\arduino\cores\arduino/Server.h:4: note: candidates are: Server::Server()
C:\Arduino\hardware\arduino\cores\arduino/Server.h:4: note:                 Server::Server(const Server&)
Automacao_final_v2:171: error: cannot declare variable 'server' to be of abstract type 'Server'
C:\Arduino\hardware\arduino\cores\arduino/Server.h:4: note:   because the following virtual functions are pure within 'Server':
C:\Arduino\hardware\arduino\cores\arduino/Print.h:48: note: 	virtual size_t Print::write(uint8_t)
C:\Arduino\hardware\arduino\cores\arduino/Server.h:6: note: 	virtual void Server::begin()
Automacao_final_v2:184: error: 'NOTE_FS4' was not declared in this scope
Automacao_final_v2:184: error: 'NOTE_FS4' was not declared in this scope
Automacao_final_v2:184: error: 'NOTE_FS4' was not declared in this scope
Automacao_final_v2:184: error: 'NOTE_FS4' was not declared in this scope
Automacao_final_v2:185: error: 'NOTE_FS4' was not declared in this scope
Automacao_final_v2:185: error: 'NOTE_FS4' was not declared in this scope
Automacao_final_v2:185: error: 'NOTE_FS4' was not declared in this scope
Automacao_final_v2:185: error: 'NOTE_FS4' was not declared in this scope
Automacao_final_v2.pde: In function 'void setup()':
Automacao_final_v2:191: error: 'ir' was not declared in this scope
Automacao_final_v2.pde: In function 'void loop()':
Automacao_final_v2:254: error: 'ir' was not declared in this scope
Automacao_final_v2:324: error: 'class Server' has no member named 'available'
Automacao_final_v2:324: error: cannot declare variable 'client' to be of abstract type 'Client'
C:\Arduino\hardware\arduino\cores\arduino/Client.h:7: note:   because the following virtual functions are pure within 'Client':
C:\Arduino\hardware\arduino\cores\arduino/Client.h:12: note: 	virtual size_t Client::write(uint8_t)
C:\Arduino\hardware\arduino\cores\arduino/Client.h:13: note: 	virtual size_t Client::write(const uint8_t*, size_t)
C:\Arduino\hardware\arduino\cores\arduino/Client.h:14: note: 	virtual int Client::available()
C:\Arduino\hardware\arduino\cores\arduino/Client.h:15: note: 	virtual int Client::read()
C:\Arduino\hardware\arduino\cores\arduino/Client.h:17: note: 	virtual int Client::peek()
C:\Arduino\hardware\arduino\cores\arduino/Client.h:18: note: 	virtual void Client::flush()
C:\Arduino\hardware\arduino\cores\arduino/Client.h:10: note: 	virtual int Client::connect(IPAddress, uint16_t)
C:\Arduino\hardware\arduino\cores\arduino/Client.h:11: note: 	virtual int Client::connect(const char*, uint16_t)
C:\Arduino\hardware\arduino\cores\arduino/Client.h:16: note: 	virtual int Client::read(uint8_t*, size_t)
C:\Arduino\hardware\arduino\cores\arduino/Client.h:19: note: 	virtual void Client::stop()
C:\Arduino\hardware\arduino\cores\arduino/Client.h:20: note: 	virtual uint8_t Client::connected()
C:\Arduino\hardware\arduino\cores\arduino/Client.h:21: note: 	virtual Client::operator bool()

a programação não da para mandar assim e que e muito grande

Você colocou todas as bibliotecas em "C:\Arduino\libraries" ?

O arquivo "pitches.h" está na mesma pasta que o seu código?

sim esta ma mesma parta

Quando abrir o código os dois arquivos devem ficar lado a lado em abas diferentes.
Abra o exemplo "toneMelody" em "example/digital" para ver como os arquivos ficam e tente compilar.

ja percebi mas quando eu abro o código o "pitches.h" fica aberto noutro separador mas não tem la nada escrito

E você não pensou em copiar o conteúdo do exemplo citado acima?

O código alguma vez compilou?

Isso parece-me um problema de bibliotecas também... Provavelmente isso funcionava com outra versão do arduino.

como assim ?

sim ele ja teve a trabalhar mas agora na da

Joao_Martins:
como assim ?

Cole isso no arquivo pitches.h que você disse que está vazio.

/*************************************************
 * Public Constants
 *************************************************/

#define NOTE_B0  31
#define NOTE_C1  33
#define NOTE_CS1 35
#define NOTE_D1  37
#define NOTE_DS1 39
#define NOTE_E1  41
#define NOTE_F1  44
#define NOTE_FS1 46
#define NOTE_G1  49
#define NOTE_GS1 52
#define NOTE_A1  55
#define NOTE_AS1 58
#define NOTE_B1  62
#define NOTE_C2  65
#define NOTE_CS2 69
#define NOTE_D2  73
#define NOTE_DS2 78
#define NOTE_E2  82
#define NOTE_F2  87
#define NOTE_FS2 93
#define NOTE_G2  98
#define NOTE_GS2 104
#define NOTE_A2  110
#define NOTE_AS2 117
#define NOTE_B2  123
#define NOTE_C3  131
#define NOTE_CS3 139
#define NOTE_D3  147
#define NOTE_DS3 156
#define NOTE_E3  165
#define NOTE_F3  175
#define NOTE_FS3 185
#define NOTE_G3  196
#define NOTE_GS3 208
#define NOTE_A3  220
#define NOTE_AS3 233
#define NOTE_B3  247
#define NOTE_C4  262
#define NOTE_CS4 277
#define NOTE_D4  294
#define NOTE_DS4 311
#define NOTE_E4  330
#define NOTE_F4  349
#define NOTE_FS4 370
#define NOTE_G4  392
#define NOTE_GS4 415
#define NOTE_A4  440
#define NOTE_AS4 466
#define NOTE_B4  494
#define NOTE_C5  523
#define NOTE_CS5 554
#define NOTE_D5  587
#define NOTE_DS5 622
#define NOTE_E5  659
#define NOTE_F5  698
#define NOTE_FS5 740
#define NOTE_G5  784
#define NOTE_GS5 831
#define NOTE_A5  880
#define NOTE_AS5 932
#define NOTE_B5  988
#define NOTE_C6  1047
#define NOTE_CS6 1109
#define NOTE_D6  1175
#define NOTE_DS6 1245
#define NOTE_E6  1319
#define NOTE_F6  1397
#define NOTE_FS6 1480
#define NOTE_G6  1568
#define NOTE_GS6 1661
#define NOTE_A6  1760
#define NOTE_AS6 1865
#define NOTE_B6  1976
#define NOTE_C7  2093
#define NOTE_CS7 2217
#define NOTE_D7  2349
#define NOTE_DS7 2489
#define NOTE_E7  2637
#define NOTE_F7  2794
#define NOTE_FS7 2960
#define NOTE_G7  3136
#define NOTE_GS7 3322
#define NOTE_A7  3520
#define NOTE_AS7 3729
#define NOTE_B7  3951
#define NOTE_C8  4186
#define NOTE_CS8 4435
#define NOTE_D8  4699
#define NOTE_DS8 4978

Algumas inclusões de bibliotecas acredito que não são necessárias.

#include <Server.h>
#include <Udp.h>
#include <Client.h>

A SPI.h está incluída 2 vezes.

Substitua:

Server server(8090); // porta do roteador

Por:

EthernetServer server(8090);

ja fiz isso mas nao sei o que se passa continua dar erros