The Datasheet Archive - 100 Million Datasheets from 7500 Manufacturers.    


Datasheet Search Engine   
 
Part # or Description: • 5V RS232 Driver • 2SC5066* • "Real Time Clock" • "USB connector" • "blue led" 5mm • 10 watt zener diode • 2N3055* motorola
 
Search Tip: Try entering the part number only. Include a wildcard (eg. lm317* or 1n4148*)

 

 

Dimming Incandescent Lamps Using PIC10F200 WARNING This symb


Datasheet Thumbnail

  

Download PDF



Top Searches for this datasheet



TB094
Dimming Incandescent Lamps Using PIC10F200
WARNING
This symbol indicates that building using system described this document will expose electric shock.
Only persons experienced electrical manufacture should this document complete system described. FAILURE FOLLOW PROPER SAFETY PRECAUTIONS COULD RESULT PERMANENT INJURY DEATH ELECTRIC SHOCK HAZARDS. avoid risk injury from electric shock, build, use, system described this document without implementing proper safety measures. Microchip Technology Inc. makes representation that system shown this document meets standards that govern performance, consumer safety, electrical interference characteristics system described herein. recommend that contact applicable governing body your geography determine standards which should manufacture your system. Author: Keith Curtis Microchip Technology Inc. Generating delayed triggering triac initially involved network with variable which created required time delay. However, simple circuit gate drive, still suffers from nonlinearity's sinusoidal shape waveform. Production dimmers alleviated this problem creating custom potentiometer with nonlinear resistance curve, which approximated linear dimming. But, high voltages involved, there still significant amount heat dissipated resistor. what about using microcontroller control triac? generate appropriate timing delay using table produce linear dimming curve, microcontroller opens number user interface possibilities. Unfortunately, microcontrollers line voltages, they need low-voltage power supply operate. Transformerless designs supply lower voltage, their efficiency would still dissipate significant amount heat. this point that nano-Watt technology comes rescue. Given extremely low-current consumption, possible reduce heat generated transformerless power supply down reasonable levels. Note: mention EMI/RFI filtering made this design. production design must have EMI/RFI filtering prevent noise generated part dimming progress from interfering with external systems.
INTRODUCTION
earliest circuits home electronics venerable incandescent lamp dimmer. also most challenging circuits right. this technical brief will examine using microcontroller both simplify circuit make efficient.
THEORY
Early dimmers were very simple circuits, much more than high-current rheostat (variable resistor) wired series with lamp. low-light conditions, adjusted high resistance, reducing current through lamp filament. high-light conditions, adjusted resistance increasing current flow filament. However, because essentially current limiting resistor, typically dissipated heat, especially middle range. search more efficient method dimming. With advent semiconductor thyristors, method dimming born. method dimming involved delaying turn-on time triac until controlled time after each zero crossing. Because zero crossing resets triac (turning off), delay essentially pulse width modulated lamp, delivering only portion potential current each cycle dimming lamp.
2005 Microchip Technology Inc.
DS91094A-page
TB094
HARDWARE
nano-Watt microcontroller used generate feature rich dimmer design. this design, will designing dimmer incandescent lamps with following features. Capable delivering 100-200 Watts power VAC. user interfaces; based infrared remote control system, second based interruptions supply caused user toggling switch existing in-house switched outlet. Low-power dissipation, resistor-based transformerless power supply. Small form factor. when choose triac, will want small sensitive-gate triac capable switching amps. should have minimal hold current requirement limit amount time that will have supply gate current. addition, power supply must have rail tied same line triac, avoid bias quadrant four. This will cause circuit only sink current triac gate, forcing operation quadrants three. L6004D3 device from Teccor only requires typical gate current drive minimum hold current less than addition, device available small package compact circuit. Assume that load Watt light bulb with typical filament resistance approximately triac should conducting when line voltage reaches Translating this into conduction angle, hold current should have been reached degrees following zero crossing (see Equation
first step design choose triac switching circuit. order make informed decision, will need cover triac basics first. triac essentially Silicon Controlled Rectifiers, SCR, cross-connected with their gate inputs tied together. Because based, once device begins conducting, will continue conduct until current flowing through device goes zero. operation, triac open circuit between supply lamp until minimum gate current either sourced sunk through gate pin. triac then latched until current through device goes zero next zero crossing waveform. While this description gives general idea device works, there specifics that missing. First all, triac does latch until minimum holding current flowing through device reached. Second, main pins triac completely interchangeable description implies. This because bias current triac dependent, extent, direction bias current direction load current device. These combinations current directions referred conduction quadrants device. Using convention main terminals, four quadrants defined follows: Quadrant one, current flow into MT1, with positive current flow into gate. Quadrant two, current flow into MT1, with negative current flow gate. Quadrant three, current flow into MT2, with negative current flow gate. Quadrant four, current flow into MT2, with positive current flow into gate. reason this important because minimum gate current quadrant four typically higher than quadrants through three. because will trying reduce current where possible, avoiding quadrant four operation desirable.
EQUATION
Angle invsin(5V/(110V 1.414))
Assuming system, minimum hold current should achieved after microseconds bias current (see Equation
EQUATION
Time (1/60 (2°/360°) only need hold bias current approximately latch triac average narrow pulse current over cycle, gives average current requirement triac bias less than 37.5 Note: Here significant advantages using microcontroller dimming. Because microcontroller only needs hold gate bias less than full half cycle, there savings over bias current triac, alone.
next challenge determine which nano-Watt device dimmer circuit. will need three I/O; triac gate drive, zero crossing detection data output from receiver module.
DS91094A-page
2005 Microchip Technology Inc.
TB094
smallest nano-Watt device meeting these requirements 6-pin PIC10F200 SOT-23 surface mount package. with input only pin, single current drive capability when powered running VDC, only requires microamps operate only 1/10th microamp when asleep. should perfect low-power microcontroller design. next requirement low-current receiver module remote control half user interface. should draw minimum current while operation capable receiving modulated beam decode into simple line output. Sharp GP1UD261RK fits requirements, operating from supply. draws current operate designed pull output when subjected light modulated kHz. that there three main components, must construct power budget design: receiver module will draw continuously. microcontroller will draw when operating less than 1/10th when asleep. triac will need average current less than
EQUATION
FILTER CAPACITOR CALCULATION
VRIPPLE)/5V
(-16 mS/((5V/.6
EQUATION
TIME SUPPLY DROOP
T(2V) In(2V/5V)*((5V/.4 mA)*330 T(2V) 3.77 seconds Given 1N4690 zener diode only requires 50-100 generate voltage VDC, current limiting resistors power supply will only have conduct total maintain output. line voltage split across resistors safety, this means each resistor will only dissipate assuming each resistor resistor (see Equation
EQUATION
(110VAC 1.414)/(100 Presistors ((110VAC 1.414 A)/2) resulting circuit shown Figure Note: extra PIC10F200 been used power supply receiver module. This done circuit power-down module when detects that line voltage been removed.
total current requirement system less than Quite savings considering that holding gate bias current full cycle would require times this current. Given power budget, design resistive transformerless power supply consisting two-current limiting resistors current 5.6V zener diode with equally current rectifier diode small filter capacitor (see Equation resulting supply will produce with ripple less than Further, receiver powered down, supply hold operating microcontroller least 3.77 seconds before falling below shutting down microcontroller (see Equation
2005 Microchip Technology Inc.
DS91094A-page
FIGURE
TB094
DS91094A-page L4004D3 MAC4DHMT4 Load .25A BAT54 MAZS0560ML MMBZ5232BLT1 1/8W 1/8W 1.2K ACin
PIC10F DIMMER
GP0/C+ GP1/CU1 PIC10F200
Programmer
GP2/T0CKI/CO GP3/MCLR
2005 Microchip Technology Inc.
GP1UD261RK
TB094
SOFTWARE
Note: When using programmer, circuit MUST disconnected from power FIRST!
REMOTE CONTROL
remote control system also based PIC10F200. uses wake-up change function wake whenever button pressed. then generates different modulated outputs, depending which button pressed. carrier frequency match receiver modules dimmer circuit. different modulations differentiate intensity Down commands, indicated button pressed wake remote. While button held down, firmware remote will repeat command pulse width. When button released, circuit then turns goes sleep conserve battery life. circuit remote control shown Figure microcontroller powered directly from lithium coin cell. push buttons connected inputs their ability generate wake-up change. transistor that drives driven GP2. more information Transmitter design, refer Application Notes regarding infrared connectivity listed Microchip site www.microchip.com.
software system relatively simple. When zero voltage crossing detected input, change state wakes microcontroller using Reset-on Change function pin. microcontroller wakes determines source reset checking GPWUF flags STATUS register. TB082, "Understanding Reset Events PIC10F20X", (DS91082), more information. Then microcontroller performs following: Checks state receiver module output. high, microcontroller moves determine appropriate delay triggering triac, based current intensity value. Waits delay. Generates pulse gate triac. Returns sleep.
output receiver module low, microcontroller first counts state then moves generate delay pulse. output receiver module high previous output sample low, firmware decodes command length makes appropriate change intensity value. Then moves determine appropriate delay, waits delay generates gate pulse triac before, once again, going sleep. secondary routine, wake-up change, keeps track total number wake-up change events. number sufficient hours operation, intensity value zero part timer-based shutdown conserve energy. microcontroller wakes Watchdog Timer time-out, wake-up change missed multiple cycles indicating that power been removed. firmware then powers down receiver module reduce power consumption increments intensity value system. secondary routine Watchdog Timer time-out counts number time-outs exceeds seconds, resets intensity value zero. This done part switched power user interface. power removed seconds, system assumes turned sets intensity value zero. However, with microcontroller sleeping majority time, there guarantee that supply voltage will drop below cause Power-up Reset microcontroller. this secondary routine been added back-up shutdown function.
2005 Microchip Technology Inc.
DS91094A-page
TB094
FIGURE REMOTE CONTROL TRANSMITTER
PIC10F200 ZXMN3A01F LN66
LiON GP0/C+ GP1/C-
GP2/T0CKI/CO GP3/MCLR
PRGMR
CONCLUSION
preceding sections, mentioned that microcontroller advantageous dimming circuit because compensate inherent nonlinearity dimming process. have seen this design process, also advantageous from power point view well. Keeping microcontroller Sleep mode reduces overall current draw minimal level. And, using minimal bias pulse fire triac further reduces current draw. Together savings over original triac bias current. cost only increase power supply current microcontroller, this leaves reduction circuit current draw over 78%. result significant savings power dissipated transformerless power supply design, which means much less expensive components used.
MEMORY USAGE
Dimmer
Program Memory words Data Memory bytes
Remote Control
Program Memory words Data Memory bytes
Documentation
AN954, "Transformerless Power Supplies, Resistive Capacitive", (DS00954) TB082, "Understanding Reset Events PIC10F20X", (DS91082)
DS91094A-page
2005 Microchip Technology Inc.
Note following details code protection feature Microchip devices: Microchip products meet specification contained their particular Microchip Data Sheet. Microchip believes that family products most secure families kind market today, when used intended manner under normal conditions. There dishonest possibly illegal methods used breach code protection feature. these methods, knowledge, require using Microchip products manner outside operating specifications contained Microchip's Data Sheets. Most likely, person doing engaged theft intellectual property. Microchip willing work with customer concerned about integrity their code. Neither Microchip other semiconductor manufacturer guarantee security their code. Code protection does mean that guaranteeing product "unbreakable."
Code protection constantly evolving. Microchip committed continuously improving code protection features products. Attempts break Microchip's code protection feature violation Digital Millennium Copyright Act. such acts allow unauthorized access your software other copyrighted work, have right relief under that Act.
Information contained this publication regarding device applications like provided only your convenience superseded updates. your responsibility ensure that your application meets with your specifications. MICROCHIP MAKES REPRESENTATIONS WARRANTIES KIND WHETHER EXPRESS IMPLIED, WRITTEN ORAL, STATUTORY OTHERWISE, RELATED INFORMATION, INCLUDING LIMITED CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY FITNESS PURPOSE. Microchip disclaims liability arising from this information use. Microchip's products critical components life support systems authorized except with express written approval Microchip. licenses conveyed, implicitly otherwise, under Microchip intellectual property rights.
Trademarks Microchip name logo, Microchip logo, Accuron, dsPIC, KEELOQ, microID, MPLAB, PIC, PICmicro, PICSTART, MATE, PowerSmart, rfPIC, SmartShunt registered trademarks Microchip Technology Incorporated U.S.A. other countries. AmpLab, FilterLab, Migratable Memory, MXDEV, MXLAB, PICMASTER, SEEVAL, SmartSensor Embedded Control Solutions Company registered trademarks Microchip Technology Incorporated U.S.A. Analog-for-the-Digital Age, Application Maestro, dsPICDEM, dsPICDEM.net, dsPICworks, ECAN, ECONOMONITOR, FanSense, FlexROM, fuzzyLAB, In-Circuit Serial Programming, ICSP, ICEPIC, Linear Active Thermistor, MPASM, MPLIB, MPLINK, MPSIM, PICkit, PICDEM, PICDEM.net, PICLAB, PICtail, PowerCal, PowerInfo, PowerMate, PowerTool, Real ICE, rfLAB, rfPICDEM, Select Mode, Smart Serial, SmartTel, Total Endurance, UNI/O, WiperLock Zena trademarks Microchip Technology Incorporated U.S.A. other countries. SQTP service mark Microchip Technology Incorporated U.S.A. other trademarks mentioned herein property their respective companies. 2005, Microchip Technology Incorporated, Printed U.S.A., Rights Reserved. Printed recycled paper.
Microchip received ISO/TS-16949:2002 quality system certification worldwide headquarters, design wafer fabrication facilities Chandler Tempe, Arizona Mountain View, California October 2003. Company's quality system processes procedures PICmicro® 8-bit MCUs, KEELOQ® code hopping devices, Serial EEPROMs, microperipherals, nonvolatile memory analog products. addition, Microchip's quality system design manufacture development systems 9001:2000 certified.
2005 Microchip Technology Inc.
DS91094A-page
WORLDWIDE SALES SERVICE
AMERICAS
Corporate Office 2355 West Chandler Blvd. Chandler, 85224-6199 Tel: 480-792-7200 Fax: 480-792-7277 Technical Support: http://support.microchip.com Address: www.microchip.com Atlanta Alpharetta, Tel: 770-640-0034 Fax: 770-640-0307 Boston Westborough, Tel: 774-760-0087 Fax: 774-760-0088 Chicago Itasca, Tel: 630-285-0071 Fax: 630-285-0075 Dallas Addison, Tel: 972-818-7423 Fax: 972-818-2924 Detroit Farmington Hills, Tel: 248-538-2250 Fax: 248-538-2260 Kokomo Kokomo, Tel: 765-864-8360 Fax: 765-864-8387 Angeles Mission Viejo, Tel: 949-462-9523 Fax: 949-462-9608 Jose Mountain View, Tel: 650-215-1444 Fax: 650-961-0286 Toronto Mississauga, Ontario, Canada Tel: 905-673-0699 Fax: 905-673-6509
ASIA/PACIFIC
Australia Sydney Tel: 61-2-9868-6733 Fax: 61-2-9868-6755 China Beijing Tel: 86-10-8528-2100 Fax: 86-10-8528-2104 China Chengdu Tel: 86-28-8676-6200 Fax: 86-28-8676-6599 China Fuzhou Tel: 86-591-8750-3506 Fax: 86-591-8750-3521 China Hong Kong Tel: 852-2401-1200 Fax: 852-2401-3431 China Qingdao Tel: 86-532-8502-7355 Fax: 86-532-8502-7205 China Shanghai Tel: 86-21-5407-5533 Fax: 86-21-5407-5066 China Shenyang Tel: 86-24-2334-2829 Fax: 86-24-2334-2393 China Shenzhen Tel: 86-755-8203-2660 Fax: 86-755-8203-1760 China Shunde Tel: 86-757-2839-5507 Fax: 86-757-2839-5571 China Wuhan Tel: 86-27-5980-5300 Fax: 86-27-5980-5118 China Xian Tel: 86-29-8833-7250 Fax: 86-29-8833-7256
ASIA/PACIFIC
India Bangalore Tel: 91-80-2229-0061 Fax: 91-80-2229-0062 India Delhi Tel: 91-11-5160-8631 Fax: 91-11-5160-8632 India Pune Tel: 91-20-2566-1512 Fax: 91-20-2566-1513 Japan Yokohama Tel: 81-45-471- 6166 Fax: 81-45-471-6122 Korea Gumi Tel: 82-54-473-4301 Fax: 82-54-473-4302 Korea Seoul Tel: 82-2-554-7200 Fax: 82-2-558-5932 82-2-558-5934 Malaysia Penang Tel: 60-4-646-8870 Fax: 60-4-646-5086 Philippines Manila Tel: 63-2-634-9065 Fax: 63-2-634-9069 Singapore Tel: 65-6334-8870 Fax: 65-6334-8850 Taiwan Hsin Tel: 886-3-572-9526 Fax: 886-3-572-6459 Taiwan Kaohsiung Tel: 886-7-536-4818 Fax: 886-7-536-4803 Taiwan Taipei Tel: 886-2-2500-6610 Fax: 886-2-2508-0102 Thailand Bangkok Tel: 66-2-694-1351 Fax: 66-2-694-1350
EUROPE
Austria Wels Tel: 43-7242-2244-399 Fax: 43-7242-2244-393 Denmark Copenhagen Tel: 45-4450-2828 Fax: 45-4485-2829 France Paris Tel: 33-1-69-53-63-20 Fax: 33-1-69-30-90-79 Germany Munich Tel: 49-89-627-144-0 Fax: 49-89-627-144-44 Italy Milan Tel: 39-0331-742611 Fax: 39-0331-466781 Netherlands Drunen Tel: 31-416-690399 Fax: 31-416-690340 Spain Madrid Tel: 34-91-708-08-90 Fax: 34-91-708-08-91 Wokingham Tel: 44-118-921-5869 Fax: 44-118-921-5820
10/31/05
DS91094A-page
2005 Microchip Technology Inc.

Other recent searches


VLFX-105 - VLFX-105   VLFX-105 Datasheet
TT25-1 - TT25-1   TT25-1 Datasheet
MF595-04 - MF595-04   MF595-04 Datasheet
LFSW35105-20 - LFSW35105-20   LFSW35105-20 Datasheet
FSF10A40 - FSF10A40   FSF10A40 Datasheet
Am29F040B - Am29F040B   Am29F040B Datasheet
1110F1799 - 1110F1799   1110F1799 Datasheet

 

Privacy Policy | Disclaimer
© 2012 Datasheet Archive