Forum Software Ferduino code More Original LED Lights

More Original LED Lights  [SOLVED]


Post Number:#1 Post Sun Dec 09, 2018 12:38 pm
Posts: 19
Topics: 5
Images: 2
Solve rating: 0
Joined: Sun Dec 09, 2018 11:27 am
Topics: 5
Age: 44
Location: Germany Norderstedt
Gender: Male
National Flag:
Germany
Hello I want to start a real big project
I’ve 2 original light bars from aqua Medic named Aquarius
Then 2 light bars aqua Medic ocean twin LED lights
Then 1 light bar aqua Medic reef LED
I want to control all 5 lamps over ferduino software
Because I’m really new in c++ and it's many years ago that i programmed
Any software.
I’ve buy many Moduls and all what Fernando explain in forum what he used to realizes
For the ferduino board.
The complete code I’ve write new with menu and all other
code that need to control 10 pwm LED lights
old one is bled wled etc
New is a_bled a_wled
o_bled o_wled
r_bled r_wled and so on
a_ is Aquarius light
o_ is Ocean light
r_ is Reef light

I dun know what I must do to control all this
After finished this
I want to control 3 Tunze Flow Pumps
Then 3 level Sensors for water level and alert
6-8 Dosing Pumps
One DC Pump
One Skimmer
5 temp sensors
2 fans and 2 heating sticks
One ph sensor
One ec Sensor

For all I must learn c++ again and what Modul what do an how to switch on
206 gallon tank, 42 gallon technic sump, system triton core 7, 8 dosing Pumps, AM Aquarius, AM Reef LED, AM Ocean LED at TC420, AM Temp controller, Skimmer Bubble Magus Curve M7, 3 Tunze flow pumps at Tunze Multi Controller 7096, AM refill system pro

Post Number:#2 Post Sun Dec 09, 2018 1:21 pm
Posts: 1580
Topics: 38
Images: 271
Solve rating: 214
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 34
Location: São Paulo
Gender: Male
National Flag:
Brazil

Hi!

Welcome Gordon!

Firstly Ferduino haven't enough PWM pins for this application. You should add a module PCA9685 (16 channels) to expand the pins. There's something about it on forum.

You should look for this pieces of code to see which variables you should add to expand LED channels.

https://github.com/FernandoGarcia/Ferdu ... ion.h#L134

https://github.com/FernandoGarcia/Ferdu ... ler.h#L223

Then you should look to all others tabs to find all related code.

This is not impossible but you should learn something about programming first.

Here you can see an example where the user has added more channels but the code was not published.

Best regards.
Please do not PM me for support unless it is absolutely necessary.

I'll not write custom function to nobody unless you can pay for my job.

Post Number:#3 Post Tue Dec 11, 2018 6:40 pm
Posts: 19
Topics: 5
Images: 2
Solve rating: 0
Joined: Sun Dec 09, 2018 11:27 am
Topics: 5
Age: 44
Location: Germany Norderstedt
Gender: Male
National Flag:
Germany
Thanks for answer!
I really learn c++ again!
I've buy an PCA9685 16 Kanal 12-bit PWM Servo Driver LED Controller Servomotor Treiber I2C
I hope is the right one to control my led light bars
what can i bote on the original controller?
I can set led white to 100 % and to 1 % to look what came out
ore what i must do?

-------------------------------- Last edited Tue Dec 11, 2018 10:07 pm --------------------------------

I've expanded your code to:

const byte a_ledPinViolett = 0x40;       // Pino que liga os leds violett aquarius
const byte a_ledPinUV = 0x41;            // Pino que liga os leds uv aquarius
const byte a_ledPinBlue = 0x42;          // Pino que liga os leds azuis aquarius
const byte a_ledPinWhite = 0x43;        // Pino que liga os leds brancos aquarius
const byte a_ledPinRoyBlue = 0x44;      // Pino que liga os leds royal blue aquarius
const byte a_ledPinRed = 0x45;          // Pino que liga os leds vermelho aquarius
const byte o_ledPinBlue = 0x46;          // Pino que liga os leds azuis ocean
const byte o_ledPinWhite = 0x47;        // Pino que liga os leds brancos ocean
const byte r_ledPinBlue = 0x48;          // Pino que liga os leds azuis reef
const byte r_ledPinWhite = 0x49;        // Pino que liga os leds brancos reef
const byte fanPin = 13;             // Pino que controla a velocidade das ventoinhas do dissipador


