|
||||||||||||||||
|
||||||||||||||||
|
|
#106 |
|
Algae Grower
|
hi i have just testet the code and now it works.....
i donīt understand what has happened but now i worked!!! so thanks.... |
|
|
|
| Sponsored Links | |||
Advertisement | |||
|
|
#107 |
|
Newbie
|
Hello O2Surplus/Sink!
I just stumbled across this forum and your thread on your LED lighting project! Awesome work guys!! (first post...) I am amazed because I have been working on a similar system - so similar its scary actually! I had someone make some circuit boards with CAT4101 chips and 5v regulators with phoenix contact screw connectors to attach to strings of 6 CREE LEDs (XPG/XPE) and a 24v power supply. I bought the LEDs already (108 ) along with my 1 foot slabs of heat sink. The idea is to put 36 LEDs (6x6 array) per slab and control 3 colours (18white/12blue/6violet) independently via PWM from an Arduino and a Chronodot. I have all the components but haven't put it all together. You guys are way ahead of me, but nearly identical plan! Would love to see your circuit diagram on the cat4101 to compare to mine as well, your arduino code would save me hours and hours I am sure!! any chance at getting a peek? Again - would love to see a pic of the finished product - I plan to document my progress as well and am fine with sharing anything I do/have in terms of hardware/code/ideas. Martin aka Travelbug. |
|
|
|
|
|
#108 |
|
Planted Tank Obsessed
|
Hey TravelBug,
Here are the EAGLE files and a Bill of Materials for a 4 channel version of my CAT4101 driver board led driver. My design includes an Analog current adjustment for each channel of leds and a 12 volt power regulator for cooling fans ect.. Let me know if you need any help with design changes as I can quickly customize it for you if you'd like |
|
|
|
|
|
#109 | |
|
Newbie
|
Quote:
I'm new to the forum and I recently used with success Arduino LED lighting code, I state that I am not a programmer but, I follow with interest the development of the project and I'd like to contribute. I found a code (which I tested) that in relation to date returns the correct time for sunrise and sunset. It would be very nice to try and implement it. You can find the source code at this link http://www.arduino.cc/cgi-bin/yabb2/...1292938893/all |
|
|
|
|
|
|
#110 |
|
Algae Grower
|
great code...thanks o2surplus for recomendation....
|
|
|
|
|
|
#111 | |
|
Algae Grower
|
Quote:
I'm sure you found it, but the code can be found at the link in the first post. It needs the 0023 and earlier versions of Arduino due to some library incompatibilities. Fixing that is on my todo list. On that note I should also point out that I'll happily accept patches if anybody wants to add features/fix bugs/make the code run on arduino 1.0+. Just PM me or use the bitbucket repository in the first post. |
|
|
|
|
|
|
#112 | |
|
Algae Grower
|
Quote:
|
|
|
|
|
|
|
#113 |
|
Wannabe Guru
|
Something I have no idea how to add, but would love would be a minimum dimmming setting. Most of my lighting I want to fade all the way off, but is it possible to have a string stop at minimum value to act as the moonlights and then ramp up and down normally with the rest I the strings?
__________________
|
|
|
|
|
|
#114 | |
|
Algae Grower
|
Quote:
Code:
const int kDayState[] = { 600, 400 }; // daytime LED state
const int kNightState[] = { 0, 0 }; // nighttime LED state
Note that you can only *control* two channels using my code. If you have four strings and only want one to act as a moonlight, you could connect three of your strings to one channel and the fourth to the second channel and then control them that way. Does that meet your requirements? |
|
|
|
|
|
|
#115 |
|
Planted Tank Obsessed
|
Sink-
"JCGD" is running 2 of the controllers that I built for him, so he's up against the software limitations that are inherent to the original "Typhon" Firmware. Have you made any progress with modding the original code to make it behave more like your own AKL Tank Control code? |
|
|
|
|
|
#116 | |
|
Algae Grower
|
Quote:
I stalled on that point because the LCD control code in the Typhon firmware was such a spaghetti mess that to get the good stuff from my code in there would require rewriting everything -- a sizeable task and I'm trying to focus on work that allows me to eat That said I still have visions of getting that done at some point. |
|
|
|
|
|
|
#117 |
|
Algae Grower
|
I should point out that if people want to run my code on the Typhon, they can, with probably a few very minor modifications that I could help with. There would be some limitations -- the LCD wouldn't be functional and you'd only have two channels to spread out among your strings. But you would get the benefits of much smoother dimming and higher resolution on the LEDs. You'd need an adapter to let you reflash the Arduino to do this, since the Typhon doesn't speak USB.
|
|
|
|
|
|
#118 | |
|
Planted Tank Obsessed
|
Quote:
From what you've seen in the original Typhon firmware, do you think a "Minimum ON state" variable could be added to that code? I'd take a stab at adding it myself - if you think it can be done? |
|
|
|
|
|
|
#119 |
|
Algae Grower
|
The problem is that to add it and make it functional for people to use without having to reflash to make changes means not just adding the that minimum state check in the code (which isn't terribly hard), but also adding a new option to the LCD menu, which requires extensive changes to the LCD code (which sucks).
|
|
|
|
|
|
#120 |
|
Planted Tank Obsessed
|
Hey I've got an Idea! Now that I can buy Atmega's cheap and burn my own boot loaders, do you think we could do a complete re-design of the controller to use Dgital pins #9 & 10 from multiple ATMEGA chips using I2C or some other clever means? It should be possible? I don't know of hand if we would have to use some sort of master/slave configuration to do it or do it through a rotary encoder switch to address and send commands to multple AVR's? What do you think? If you can dream up the coding, I can build the prototype and we can have a controller that's truly our creation.
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|