Who wants a cheap, simple, Arduino-based LED controller?

This is my first app project so it's a learning curve for me honestly. I finally managed to get the buttons for Normal,All Max and All Min working. Reason I went with the BT app is because we can plug it in after the typhon sketch is uploaded. Ethernet and Wifi wouldn't work as they use different pin already in use. I could probably try something for the Hydra Project but I haven't really looked at that sketch nor do I have a working unit to test it out on. Google is my friend....yeah right...lol. It took 4 days of searching and trying different things til I got the buttons working...But i still need to add a settings page for the LEDs and one to set the time so it'll be a while before this project is complete.But if your just looking for an app that for the typhon that you can turn on all the lights and back to normal mode it's complete and I can change the layout of the buttons just for that for now and post the apk file for the android.

The main goal for this was to get my feet wet in making an app. For this project it's to get the current values of each channel displayed, all the buttons and the slider to set the %, as well as being able to set the on/off times,Max/Min values and last but not least setting the time and date.
 
Here is the coding that needs to be added to the sketch for use with the BT Module...

Code:
void serialCommands() 
{
  int command = 0;       // This is the command char, in ascii form, sent from the serial port     
  //int i;
  //byte test; 
  
  if (Serial.available()) {      // Look for char in serial que and process if found
    command = Serial.read();

    if (command == 65) {      // "A" = Timer
          overSelect = 0;
    }
    
    if (command == 66) {      // "B" = All Max
          overSelect = 1;
    }

    if (command == 67) {      // "C" = All Min
          overSelect = 2;
    }
    
  }
      
  command = 0;                 // reset command 
  //delay(100);
}

Then this in the Loop:
Code:
serialCommands();
 
So the first thing you need to upload this sketch.
then press each button and note the value shown on the display.
Code:
#include <LiquidCrystal.h>
LiquidCrystal lcd(8, 7, 5, 4, 16, 2);
int a=0;
int bkl         = 6; 
        
byte bklIdle    = 10;       
byte bklOn      = 100;       
int bklDelay    = 10000;   
unsigned long bklTime = 0;


void setup()
{
  pinMode(bkl, OUTPUT);
  digitalWrite(bkl, HIGH);

lcd.begin(16, 2);

pinMode(A0, INPUT);

}
void loop()
{
a = analogRead(0);
lcd.clear();
lcd.setCursor(0,0);
lcd.print("  analogRead() ");
lcd.setCursor(0,1);
lcd.print("  value is :");
lcd.print(a);
delay(250);
}

This is the sketch for the controller to the lines that are shown to change the values ​​
Attached is the all code modified, you change the values you wrote before, ​​only where there are "arrows change"
example:
Code:
fourButtons.setBounce(10);
	fourButtons.setErrorWindow(26);
	fourButtons.setDelay(10);
	fourButtons.setRefOff(60);
	fourButtons.setRef(MenuButton,[B]838[/B]);       //  <-----------change value
	fourButtons.setRef(SelectButton,[B]695[/B]);     //  <-----------change value
	fourButtons.setRef(PlusButton,[B]511[/B]);       //  <-----------change value
	fourButtons.setRef(MinusButton,[B]177[/B]);      //  <-----------change value

PDE_Buttons_A0.pde
Buttons.rar
 
Ok I've been reading through posts back to 2010. FanFreakingTastic! The early posts had me very excited, as I read on, and more experts started weighing in I became a little wary. I have visited the site "http://code.google.com/p/typhon-reef/downloads/list" but was not able to find anything, code, supply list, instructions, manual. I would really like to jump in here, I'm finishing up my 2 LED projects using the Mean Well ELN-60-48D. Can some one point me to the details?
 
Still no luck...

Still no luck...

I tried again with both Chrome and IE. I get in and can poke about but non of the files are a recognized format - except one XLS. But when I open it all I get is basically what's in the attached file.
 

Attachments

  • TyphoneReef xls files.jpg
    TyphoneReef xls files.jpg
    33.8 KB · Views: 5
The BOM on google is more or less up to date. I just used it to order parts last week and everything from Mouser was in stock.

The Typhon was really designed to control LEDs, with the potential for expansion. There's nothing in the core project to do what you're describing out of the box, but the potential is definitely there. A popular way to get temps is to use one wire temp sensors (DS1820). A popular way to read switch states and turn pumps on and off would be to use an I2C I/O berakout board (see the one that's a part of the Hydra project) with a relay board.

Speaking of the Hydra, it was really designed from the ground up to be a whole-tank controller, so it has some things out of the box that the Typhon does not have. But, of course, they're both Arduino-based, so they basically have the same potential functionality. It's really a matter of what comes out of the box as part of the design vs. what you have to build yourself.


Thanks Der. The Typhon will probably do for now as the rest is just eye candy more or less :) Both of the LED setups allow for dimming and I think it would be better for the tank in the long run if I went that route. The potentiometers are fine but tieing a brightness to a rolling time means I probably get a more accurate and consistent light in the end.

