Sometimes you get a chance to combine helping out your family with a nice hobby project..

In this case my father in law was looking for a lighting system for his bird breeding cages. A daylight simulation system to be exact. He asked me to take a look at a website which sells such systems, since he wanted to know what he needed to order. After a quick look at those websites and seeing their pricing.. I convinced my father in-law I would develop and install the system myself.. He would get his lighting, I would have a new hobby project!


Daylight-simulation systems

The requirements for a daylight simulation system are simple: lights should gradually (say in 20 minutes) increase to a set high intensity in the morning, stay at that intensity during the day, gradually decrease to a set lower intensity in the evening, and stay at the low intensity during the night.

Other 'non-functional' requirements of such systems: the light should not flicker (this is stressful for the birds), the dimming should be smooth (again related to stress), the system should be reliable..

This instructable describes how I built this system based on an Arduino, some N-channel NPN transistors, a real time clock, a character LCD and some cheap LEDs from eBay.

A sidenote: The birds are only in the cages for breeding, the remainder of the year they are in an outside bird sanctuary. So no animals were harmed for making this instructable!

I've submitted this project to the 
123D Circuits Contest and the 2014 makerlympics (both pending approval). So if you like this project: please vote for it! Thanks!

Step 1: Bill of materials

The base of the system is an Arduino Duemillenova. I think a Uno should work just fine. If you are considering to use a Leonardo or Mega: the code sets special registers in the Arduino.. these might be different for these boards!

furthermore the system uses:

  • an Arduino experimenting cape
  • a 16x4 character LCD (HD44780)
  • an I2C serial display adapter (or just get a serial LCD)
  • BD135 transistors (any NPN N-channel will do. Power MosFets would be even better)
  • a 7809 9v voltage regulator (12v to 9v for the Arduino)
  • A ds1302 RTC module
  • some capacitors and resistors
  • Cool white LED modules (12v led strips will also do)
  • an auto-reset fuse ( or normal fuse if you like)
  • Some switches (if you want to switch off unused cages). I used: http://www.conrad.nl/ce/nl/product/701011/
  • a 12v power supply (over dimensions). I used a 3.5A supply for 18 x 4 LEDs (total +- 18 watts)
  • A case: I used a Fibox TAM201610 http://www.conrad.nl/ce/nl/product/533259/

I think everything combined including shipping cost about 85 euro's

All items were sourced online from dealextreme, eBay, Conrad etc.. but any electronics store would do.

A note on 'daylight' LEDs

According to bird breeder forums and stores: birds need special daylight LEDs. Maybe this is true (I do not want to start a religious discussion), but to me such definitions feel a bit like high-end audio discussions...

I've seen special birdkeeper websites showing off 'home developed' LED units for which the CE marking is of the 'China Export' type. A quick search on eBay revealed that the advertised LEDs (which are sold at special discount prices of 5 EUR per unit) very much resemble 'Cool White store lighting' LED chains sold for around 10USD / 20 units. Therefore I feel that at least some of the advise is a sneaky way to overprice the LEDs.

Does anyone know where I can buy these units?
<p>Hi, this is really a great project for my birds!</p><p>But could you please post a little more detail on how to wire-up the whole thing together as this is not really clear right now.</p><p>Also what's the value of used resistors and capacitors, and again how should I wire the whole thing together? Of course a PCB layout would be perfect, but if not, an electrical wiring overview would be sufficient.</p>
<p>Great project, but what are &quot;N-channel NPN transistors&quot;?</p>
<p>eagle is easy to use to design a pcs and itead studio is good to order</p>
<p>It is a nice build and nice program. I am worried about the use of the power transistor. It has a beta of only ~25, so if you limit the arduino output to 20 mA this gives a maximum Ic of only 0.5 A. An enhancement mode MOSFET (e.g., </p><p>IRF540N) is able to drive a current to its limit (33 A for that one!) without loading the arduino. </p>
Hi Carlos,<br><br>Thanks for the comment!<br><br>You're right about the transistor. Based on the spec I figured I should be able to get 1A out of it.. fortunately I decided to stay well under this level by using multiple transistors and divide the LEDs in groups (each group driven by a separate transistor.). Your comment indicates the expected Ic is half of what I expected... That must explain the slight drop in brightness I see when powering all cages.. <br><br>I actually ordered the IRF540N &amp; IRF3205 transistors for this project.. unfortunately the delivery was severely delayed (that's what happens if you order cheap parts via eBay) so I used some basic transistors I had in stock...<br><br>This comment is exactly the type I was hoping for, so I will have to convince my father-in-law to temporarily shut down the system so I can replace the transistors.
<p>Hello there! I do not think you need to shutdown the system. Worst that can happen is you either fry one of the BD transistors or even the arduino IC. Both are easy and cheap to replace so don't worry too much!!! When the MOSFETs come you can replace the BD's (or maybe not at all and see what happens, interesting experiment!). </p><p>I also buy these type of components on ebay, takes usually 1 month to get here from China, but you can't beat the prices! Always buy 2x than you want so you build a stock of parts :)</p><p>Anyway, this discussion came in handy because I had someone just asking me 2 days ago about doing PWM on a 20A, 12 V DC motor and I had recommended the IRF540Ns...</p>

About This Instructable



Bio: A biomedical engineer working as a software designer in the medical devices sector.
More by pbronneberg:Bird cage LED daylight simulation system 
Add instructable to: