Guide: Arduino based LED controller for Current Satellite LED+ - Page 27 - The Planted Tank Forum

 
LinkBack Thread Tools Display Modes
post #391 of 713 (permalink) Old 11-25-2013, 08:15 PM
Newbie
 
Join Date: Nov 2013
Location: Colorado
Posts: 2
Hi Indychus and others:

Thank you very much for providing this clear step-by-step guide for the project. I have it up and running on my 29 gallon tank with the RTC and LCD display.

Question: Has anyone worked out a method for turning off the LCD backlight at night?
My fish all gather in the corner of the tank by the LCD and stare at it all night, and more importantly, my wife doesn't like it!

Thanks!

Last edited by Tiger Muskie; 11-26-2013 at 03:19 AM. Reason: Clarification
Tiger Muskie is offline  
Sponsored Links
Advertisement
 
post #392 of 713 (permalink) Old 11-25-2013, 08:27 PM
Planted Member
 
zodduska's Avatar
 
Join Date: Aug 2013
Location: Oswego, IL
Posts: 290
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  
post #393 of 713 (permalink) Old 11-26-2013, 04:28 AM
Newbie
 
Join Date: Nov 2013
Location: Colorado
Posts: 2
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  
post #394 of 713 (permalink) Old 11-26-2013, 11:00 PM
Planted Member
 
zodduska's Avatar
 
Join Date: Aug 2013
Location: Oswego, IL
Posts: 290
Nice, thanks for the code!
zodduska is offline  
post #395 of 713 (permalink) Old 11-27-2013, 05:50 AM
Planted Tank Enthusiast
 
Texan78's Avatar
 
Join Date: Nov 2013
Location: North Texas
Posts: 835
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  
post #396 of 713 (permalink) Old 11-27-2013, 02:30 PM
Planted Member
 
zodduska's Avatar
 
Join Date: Aug 2013
Location: Oswego, IL
Posts: 290
edit: Nevermind, I forgot you were doing the RF thing.
zodduska is offline  
post #397 of 713 (permalink) Old 11-27-2013, 06:22 PM
Planted Tank Enthusiast
 
Texan78's Avatar
 
Join Date: Nov 2013
Location: North Texas
Posts: 835
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  
post #398 of 713 (permalink) Old 11-28-2013, 02:03 AM Thread Starter
Planted Tank Enthusiast
 
Indychus's Avatar
 
Join Date: Feb 2013
Location: Irmo, SC
Posts: 652
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  
post #399 of 713 (permalink) Old 11-28-2013, 09:30 AM
Planted Tank Enthusiast
 
Texan78's Avatar
 
Join Date: Nov 2013
Location: North Texas
Posts: 835
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  
post #400 of 713 (permalink) Old 11-28-2013, 03:30 PM
Newbie
 
Join Date: Mar 2013
Location: Dallas, TX
Posts: 3
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  
post #401 of 713 (permalink) Old 12-02-2013, 02:43 AM
Algae Grower
 
Join Date: Nov 2011
Location: NJ
Posts: 139
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  
post #402 of 713 (permalink) Old 12-02-2013, 02:54 AM Thread Starter
Planted Tank Enthusiast
 
Indychus's Avatar
 
Join Date: Feb 2013
Location: Irmo, SC
Posts: 652
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  
post #403 of 713 (permalink) Old 12-02-2013, 09:48 PM
Planted Tank Enthusiast
 
O2surplus's Avatar
 
Join Date: Jan 2010
Location: "Out West, in the Land of Fruits & Nuts"
Posts: 818
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.Lighting- Custom built DIY 600 watt LED system, BlueFish "mini" Led Controller,iAqua Aquarium Controller , and a 20lb CO2 system w/ Milwaukee Ph Controller.
O2surplus is offline  
post #404 of 713 (permalink) Old 12-10-2013, 03:43 AM
Planted Tank Enthusiast
 
Texan78's Avatar
 
Join Date: Nov 2013
Location: North Texas
Posts: 835
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  
post #405 of 713 (permalink) Old 12-27-2013, 08:45 PM
Planted Member
 
Join Date: Dec 2012
Location: Portland
Posts: 201
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, 10g, SpecII
dswiese is offline  
Reply

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

Quick Reply
Message:
Options

Register Now



In order to be able to post messages on the The Planted Tank Forum forums, you must first register.
Please enter your desired user name, your email address and other required details in the form below.

User Name:
Password
Please enter a password for your user account. Note that passwords are case-sensitive.

Password:


Confirm Password:
Email Address
Please enter a valid email address for yourself.

Email Address:
OR

Log-in









Human Verification

In order to verify that you are a human and not a spam bot, please enter the answer into the following box below based on the instructions contained in the graphic.



Thread Tools
Show Printable Version Show Printable Version
Email this Page Email this Page
Display Modes
Linear Mode Linear Mode



Posting Rules  
You may post new threads
You may 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
Trackbacks are On
Pingbacks are On
Refbacks are On

 
For the best viewing experience please update your browser to Google Chrome