const byte alarmPin = 49; // Pino que aciona o alarme
const byte desativarFanPin = 1; // Pino que desativa os coolers.
// Pino 2 reservado para INT do RFM12B.
// Pinos 3, 4, 5, 6 e 7 reservados para o Touch.
// Pino 5 também é o chip select do cartãoSD.
const byte ledPinUV = 8; // Pino que liga os leds violeta
const byte ledPinBlue = 9; // Pino que liga os leds azuis
const byte ledPinWhite = 10; // Pino que liga os leds brancos
const byte ledPinRoyBlue = 11; // Pino que liga os leds "royal blue"
const byte ledPinRed = 12; // Pino que liga os leds vermelho
const byte fanPin = 13; // Pino que controla a velocidade das ventoinhas do dissipador
// Pinos 14 e 15 reservados para a porta serial 3 que se comunica com os "Stamps"
const byte multiplexadorS0Pin = 16; // Pino S0 de controle dos stamps
const byte multiplexadorS1Pin = 17; // Pino S1 de controle dos stamps
// Pinos 18 e 19 reservados para o RTC.
// Pinos 20 e 21 reservados para comunicação I2C do PCF8575.
// Pinos 22 Ã 41 reservados para o LCD.
const byte aquecedorPin = 42; // Pino que liga o aquecedor
const byte chillerPin = 43; // Pino que liga o chiller
const byte ledPinMoon = 44; // Pino que liga os leds da luz noturna
const byte wavemaker1 = 45; // Pino que controla o wavemaker 1
const byte wavemaker2 = 46; // Pino que controla o wavemaker 2
const byte ozonizadorPin = 47; // Pino que liga o ozonizador
const byte reatorPin = 48; // Pino que liga o CO2 do reator.
const byte sensoresPin = 0; // Pino que lê os sensores de temperatura
Hello All,
I am trying to change the temp sensor to pin 0 because it fits my proto board better. I simply changed the pin assignment as shown below in teh setup viod and the sensor does not work. Is there another change I must make to the sketch?
Thanks in Advance
Sean
Code:const byte alarmPin = 49; // Pino que aciona o alarme const byte desativarFanPin = 1; // Pino que desativa os coolers. // Pino 2 reservado para INT do RFM12B. // Pinos 3, 4, 5, 6 e 7 reservados para o Touch. // Pino 5 também é o chip select do cartãoSD. const byte ledPinUV = 8; // Pino que liga os leds violeta const byte ledPinBlue = 9; // Pino que liga os leds azuis const byte ledPinWhite = 10; // Pino que liga os leds brancos const byte ledPinRoyBlue = 11; // Pino que liga os leds "royal blue" const byte ledPinRed = 12; // Pino que liga os leds vermelho const byte fanPin = 13; // Pino que controla a velocidade das ventoinhas do dissipador // Pinos 14 e 15 reservados para a porta serial 3 que se comunica com os "Stamps" const byte multiplexadorS0Pin = 16; // Pino S0 de controle dos stamps const byte multiplexadorS1Pin = 17; // Pino S1 de controle dos stamps // Pinos 18 e 19 reservados para o RTC. // Pinos 20 e 21 reservados para comunicação I2C do PCF8575. // Pinos 22 à 41 reservados para o LCD. const byte aquecedorPin = 42; // Pino que liga o aquecedor const byte chillerPin = 43; // Pino que liga o chiller const byte ledPinMoon = 44; // Pino que liga os leds da luz noturna const byte wavemaker1 = 45; // Pino que controla o wavemaker 1 const byte wavemaker2 = 46; // Pino que controla o wavemaker 2 const byte ozonizadorPin = 47; // Pino que liga o ozonizador const byte reatorPin = 48; // Pino que liga o CO2 do reator. const byte sensoresPin = 0; // Pino que lê os sensores de temperatura
Great thanks. I will redo the circuit for that. Do you know if stereo 3.5mm connectors will be Ok for fans as not high amps? 12v, GND and pwm?
Hi!
On this case is better make like this:
![]()
The circuit is the same shown in previous image.
The power supply of 10V goes connected directly on 0 - 10V.
Best regards.
Fernando Garcia
This circuit bypasses the control of the driver.
did you run the clear eeprom sketch and wipe the mega clean and then reload the Ferduino sketch after you changed the pin assignments ?
Willie, that didnt work. It appears that I can use pin 2 and up, but it wont let me use either pin 1 or pin 0. I can use pin 2 but I am wondering why this would be the case.
Also I bought the 4.3 inch LCD TFT and need to strech out the original ferduino a little. What tab in the sketch containes the code that needs to be altered to reposition items, make things larger, ie what did you change to double the area (I have to increase by about 20%)? Any help would be much appreciated.