control by the PCA9685

all other in your code i have changed to:
egt by the way looks like so
and menu position colors egt so on

    a_bled_out = (255 - a_bled_out);
    a_wled_out = (255 - a_wled_out);
    a_rbled_out = (255 - a_rbled_out);
    a_rled_out = (255 - a_rled_out);
    a_uvled_out = (255 - a_uvled_out);
    a_vled_out = (255 - a_vled_out);
    a_moonled_out = (255 - a_moonled_out);
    o_bled_out = (255 - o_bled_out);
    o_wled_out = (255 - o_wled_out);
    r_bled_out = (255 - r_bled_out);
    r_wled_out = (255 - r_wled_out);

but step by step first learn c ++ then I go completely but getting information is certainly always a good way
Last edited by Fernando Garcia on Tue Dec 11, 2018 8:24 pm, edited 1 time in total.
Reason: Please use tags [code][/code] to post any code here.
206 gallon tank, 42 gallon technic sump, system triton core 7, 8 dosing Pumps, AM Aquarius, AM Reef LED, AM Ocean LED at TC420, AM Temp controller, Skimmer Bubble Magus Curve M7, 3 Tunze flow pumps at Tunze Multi Controller 7096, AM refill system pro

Post Number:#4 Post Tue Dec 11, 2018 8:42 pm
Posts: 1580
Topics: 38
Images: 271
Solve rating: 214
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 34
Location: São Paulo
Gender: Male
National Flag:
Brazil

Hi!

You can try this circuit do dim your LED from 0 to 100% if your drivers are working with 0 to 10 V.

I can't understand others questions. There's errors.

It's completely wrong!

const byte a_ledPinViolett = 0x40;


Please follow this tutorial: https://learn.adafruit.com/16-channel-pwm-servo-driver/

0x40 should be device address and will be used here:

Adafruit_PWMServoDriver pwm = Adafruit_PWMServoDriver(0x40);


Pin numbers are from 0 to 15.

Look for this example: https://github.com/adafruit/Adafruit-PW ... wmtest.ino

Best regards.
Please do not PM me for support unless it is absolutely necessary.

I'll not write custom function to nobody unless you can pay for my job.

Post Number:#5 Post Wed Dec 12, 2018 5:36 am
Posts: 19
Topics: 5
Images: 2
Solve rating: 0
Joined: Sun Dec 09, 2018 11:27 am
Topics: 5
Age: 44
Location: Germany Norderstedt
Gender: Male
National Flag:
Germany
I mean it to control need to use Adafruit code!
I’ve wrote wrong code
But I must learn c++ to know how combine code into arduino
and link in software to control!
Thanks a lot for help

My last work to build an amplifier is more then 10 years ago!
php, MySQL, html an Java is no Problem and a view
Years ago I wrote code for internet relay chat
But c++ not really
Pls understood I’m happy to have this forum an the help from members!
206 gallon tank, 42 gallon technic sump, system triton core 7, 8 dosing Pumps, AM Aquarius, AM Reef LED, AM Ocean LED at TC420, AM Temp controller, Skimmer Bubble Magus Curve M7, 3 Tunze flow pumps at Tunze Multi Controller 7096, AM refill system pro

Post Number:#6 Post Wed Dec 12, 2018 9:30 am
Posts: 69
Topics: 18
Images: 2
Solve rating: 1
Joined: Tue Apr 14, 2015 11:54 pm
Topics: 18
Age: 37
Gender: Male
National Flag:
Indonesia
watching... :D :D

-------------------------------- Last edited Wed Dec 12, 2018 8:15 pm --------------------------------

I mean it to control need to use Adafruit code!
I’ve wrote wrong code
But I must learn c++ to know how combine code into arduino
and link in software to control!
Thanks a lot for help

My last work to build an amplifier is more then 10 years ago!
php, MySQL, html an Java is no Problem and a view
Years ago I wrote code for internet relay chat
But c++ not really
Pls understood I’m happy to have this forum an the help from members!


this another build with PCA function
https://github.com/NineteenFire




Return to Ferduino code





Who is online

Users viewing this topic: No registered users and 1 guest