I wouldn't know where to put the temp sensor as you suggest I'm afraid. I'm ok with putting the parts together and the solder, etc. But adding in things is a bit over my skill set today. 10 years or so ago maybe :)
 
Hmm...what are you thinking of doing? I believe my son has two on his bio-cube - the 60-48D's. If it isn't super crazy he may let me take a look. His Rose Bubble Tip finally adjusted to the LED's and he may not let me :)
 
I was thinking (again) about modifying the way the transistors switch the 10v signal but the more I look at the design the less clear it becomes as to exactly how I would modify it without a total redesign. So, I might need to think about it for a bit before I actually need a volunteer after all...

This is part of my on-again off-again desire to do a 2.0 version that fixes some of the problems with the current hardware.
 
Ok, well let me know. I'm actually interested in building two of these if it helps any and could chip in if you buy more boards. As I mentioned my son's kit is using the mean wells and my new bio-cube is using the kit from Steve's. I'm not sure what power supply he is using but his driver is something I guess he made or sub'd out. It also accepts the dimming signal.

I don't have a lot of coral in my tank since I moved my 6 gallon nano over and they wouldn't mind me abusing their light a bit :)
 
The drivers from Steve's use the CAT4101 IC, which was popularized in the DIY driver thread - I've probably got about 40 of those around my house so I'm all set there as far as experimentation. :D
 
Hey guys,

Sorry to jump in here but I'm hoping that someone more familiar with the typhon can help me out.

I'm looking for confirmation that the voltage readings coming from my 5v and 10v channels on the controller looks correct. I'm having a dimming issue and need to determine if it's the controller or my drivers.

5v Channels

005.jpg

007.jpg

017.jpg

009.jpg
 
Yes all the individual parts are working, (excluding the ethernet, that's later) I have been able to get Spuzzum's ADC test code to work, and I'm able to add the clock to that code and it displays. I can load the typhon code, and it displays the normal menu (but of course the buttons don't work.)

The Typhon code uses a "CheckButtonAction" or some other method to catch the key presses on individual pins. The ADC keyboard uses the i2c bus and I'm having trouble sending (catching) something the old code can understand. I can post code samples once I get home, if that will help.

Yeah, code samples would help. Maybe Spizzum will come along and offer some guidance. This is one thing I haven't yet done on this controller.

My apologies for being MIA.. I'm having to move and it's stressing me out :p


As far as I can tell with the ADC keys and the Typhon script...

Down where the menu options start, you need to configure a "case" instance for each command you want to achieve, and assign whatever function to whatever key. This would lead to empty commands for unused buttons within the "case".

Sorry for lack of better terms.. I'm not a coder :p

As for what I did with the version of Typhon I'm working on.. I just disabled the backlight PWM, and renamed it lcdDelay, and readjusted the lines in the script calling for "bkl".. as I want all 6 PWM channels, and will control backlight with a push switch instead.. up for off: signal goes through resistor to backlight pin, down for on: signal bypasses resistor straight to backlight pin. I'm also planning a thumb-turn trimpot to adjust the maximum brightness as well.

I did make the Deuligne lcd adapter, and that freed up 2 PWM pins and a few more digital pins as well.

Other than that.. I'm still using DWZM's keys.. it was easier :p.



Oh.. I also created a master on/off time, then set the eeprom to only save the master start time, master end time, master photoperiod, and each individual max intensity levels. Everything else is done in the script.. I manually set each channel's fade start/end times according to the previous channel's times, so if I change the photoperiod via the menu controls then do a reset.. it adjusts each channel's photoperiods accordingly. This freed up tons of memory.. I found it would freeze up with full menu items for all 6 channels. I also noticed the display would flicker when the minute changed, and even seconds would seem to stutter.. not really in time, with all 6 channels in memory. Now.. it runs smoooooth :D.
 
Here's my version so far.. also has the DallasTemp stuffs saltydogaqua posted for me :)

My fixture's going to be a 3 piece heatsink, so I'm using 3 temp sensors. "This" controller's just for the light.. not enough memory or pins for much more. Will be making a second controller for everything else. :)

http://www.mediafire.com/?cvv3q8zn29wkhi5
 
Back
Top