{"id":29,"date":"2018-10-02T20:19:38","date_gmt":"2018-10-02T19:19:38","guid":{"rendered":"http:\/\/bassett.me\/mike\/blog\/wordpress\/?p=29"},"modified":"2020-11-05T16:00:17","modified_gmt":"2020-11-05T16:00:17","slug":"variable-colour-temperature-lamp-vctl","status":"publish","type":"post","link":"https:\/\/bassett.me\/mike\/blog\/wordpress\/electronics\/variable-colour-temperature-lamp-vctl\/","title":{"rendered":"Variable Colour Temperature Lamp &#8211; VCTL Mk2"},"content":{"rendered":"<p>Several years ago I made a lamp for Graham, my artistic brother. This was actually\u00a0 lamp with 2 LEDs; warm &#8211; 5300C and Cool &#8211; 6300C. Both were 2000lm. They were both adjustable in brightness by potentiometers so the effect was variable colour temperature. A simple PWM circuit controlled the power to the two lamps.<\/p>\n<p>What use is this? My brother sells prints of his pictures which involves taking a photo of them. If you take the photo in warm light it looks too warm when displayed in warm light. The same effect with cool light so you take a photo in cool light to show in warm light and vice versa.<\/p>\n<p>Problems: When moving house Graham dropped the lamp down the stairs &#8211; complete wreck. Well, it was only an experiment anyway :(. Trouble was Graham liked it. He hasn&#8217;t complained that it hasn&#8217;t been replaced yet &#8211; he wouldn&#8217;t.\u00a0 Also the original lamp flickered with some settings so a bit of redesign was needed.<\/p>\n<p>My replacement is only a little bit more sophisticated and has taken a long time to produce as I spend a lot of time in the garden and walking the dog.<\/p>\n<p>I was going to go completely mad and use a micro controller.\u00a0 Partly to annoy Graham who believes in KISS (Keep It Simple Stupid) as do I really.\u00a0 I succumbed.\u00a0 The end result used a 7555 timer, as it is more reliable than the 555, driving a dual op-amp from pin 6 which on a 12V supply gives a 4V pk-pk sawtooth wave.\u00a0 For the op-amps I used an LMC6482 dual amp as I have a few of them in my bits box and they&#8217;re pretty good.<\/p>\n<p>Choosing the brightness of the lamp involves a couple of choices:\u00a0 The power of the lamp being the main concern.\u00a0 I am using 4 off 12V 10W COB lights; 2 warm and 2 cool which I obtained from Deal Extreme but you can go up to 200W if you use adequate heatsink and power supply.\u00a0 If you are going to upgrade the power you will probably have to use a different MOSFET as well.\u00a0 Deal Extreme can supply both the LED&#8217;s and the power supply.<\/p>\n<p>The LED&#8217;s need a heatsink and this will determine the physical design of the whole lamp.\u00a0 Heatsinks can be a bit of a dark art.\u00a0 Trial and error come into it a lot and it is always best to err on the conservative side.\u00a0 The heatsink was the most expensive part of this project and in many respects the most complex:\u00a0 You can use a piece of aluminium sheet or for the lower powers you can buy one online.\u00a0 I advise that you get one of those cheap infrared thermometers so that you can see how hot it all gets.\u00a0 50\u00b0C is a good maximum temperature to aim for though you can go up to 70\u00b0C with slightly reduced reliability. You will need heatsink compound between the LED and heatsink otherwise the LED will get very hot and the heatsink will do nothing.\u00a0 A rough guide to the size of the heatsink in cubic centimeters can be made by multiplying the power by 10; so, a 100 Watt LED array would need a 1000 cc heat sink.\u00a0 This will keep the heatsink below 70\u00b0C if the air temperature is 20\u00b0C.\u00a0 This is a bit hazy as a specification if you are using aluminium sheet.\u00a0 As a guide my 40W LED&#8217;s needed a sheet of 2 mm thick aluminium about 25 cm on a side.\u00a0 If you are going for much more power you will need thicker aluminium as well as a larger area.<\/p>\n<p>There are ways to reduce the size of the heatsink.\u00a0 One is forced air cooling: If you blow air over the heatsink with a fan then a really fierce and noisy fan can reduce the size by a factor of 10, and a decent, moderate fan can reduce it to a quarter.\u00a0 If you increase the ambient or reduce the maximum temperature, then you will need a bigger heat sink.\u00a0 The key is the difference in temperature between the ambient and the heatsink.\u00a0 The above calculations are based on a difference of 50\u00b0C. \u00a0If you really want to go into it then you buy a heat sink rated with a \u04e8j of so many \u00b0C\/W from technical supplier and pay.\u00a0 Calculations aren\u2019t that difficult it\u2019s getting the heatsink specs in \u00b0C\/W.\u00a0 When it comes down to it it\u2019s still more of an art than a science.<\/p>\n<p><a href=\"http:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2020\/01\/VCTL2.png\"><img loading=\"lazy\" class=\"alignnone  wp-image-651\" src=\"http:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2020\/01\/VCTL2-300x132.png\" alt=\"\" width=\"583\" height=\"256\" srcset=\"https:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2020\/01\/VCTL2-300x132.png 300w, https:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2020\/01\/VCTL2-1024x450.png 1024w, https:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2020\/01\/VCTL2-768x338.png 768w, https:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2020\/01\/VCTL2-1536x675.png 1536w, https:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2020\/01\/VCTL2-2048x901.png 2048w, https:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2020\/01\/VCTL2-680x299.png 680w, https:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2020\/01\/VCTL2-740x325.png 740w\" sizes=\"(max-width: 583px) 100vw, 583px\" \/><\/a><\/p>\n<p>The lamp will be able to run off mains or a 12V battery. When both are switched on then the battery will be charged from the mains. The battery can be either a backup (car) battery or much preferably a deep discharge (leisure) battery. At full brightness my 40W lamp takes about 3.5Amps so a 60Ah battery should last about 15 hours; if it is a leisure battery. If you try this with a car battery it will become useless fairly quickly as they are not designed for deep discharge. You can however get away with discharging them to about 40% repeatedly. To make your 60Ah car battery last without dying on you, you need to treat it like a 36Ah battery.\u00a0 Connecting the battery, power supply and lamp is quite simple though I recommend that you put\u00a0 rectifier on the 12V output of the mains power supply so that the battery doesn&#8217;t operate the power supply crowbar.<\/p>\n<p>The controller and the lamp will be connected together by a 2 m long 4 core cable with plug on the lamp end<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Several years ago I made a lamp for Graham, my artistic brother. This was actually\u00a0 lamp with 2 LEDs; warm &#8211; 5300C and Cool &#8211; 6300C. Both were 2000lm. They&nbsp;[&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[21,11,9],"tags":[],"_links":{"self":[{"href":"https:\/\/bassett.me\/mike\/blog\/wordpress\/wp-json\/wp\/v2\/posts\/29"}],"collection":[{"href":"https:\/\/bassett.me\/mike\/blog\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bassett.me\/mike\/blog\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bassett.me\/mike\/blog\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bassett.me\/mike\/blog\/wordpress\/wp-json\/wp\/v2\/comments?post=29"}],"version-history":[{"count":16,"href":"https:\/\/bassett.me\/mike\/blog\/wordpress\/wp-json\/wp\/v2\/posts\/29\/revisions"}],"predecessor-version":[{"id":844,"href":"https:\/\/bassett.me\/mike\/blog\/wordpress\/wp-json\/wp\/v2\/posts\/29\/revisions\/844"}],"wp:attachment":[{"href":"https:\/\/bassett.me\/mike\/blog\/wordpress\/wp-json\/wp\/v2\/media?parent=29"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bassett.me\/mike\/blog\/wordpress\/wp-json\/wp\/v2\/categories?post=29"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bassett.me\/mike\/blog\/wordpress\/wp-json\/wp\/v2\/tags?post=29"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}