redtop's Ferduino controller

tried to upload the sketch again and I get error on bottom avrdude: stk500v2_ReceiveMessage(): timeout any idea what that means I will be goggling it so back later
 
so after a lot of googling it looks like it could either be a driver problem or a problem with flash memory on the mega itself and Ferduino has just hit on the lucky number of bytes that my flash memory doesn't like
 
Thought I'd stop by and say hello and thank you. I think I've read this thread in full twice now and still keep going back over it for reference. I am trying to build one too, just not with the big screen and it's not the most straight forward lol so this thread really helps.

Quick question, have any of you that are building one of these controller's got any pics of the circuits you have built ie fan circuits and dosing circuits and connectors used in your project boxes etc?
 
my fan circuit I plan on using is pwm pin and stop pin but going to the fan board I posted in a picture few pages back ago that allow for me to use on circuit to run 4 fans that will be 3 heat sinks and one for general hood blowing that will be triggered buy the temp probe for heat sinks.
 
I have a dual stage calcium reactor so no dosing pumps but all my power connections will have inline fuses and my main 36v power supply will have a fused connection coming from the wall. I will be putting all the power supplies and led drivers in one 12x12x8 electrical junction box from home depot Lowes etc... then pwm lines and other control wires will come from smaller box mounted one the inside of the aquarium base door 10wx12Lx4d with a 7" touch screen mounted behind a water tight hinged door.
 
Wow, a lot of thought in this. I know it looks awesome on a 7 inch screen. I would have done that if you could have a longer cable like 1 metre from the arduino, then I could mount it in a picture frame like a digital photo :). I have bought a not working ups and will take the battery out and put the relays etc in there. I have another enclosure off the bay that will have the lcd in front, connectors on back and, hopefully fit psu, arduino, drivers and circuitry in it. I've decided to work back from there, building the pcb with the connectors first, then trying to solder everything as close to those as poss so the arduino just connects to the one board. I don't use dosers at the mo but have been looking at the triton method for the future so will incorporate it anyway.
I'm sort of stuck on the fan circuits as I've built it with tip120 x3 with diodes etc but I have spare uln2003a chips which I think will work and be a lot neater?
 
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?
 
Help changing temp sensor to pin 0

Help changing temp sensor to pin 0

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
 
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

did you run the clear eeprom sketch and wipe the mega clean and then reload the Ferduino sketch after you changed the pin assignments ?
 
Hi!

On this case is better make like this:

8257874882_25d9173bc0_c.jpg


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.

Fernando, does this circuit allow the LEDs to be dimmed from 100% to 0 % via the PWM channel of the Arduino ?

I purchased a cheap standard LED driver that can be dimmed with a normal home incandescent light dimmer connected to it's AC input lines, I was thinking of using it for my sump lighting and just use a timer to control it on and off and just set the intensity to a optimal output for Chaeto growth but if there's a way to make it dimmable with the Arduino PWM, I'd much rather do it that way :D
 
Dale you don't need the d, c, b, a those are extra pin outs from the leftover wires in the rj45 cable
Also the jumper jp8 you won't need to jumper it
 
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.
 
Last edited:
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.

I think the 0 and 1 pins are used for the serial monitor stuff, might be your issue there....

the upscaling numbers that need changed are all through the code, it's a daunting task...the tabs that need changes made are Botoes_e_etc , Graficos , Inicio , L_Menus , ProcessMyTouch , and WaveMaker , I'm not sure now if that's all of 'em though

I basically just had to double the coordinate numbers because it was already designed for a 240x400 screen, but then had to up size the font to make it look better on the bigger screen

I'm not sure what the resolution of the 4.3 screen is but you'll need to change everything in the code to make it work, the LED bar graphs were the biggest challenge for me and I doubt I'd ever got it without Fernando helping me

if you can fit in a 5 inch screen in place of the 4.3, it will work like I have it with my version on both the 5 and the 7 inch SainSmart screens, because both those screens have the same 480x800 resolution
 
Back
Top