1 / 36

TEAM 8: FULL COLOR AND BRIGHTNESS ADJUSTABLE LED LAMP

TEAM 8: FULL COLOR AND BRIGHTNESS ADJUSTABLE LED LAMP. Kwin Xie Praveen Pradeep Tianyu Qi. Introduction. Purpose: Build an LED lamp capable of being remotely controlled to output nearly any color combination over a full visible light spectrum Benefits: Energy Efficient

amber
Télécharger la présentation

TEAM 8: FULL COLOR AND BRIGHTNESS ADJUSTABLE LED LAMP

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. TEAM 8:FULL COLOR AND BRIGHTNESS ADJUSTABLE LED LAMP Kwin Xie Praveen Pradeep Tianyu Qi

  2. Introduction • Purpose: Build an LED lamp capable of being remotely controlled to output nearly any color combination over a full visible light spectrum • Benefits: • Energy Efficient • Wide arrange of immediate status indicators • Sunlight replication has mood enhancing effects • Certain colors advantageous in different situations e.g. reading, volatile chemicals, etc.

  3. Objective • Operate using IR Remote • Independently adjust brightness of each LED (R,G,B) • Replicate sunlight • Create a product that is scalable for greater brightness

  4. Original Design

  5. Original Design • Extension of EOH Project • Modular Design to Facilitate Easy Division of Work • Three Distinct Parts: IR Receiver, PWM, LED Circuit

  6. Project Build Final Design • Eliminated second PIC for room considerations • Chose Set Resistor Values Instead of Potentiometers • IR Input to Pin 7

  7. Infrared Receiver Circuit & Code Components • Toshiba TV Remote Control • Panasonic Infrared Receiver Chip • MicroChip PIC 16F877A

  8. Infrared Receiver Circuit & Code Toshiba CT-900037 • 38 kHz Carrier Frequency • Bit Scheme • Used digital oscilloscope to capture the signal • Control Scheme • Assigned functions to buttons based on design needs

  9. Infrared Receiver Circuit & Code Control Scheme • Set LED Brightness Value • Red, Green, and Blue LED Select • Power • Sunlight Replication and Transition Mode • Increment/Decrement Brightness

  10. Infrared Receiver Circuit & Code Start Signal 13.64 ms 0-bit 1.110 ms 1-bit 2.240 ms Total 32 bits 67.24 ms

  11. Infrared Receiver Circuit & Code 64 191 7 248 | Start Signal | 00000010 | 11111101 | 1 1 1 00000|000 1 1 1 1 1| | Start Signal | 00000010 | 11111101 |000 1 0000|1 1 1 0 1 1 1 1| 64 191 8 247

  12. Infrared Receiver Circuit & Code Panasonic PNA 4602M • Off the Shelf Chip vs Custom Circuit • Cheaper, better, more convenient • 3-pins – Vo, GND, and Vcc

  13. Infrared Receiver Circuit & Code Tests • Power Consumption • 5V*0.001A = 0.005 W • Range and Operating Envelope Tests • Max: 81 ft • Angle: Up to 105 Degrees from Center

  14. PIC 16F877A • Operating speed  20 Mhz external clock  200 ns instruction cycle • Operating temperature ~-55 to +125°C • Max current ~300 ma

  15. Epson Crystal Oscillator • 20.0 Mhz • Same as the one used in PIC data sheet • Smaller than Fox 20.0 Mhz oscillator • Operating temperature~-20oC to 70oC

  16. Infrared Receiver Circuit & Code PIC 16F877A • Code was incorporated into the main PWM code • Numerous Challenges Faced • How to handle start code • Trial and Error for correct Threshold • How to handle bad signals Initialize PWM, I/O Ports, and Variables Sample Input Pin, wait for Falling Edge Call “GetSignal” Function Update PWM

  17. Infrared Receiver Circuit & Code GetSignal Function Array[Index] = 0 T < Threshold Check Timer Value Index++ Timer = 0 T > Threshold Falling Edge Array[Index] = 1 Convert Bits 16-23 to Decimal Value Check Time Since Last Falling Edge Return Value Loop Times Out Timer ++ No Falling Edge

  18. Mode Selection Flowchart Select mode based on RGB value from GetSignal() SUNLIGHT Set duty to sunlight mode TRANSITION If duty[i]<255 increment once each cycle until 255. If 255 is reached, decrement once each cyclye until 0. Repeat CONSTANT DISPLAY Choose the color based on variable RGB. Set the color’s duty[i] = Value [updated by GetSignal()] Program PWM

  19. Apparent Magnitude Scale • Apparent magnitude • M1-M2 = -2.5log(PWM1/PWM2) • M1-M2 = -1 indicates that source 1 is perceived to be twice as bright as source 2. • PWM = 13.7583*X^1.329

  20. Sunlight Replication • Measured each LEDs total output (= Ir,Ig,Ib)

  21. Sunlight Replication • Calculated wavelength at peak brightness of each LED (=wr,wg,wb) • Measured relative height of sunlight spectrum at wr,wg,wb(= Hr,Hg,Hb) • Calculated PWM for each LED using Ii*PWMi = constant*Hi(wi )

  22. Hardware Circuit

  23. Light-emitting Diode Specifications • Kingbright 3W RGB LED • 350 mA max current each channel • Built-in zener protection • Aim for max output power for each color, match luminosities through PWM

  24. Current amplification • Increase current output from PIC (25 mA max) • Common-emitter amplifier configuration of BJT • BC337 NPN capable of driving 350 mA+ • 680 ohm base resistors ensure operation in saturation region

  25. Current-limiting Resistors • Increase current output from PIC • Affix current magnitude through each LED to be near 350 mA Set Ic around 330 mA. For red at worst-case: Magnitude always around this value at worst-case, duty cycle varies through PWM output

  26. Testing Current through LEDs • Measure voltage across current-limiting resistors and divide by resistance • Make up for differences in ‘expected’ current and luminosity in scaling factor through PIC

  27. Red LED channel voltage Red at 5 brightness setting on remote Ir,measured=1.06/8.7=122 mA

  28. Green LED channel voltage Green at 2 brightness setting on remote Ig,measured=1.27/6.8=187 mA

  29. Blue LED channel voltage Blue at 8 brightness setting on remote Ib,measured=1.14/6.2=184 mA

  30. PCB Fabrication and Mounting • Switch from 2 to 1 PIC design enabled 4 x 3 in. PCB size and layout in EAGLE • PCB enclosed within lamp on stand • Sensor and DC power supply wires run out from bottom

  31. Testing – Sunlight Replication

  32. Testing-Brightness and Efficiency

  33. Testing-Temperature • Left LEDs at max for 18 hours • Temperature increase in LED and PIC imperceptible • All functions tested successfully • Fuse still intact

  34. Successes and Challenges • Decoding 1-bits and 0-bits • Troubleshooting problems with new IR Receiver Chip • Two PIC Modular Design vs Single PIC • LED Light Dispersal

  35. Recommendations • USB Interfacing • Feedback Control (match sunlight at different times of day) • Programmable sequences • Scaling up – green, blue more important for reading

  36. Questions?

More Related