Guide: Arduino based LED controller for Current Satellite LED+ - Page 27
Planted Tank Forums
Your Tanks Image Hosting *Tank Tracker * Plant Profiles Fish Profiles Planted Tank Guide Photo Gallery Articles

Go Back   The Planted Tank Forum > Specific Aspects of a Planted Tank > DIY


Reply
 
Thread Tools Display Modes
Old 11-25-2013, 08:27 PM   #391
zodduska
Planted Member
 
zodduska's Avatar
 
PTrader: (4/100%)
Join Date: Aug 2013
Location: Oswego, IL
Posts: 289
Default

I was looking into dimming it, I think you can use a PWM pin and some code to do it but I'm not sure how. I'm personally adding a resistor to the default hookup tonight to reign in the brightness a little.

Edit: I put a 1k ohm resistor between the backlight 5v, red wire—second from the right in my pic, it's no longer annoyingly bright. Use a higher value resistor if you want it even dimmer.
__________________

Last edited by zodduska; 11-26-2013 at 01:01 AM.. Reason: .
zodduska is offline   Reply With Quote
Sponsored Links
Advertisement
 
Old 11-26-2013, 04:28 AM   #392
Tiger Muskie
Newbie
 
PTrader: (0/0%)
Join Date: Nov 2013
Location: Colorado
Posts: 2
Default Method to turn off LCD at night

Quote:
Originally Posted by zodduska View Post
I was looking into dimming it, I think you can use a PWM pin and some code to do it but I'm not sure how. I'm personally adding a resistor to the default hookup tonight to reign in the brightness a little.

Edit: I put a 1k ohm resistor between the backlight 5v, red wire—second from the right in my pic, it's no longer annoyingly bright. Use a higher value resistor if you want it even dimmer.
Thanks Zodduska, I also tried a few resistors found found one that gave a pleasing brightness.

Also I worked out a way to turn it on and off with alarms: I used Pin 13 as the power source for the backlight, and controlled it like this (with new "cases" for testing):

