Forum Software Ferduino code Arduino mega pins

Arduino mega pins  [SOLVED]


Post Number:#1 Post Sun Feb 26, 2017 3:05 pm
Posts: 15
Topics: 3
Solve rating: 0
Joined: Fri Nov 25, 2016 11:58 am
Topics: 3
Age: 36
Gender: None specified
National Flag:
Greece
hello my friend any help for the pins of leds timers temp sensors?
i need other pcbs?


sorry for my english isnt very good

Post Number:#2 Post Sun Feb 26, 2017 3:08 pm
Posts: 1699
Topics: 38
Images: 301
Solve rating: 233
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 39
Location: São Paulo
Gender: Male
National Flag:
Brazil

As I told before: https://github.com/FernandoGarcia/Ferdu ... a.ino#L207

A prototype shield or screw shield is needed to connect all devices.
Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.

Post Number:#3 Post Sun Feb 26, 2017 4:02 pm
Posts: 15
Topics: 3
Solve rating: 0
Joined: Fri Nov 25, 2016 11:58 am
Topics: 3
Age: 36
Gender: None specified
National Flag:
Greece
from arduino mega board
the pins for led

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;   


and for timer1 2 3 etc?

can i work timers without PCF8575?
Last edited by Fernando Garcia on Sun Feb 26, 2017 4:08 pm, edited 2 times in total.
Reason: Pease use the tag [code][/code] to post codes.

Post Number:#4 Post Sun Feb 26, 2017 4:13 pm
Posts: 1699
Topics: 38
Images: 301
Solve rating: 233
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 39
Location: São Paulo
Gender: Male
National Flag:
Brazil

Yes, only swap the pin numbers with a free pin in your system.

If you won't use wavemaker you can make like this:

const byte temporizador1 = 80;
const byte temporizador2 = 81;

const byte wavemaker1 = 45;
const byte wavemaker2 = 46;


Change to:

const byte temporizador1 = 45;
const byte temporizador2 = 46;

const byte wavemaker1 = 80;
const byte wavemaker2 = 81;


In your case the pin 7 is free too so you can make like this:

const byte temporizador3 = 7;
Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.

Post Number:#5 Post Sun Feb 26, 2017 4:58 pm
Posts: 15
Topics: 3
Solve rating: 0
Joined: Fri Nov 25, 2016 11:58 am
Topics: 3
Age: 36
Gender: None specified
National Flag:
Greece
thank you fernando i try it.....

Post Number:#6 Post Tue Feb 28, 2017 5:55 pm
Posts: 15
Topics: 3
Solve rating: 0
Joined: Fri Nov 25, 2016 11:58 am
Topics: 3
Age: 36
Gender: None specified
National Flag:
Greece
hi fernando again...

i try it but i can find nothing ...

now the code running on 5 inch tft and i have find the pins of leds and wavemakers and can find the 5 timers. any help? what change can i take to work....
i dont use the dosing pump skimmer ozone

Post Number:#7 Post Tue Feb 28, 2017 6:09 pm
Posts: 1699
Topics: 38
Images: 301
Solve rating: 233
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 39
Location: São Paulo
Gender: Male
National Flag:
Brazil

Hi!

What's your problem?

The posts above are not clear?

Best regards.
Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.

Post Number:#8 Post Tue Feb 28, 2017 7:06 pm
Posts: 15
Topics: 3
Solve rating: 0
Joined: Fri Nov 25, 2016 11:58 am
Topics: 3
Age: 36
Gender: None specified
National Flag:
Greece
in lines

const byte temporizador1 = 5;       // P5       // Pin that turns on the timer 1.
const byte temporizador2 = 6;       // P6       // Pin that turns on the timer 2.
const byte temporizador3 = 7;       // P7       // Pin that turns on the timer 3.
const byte temporizador4 = 8;       // P8       // Pin that turns on the timer 4.
const byte temporizador5 = 9;       // P9       // Pin that turns on the timer 5.



i change the pins
const byte temporizador1 = A5;       // P5       // Pin that turns on the timer 1.
const byte temporizador2 = A6;       // P6       // Pin that turns on the timer 2.
const byte temporizador3 = A7;       // P7       // Pin that turns on the timer 3.
const byte temporizador4 = A8;       // P8       // Pin that turns on the timer 4.
const byte temporizador5 = A9;       // P9       // Pin that turns on the timer 5.


are that correct? and the old pins a5 a6 a7 a8 a9 i change with these 5 6 7 8 9 ?
Last edited by Fernando Garcia on Tue Feb 28, 2017 7:12 pm, edited 1 time in total.
Reason: Pease use the tag [code][/code] to post codes.

Post Number:#9 Post Tue Feb 28, 2017 7:17 pm
Posts: 1699
Topics: 38
Images: 301
Solve rating: 233
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 39
Location: São Paulo
Gender: Male
National Flag:
Brazil

Which part of this text you don't understand?

//****************************************************************************************************
///************************************** PCF8575 ****************************************************
//****************************************************************************************************
// Do not change this part if you have not a PCF8575 installed.


You should change this part according to what I told above.

const byte temporizador1 = 80;           // Pino que liga o timer 1.
const byte temporizador2 = 81;           // Pino que liga o timer 2.
const byte temporizador3 = 82;           // Pino que liga o timer 3.
const byte temporizador4 = 83;           // Pino que liga o timer 4.
const byte temporizador5 = 84;           // Pino que liga o timer 5.
const byte solenoide1Pin = 85;           // Liga a reposicao de água doce.
const byte alimentadorPin = 86;          // Pino que controla o alimentador automático.
const byte skimmerPin = 87;              // Pino que controla o skimmer

Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.




Return to Ferduino code





Who is online

Users viewing this topic: No registered users and 1 guest

cron