Code:
void SetAlarms()
{
// ... later ... 
  pinMode(13, OUTPUT); //DJT 11/25/13 for LCD screen power on and power off
  LCDPowerOn();        //DJT 11/25/13 Turn on LCD when program initializes
  Alarm.alarmRepeat(6,00,0, LCDPowerOn); 
  Alarm.alarmRepeat(7,00,0, M1Custom);
//... later ... end of day alarms
  Alarm.alarmRepeat(21,00,0, Moon2);
  Alarm.alarmRepeat(22,00,0, LCDPowerOff);
//... later ... cases for testing
    case 33:  //DJT 
      LCDPowerOn();
      break;
    case 34:   //DJT
      LCDPowerOff();
// ... later ... the functions:
void LCDPowerOn() //DJT
{digitalWrite(13, HIGH);}
void LCDPowerOff()  //DJT
{digitalWrite(13, LOW);}
This works so far - now my fish won't stay up all night watching the LCD!
Tiger Muskie is offline   Reply With Quote
Old 11-26-2013, 11:00 PM   #393
zodduska
Planted Member
 
zodduska's Avatar
 
PTrader: (4/100%)
Join Date: Aug 2013
Location: Oswego, IL
Posts: 289
Default

Nice, thanks for the code!
__________________
zodduska is offline   Reply With Quote
Old 11-27-2013, 05:50 AM   #394
Texan78
Planted Tank Enthusiast
 
Texan78's Avatar
 
PTrader: (0/0%)
Join Date: Nov 2013
Location: North Texas
Posts: 836
Default

Hey guys, I just need some advice since this is where I fail when it comes to the technical side. I am ordering all my parts and the last thing I am stumped on is how to power this PCB that will contain the RF receiver with IR emitter to fire at the fixture IR. My thought was to use a 3.6V @ 110mAh coin cell battery breakout. Would that been enough to power the PCB with the RF receiver and IR emitter?

-Thanks!
Texan78 is offline   Reply With Quote
Old 11-27-2013, 02:30 PM   #395
zodduska
Planted Member
 
zodduska's Avatar
 
PTrader: (4/100%)
Join Date: Aug 2013
Location: Oswego, IL
Posts: 289
Default

edit: Nevermind, I forgot you were doing the RF thing.
__________________
zodduska is offline   Reply With Quote
Old 11-27-2013, 06:22 PM   #396
Texan78
Planted Tank Enthusiast
 
Texan78's Avatar
 
PTrader: (0/0%)
Join Date: Nov 2013
Location: North Texas
Posts: 836
Default

Quote:
Originally Posted by zodduska View Post
edit: Nevermind, I forgot you were doing the RF thing.
Yeah I am going to be the odd ball guinea pig on this. I did order the parts to do it the regular way though too in case it doesn't work.
Texan78 is offline   Reply With Quote
Old 11-28-2013, 02:03 AM   #397
Indychus
Planted Tank Enthusiast
 
Indychus's Avatar
 
PTrader: (8/100%)
Join Date: Feb 2013
Location: Irmo, SC
Posts: 645
Default

It won't take much power to fire the LED. I'd start by looking at the spec sheet for your RF receiver.

Sent from my HTC One X using Tapatalk
__________________
The Fraternity of Dirt
Check out my open-source Arduino-Powered Light Controller Guide for Current LED+ and other IR switchable lights.
Indychus is offline   Reply With Quote
Old 11-28-2013, 09:30 AM   #398
Texan78
Planted Tank Enthusiast
 
Texan78's Avatar
 
PTrader: (0/0%)
Join Date: Nov 2013
Location: North Texas
Posts: 836
Default

Here is the spec sheet for the one I am going to be using. It says 5V for the supply power. These cell batteries only supply 3V so I am concerned that won't be enough or that is what receiver puts out.

http://dlnmh9ip6v2uc.cloudfront.net/...Data_Sheet.pdf
Texan78 is offline   Reply With Quote
Old 11-28-2013, 03:30 PM   #399
cmbranch13
Newbie
 
PTrader: (1/100%)
Join Date: Mar 2013
Location: Dallas, TX
Posts: 2
Default

I suggest that you consider using a pre-build zigbee, bluetooth, or z-wave ardunio shield rather than trying to build you own unless you are very skilled in electronics. Wireless and RF are fairly difficult to get working.

Take a look at this shield http://arduino.cc/en/Main/ArduinoXbeeShield.

It should meet your requirements and will be much more reliable and easier to use.
cmbranch13 is offline   Reply With Quote
Old 12-02-2013, 02:43 AM   #400
Dave6265
Algae Grower
 
PTrader: (0/0%)
Join Date: Nov 2011
Location: NJ
Posts: 125
Default

Is anyone out there putting this DIY into a nice package and selling it?

I know I am not the only one hoping someone can deliver on the goods we were all hoping would come when we bought these lights. I am completely clueless when it comes to coding, and attempting this would only lead to wasted time, frustration, and a broken controller.
Dave6265 is offline   Reply With Quote
Old 12-02-2013, 02:54 AM   #401
Indychus
Planted Tank Enthusiast
 
Indychus's Avatar
 
PTrader: (8/100%)
Join Date: Feb 2013
Location: Irmo, SC
Posts: 645
Default

You don't need to know any coding, we've already done it for you. If you can put it together and copy/paste the code, you're good to go. I had hopes of making a complete unit to sell, but my work schedule is crazy right now and I'm always out of the country.

My intentions from the beginning were for this to be open-source. If someone else has the skills and time to build these to sell I'm fine with it, as long as its sold at as low a cost as possible to support the community and not to make money.

Sent from my HTC One X using Tapatalk
__________________
The Fraternity of Dirt
Check out my open-source Arduino-Powered Light Controller Guide for Current LED+ and other IR switchable lights.
Indychus is offline   Reply With Quote
Old 12-02-2013, 09:48 PM   #402
O2surplus
Planted Tank Enthusiast
 
O2surplus's Avatar
 
PTrader: (4/100%)
Join Date: Jan 2010
Location: "The Land of Fruits & Nuts"
Posts: 624
Default

Quote:
Originally Posted by Indychus View Post
You don't need to know any coding, we've already done it for you. If you can put it together and copy/paste the code, you're good to go. I had hopes of making a complete unit to sell, but my work schedule is crazy right now and I'm always out of the country.

My intentions from the beginning were for this to be open-source. If someone else has the skills and time to build these to sell I'm fine with it, as long as its sold at as low a cost as possible to support the community and not to make money.

Sent from my HTC One X using Tapatalk
If you'll post a complete wiring diagram and parts list, I'll convert it into a Printed Circuit Board for you. This project can be boiled down to a "stand alone" arduino based controller that will free up your stock UNO or MEGA for other uses.
__________________
225 Gal, Glass "Reef Ready" w/ twin Iwaki Pumps & 2 Ocean Clear inline filters. Custom 320 watt LED Lighting system utilizing a 6' Maker's Heat Sink, 12 BridgeLux Vero 18's,3 purpose built 5 channel A6211 Led driver/Controllers, and a 20lb CO2 system w/ Milwaukee Ph Controller.
O2surplus is online now   Reply With Quote
Old 12-10-2013, 03:43 AM   #403
Texan78
Planted Tank Enthusiast
 
Texan78's Avatar
 
PTrader: (0/0%)
Join Date: Nov 2013
Location: North Texas
Posts: 836
Default

I got all my goodies finally and I am jumping into this build and trying to play catch up. Where do I find these libraries?

RTClib
IRremote
LiquidCrystal

When I try to load the most recent sketch I am getting this error which I am sure it is because I am missing those libraries.

Code:
Satellite__3_6:23: error: 'time_t' does not name a type
Satellite__3_6:19: error: 'RTC_DS1307' does not name a type
Satellite__3_6:20: error: 'IRsend' does not name a type
Satellite__3_6.ino: In function 'void SetAlarms()':
Satellite__3_6:75: error: 'Alarm' was not declared in this scope
Satellite__3_6.ino: In function 'void setup()':
Satellite__3_6:91: error: 'RTC' was not declared in this scope
Satellite__3_6:98: error: 'DateTime' was not declared in this scope
Satellite__3_6:101: error: 'syncProvider' was not declared in this scope
Satellite__3_6:101: error: 'setSyncProvider' was not declared in this scope
Satellite__3_6:103: error: 'Alarm' was not declared in this scope
Satellite__3_6.ino: In function 'void loop()':
Satellite__3_6:117: error: 'Alarm' was not declared in this scope
Satellite__3_6.ino: At global scope:
Satellite__3_6:122: error: 'time_t' does not name a type
Satellite__3_6.ino: In function 'void ThunderStorm()':
Satellite__3_6:149: error: 'Alarm' was not declared in this scope
Satellite__3_6:165: error: 'Alarm' was not declared in this scope
Satellite__3_6:167: error: 'Alarm' was not declared in this scope
Satellite__3_6:169: error: 'Alarm' was not declared in this scope
Satellite__3_6.ino: In function 'void digitalClockDisplay()':
Satellite__3_6:176: error: 'hour' was not declared in this scope
Satellite__3_6:177: error: 'minute' was not declared in this scope
Satellite__3_6:178: error: 'second' was not declared in this scope
Satellite__3_6.ino: In function 'void lcdClockDisplay()':
Satellite__3_6:184: error: 'hour' was not declared in this scope
Satellite__3_6:185: error: 'minute' was not declared in this scope
Satellite__3_6.ino: In function 'void SendCode(unsigned int, byte, const char*)':
Satellite__3_6:333: error: 'irsend' was not declared in this scope
Satellite__3_6:334: error: 'Alarm' was not declared in this scope
Texan78 is offline   Reply With Quote
Old 12-27-2013, 08:45 PM   #404
dswiese
Planted Member
 
PTrader: (3/100%)
Join Date: Dec 2012
Location: Portland
Posts: 156
Default

Quote:
Originally Posted by Texan78 View Post
I got all my goodies finally and I am jumping into this build and trying to play catch up. Where do I find these libraries?

RTClib
IRremote
LiquidCrystal

When I try to load the most recent sketch I am getting this error which I am sure it is because I am missing those libraries.
I am just jumping into this project as well and the links are scattered through the thread. LiquidCrystal should be a default in the sdk.
I saved the others here for my own purposes (zip file) https://dl.dropboxusercontent.com/u/6572814/Archive.zip
__________________
55g
dswiese is offline   Reply With Quote
Old 12-27-2013, 08:52 PM   #405
Texan78
Planted Tank Enthusiast
 
Texan78's Avatar
 
PTrader: (0/0%)
Join Date: Nov 2013
Location: North Texas
Posts: 836
Default

I've pretty much put this project on the back burner until I have some free time with nothing to do. I am not using the Sat+ anymore for my primary lights. I am just using them for moonlights and the Ramp Timer takes care of that in conjunction with my BMLs on my Apex.
Texan78 is offline   Reply With Quote
Reply

Tags
arduino, automation, current led+, diy, light controller

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:03 AM.


Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright Planted Tank LLC 2012