Схема RGB лампы на Attiny13
Схема для сборки лампы представлена ниже.
Детали для этой схемы, а также всё необходимое для сборки других электронных схем, в том числе инструменты, можно купить в магазине «Элирит». В каталоге присутствует большой ассортимент радиоэлектронных товаров, как отечественного производства, так и импортных, по весьма привлекательным ценам, имеется доставка по России.
Светодиод в схеме используется RGB – на одной подложке одновременно установлены три независимых светодиода, соответственно красный, зелёный и синий, путём комбинирования яркости этих цветов получаются различные другие цвета и оттенки. Использовать можно также и три отдельных светодиода, если под рукой нет RGB, однако в этом случае их нужно будет расположить как можно ближе друг другу и накрыть сверху рассеивающим экраном, чтобы цвета равномерно смешивались. На картинке ниже можно увидеть применённый мной RGB светодиод, он имеет 6 выводов – отдельные анод и катод для каждого цвета.
Несколько слов о деталях схемы. Предпочтительнее использовать элементы поверхностного монтажа, в этом случае вся конструкция получится весьма компактной и её можно будет встроить, например, в какой-нибудь готовый корпус
Помимо самого микроконтроллера, на схеме присутствуют три полевых транзистора – здесь важно использовать транзисторы с логическим уровнем затвора, идеальным вариантом будут указанные на схеме IRLML0030, они полностью открываются от 5-ти вольт
Не лишним будет также установить токоограничивающие резисторы между выводами микроконтроллера и затворами, например, на 10-47 Ом, на печатной плате под них предусмотрены посадочные места. Также на схеме не указаны токоограничивающие резисторы для самих светодиодов – их сопротивление выбирается исходя из необходимого тока через светодиоды, и соответственно яркости свечения лампы. Оптимальным будет значение около 10 Ом для каждого светодиода (при питании схемы от 5 вольт), в этом случае и сами резисторы, и светодиод не будут сильно нагреваться, но общего уровня яркости хватит для большинства применений лампы.
Обратите внимание, что используемый RGB светодиод должен быть рассчитан на заданный ток, превышение допустимого тока светодиода приведёт к его быстрой деградации. Помимо этого, на плате также присутствует резистор 4,7 – 20 кОм для подтяжки RESET микроконтроллера к питанию, а также конденсаторы по питанию – не стоит ими пренебрегать, ведь ШИМ светодиодов может вызвать помехи по питанию, которые приведут к нестабильной работе микроконтроллера
Печатная плата изготавливается методом ЛУТ, файл с платой прилагается к статье. В нижней части можно увидеть большой прямоугольный полигон, граничащий со светодиодом – он работает в роли небольшого теплоотвода. При небольшой мощности его достаточно, но если ток через светодиод достаточно велик, потребуется отдельный радиатор для охлаждения.
Сперва на плату устанавливается микроконтроллер и прошивается, прошивка также прилагается к статье. Использовать для этого можно любой подходящий программатор, например, USBasp, и соответствующую программу, инструкций в интернете предостаточно. После того, как микроконтроллер прошит, можно впаивать все остальные элементы.
Таким образом, получилась весьма миниатюрная плата с размерами 3х3 см. Для запуска схемы достаточно подвести питание в 5 вольт, микроконтроллер начнёт работу и светодиод сразу же начнёт светится.
Проверить правильность настройки очень просто – достаточно подать на затворы каждого из транзисторов по 5 вольт, при этом светодиод должен светится белым цветом без каких-либо оттенков.ъ
Однако данная настройка не обязательна и можно просто впаять три нулевых резистора-перемычки, как я и сделал, качество работы лампы при этом практически не страдает.
В общем получился интересный, недорогой, а главное сделанный своими руками LED светильник. Получившуюся плату следует поместить в любой красивый корпус, желательно выбирать матовый, для дополнительного рассеивания света. Скачать файлы проекта. Автор материала misha1279.
Datasheet Download — ATMEL Corporation
Номер произв | ATINY13 | ||
Описание | 8-Bit Microcontroller | ||
Производители | ATMEL Corporation | ||
логотип | |||
1Page
www.DataSheet4U.com • High Performance, Low Power AVR8-Bit Microcontroller • Advanced RISC Architecture – 120 Powerful Instructions – Most Single Clock Cycle Execution • High Endurance Non-volatile Memory segments – 1K Bytes of In-System Self-programmable Flash program memory – Data retention: 20 years at 85°C/100 years at 25°C(1) – Optional Boot Code Section with Independent Lock Bits • Peripheral Features – One 8-bit Timer/Counter with Prescaler and Two PWM Channels • Special Microcontroller Features – debugWIRE On-chip Debug System • I/O and Packages – 8-pin PDIP/SOIC: Six Programmable I/O Lines • Operating Voltage: – 1.8 — 5.5V for ATtiny13V • Speed Grade – ATtiny13V: 0 — 4 MHz @ 1.8 — 5.5V, 0 — 10 MHz @ 2.7 — 5.5V • Industrial Temperature Range • Low Power Consumption – Active Mode:
www.DataSheet4U.com Pin Configurations Figure 1. Pinout ATtiny13 8-PDIP/SOIC 2 ATtiny13 2535H–AVR–10/07
www.DataSheet4U.com Figure 2. Block Diagram VCC |
|||
Всего страниц | 30 Pages | ||
Скачать PDF |
Datasheets
Appendix A — ATtiny13A Specification at 105°C
This document contains information specific to devices operating at temperatures up
to 105°C. Only deviations are covered in this appendix, all other information can be
found in the complete datasheet. The complete datasheet can be found at
www.atmel.com. 8-bit
Microcontroller
with 1K Bytes
In-System
Programmable
Flash
ATtiny13A
Appendix A Rev. 8126E-Appendix A-AVR-08/11 1. Electrical Characteristics
1.1 Absolute Maximum Ratings* Operating Temperature. -55°C to +125°C *NOTICE: Storage Temperature . -65°C to +150°C
Voltage on any Pin except RESET
with respect to Ground .-0.5V to VCC+0.5V
Voltage on RESET with respect to Ground.-0.5V to +13.0V Stresses beyond those listed under «Absolute
Maximum Ratings» may cause permanent damage to the device. This is a stress rating only and
functional operation of the device at these or
other conditions beyond those indicated in the
operational sections of this specification is not
implied. Exposure to absolute maximum rating
conditions for extended periods may affect
device reliability. Maximum Operating Voltage . 6.0V
…
Appendix B — ATtiny13A Specification at 125°C
This document contains information specific to devices operating at temperatures up
to 125°C. Only deviations are covered in this appendix, all other information can be
found in the complete datasheet. The complete datasheet can be found at
www.atmel.com. 8-bit
Microcontroller
with 1K Bytes
In-System
Programmable
Flash
ATtiny13A
Appendix B Rev. 8126F-Appendix B-AVR-05/12 1. Electrical Characteristics
1.1 Absolute Maximum Ratings* Operating Temperature. -55°C to +125°C *NOTICE: Storage Temperature . -65°C to +150°C
Voltage on any Pin except RESET
with respect to Ground .-0.5V to VCC+0.5V
Voltage on RESET with respect to Ground.-0.5V to +13.0V Stresses beyond those listed under «Absolute
Maximum Ratings» may cause permanent damage to the device. This is a stress rating only and
functional operation of the device at these or
other conditions beyond those indicated in the
operational sections of this specification is not
implied. Exposure to absolute maximum rating
conditions for extended periods may affect
device reliability. Maximum Operating Voltage . 6.0V
…
Features
• High Performance, Low Power AVR 8-Bit Microcontroller
• Advanced RISC Architecture • • • • •
• •
• — 120 Powerful Instructions — Most Single Clock Cycle Execution
— 32 x 8 General Purpose Working Registers
— Fully Static Operation
— Up to 20 MIPS Througput at 20 MHz
High Endurance Non-volatile Memory segments
— 1K Bytes of In-System Self-programmable Flash program memory
— 64 Bytes EEPROM
— 64 Bytes Internal SRAM
— Write/Erase Cycles: 10,000 Flash/100,000 EEPROM
— Data retention: 20 Years at 85°C/100 Years at 25°C (see page 6)
— Programming Lock for Self-Programming Flash & EEPROM Data Security
Peripheral Features
— One 8-bit Timer/Counter with Prescaler and Two PWM Channels
— 4-channel, 10-bit ADC with Internal Voltage Reference
— Programmable Watchdog Timer with Separate On-chip Oscillator
— On-chip Analog Comparator
Special Microcontroller Features
— debugWIRE On-chip Debug System
— In-System Programmable via SPI Port
…
Просмотр и загрузка
Datasheet ATtiny13A. Summary
PDF, 591 Кб, Файл опубликован: 1 май 2012, Страниц: 208-bit AVR Microcontroller with 1K Bytes In-System Programmable Flash
Выписка из документа
Features
• High Performance, Low Power AVR 8-Bit Microcontroller
• Advanced RISC Architecture • • • • •
• •
• — 120 Powerful Instructions — Most Single Clock Cycle Execution
— 32 x 8 General Purpose Working Registers
— Fully Static Operation
— Up to 20 MIPS Througput at 20 MHz
High Endurance Non-volatile Memory segments
— 1K Bytes of In-System Self-programmable Flash program memory
— 64 Bytes EEPROM
— 64 Bytes Internal SRAM
— Write/Erase Cycles: 10,000 Flash/100,000 EEPROM
— Data retention: 20 Years at 85°C/100 Years at 25°C (see page 6)
— Programming Lock for Self-Programming Flash & EEPROM Data Security
Peripheral Features
— One 8-bit Timer/Counter with Prescaler and Two PWM Channels
— 4-channel, 10-bit ADC with Internal Voltage Reference
— Programmable Watchdog Timer with Separate On-chip Oscillator
— On-chip Analog Comparator
Special Microcontroller Features
— debugWIRE On-chip Debug System
— In-System Programmable via SPI Port
…
Datasheet Download — ATMEL Corporation
Номер произв | ATtiny13 | ||
Описание | 8-bit Microcontroller | ||
Производители | ATMEL Corporation | ||
логотип | |||
1Page
Features • High Performance, Low Power AVR8-Bit Microcontroller • Advanced RISC Architecture – 120 Powerful Instructions – Most Single Clock Cycle Execution • High Endurance Non-volatile Memory segments – 1K Bytes of In-System Self-programmable Flash program memory – Data retention: 20 years at 85°C/100 years at 25°C (see page 6) – Programming Lock for Self-Programming Flash & EEPROM Data Security • Peripheral Features – One 8-bit Timer/Counter with Prescaler and Two PWM Channels • Special Microcontroller Features – debugWIRE On-chip Debug System • I/O and Packages – 8-pin PDIP/SOIC: Six Programmable I/O Lines • Operating Voltage: – 1.8 — 5.5V for ATtiny13V • Speed Grade – ATtiny13V: 0 — 4 MHz @ 1.8 — 5.5V, 0 — 10 MHz @ 2.7 — 5.5V • Industrial Temperature Range • Low Power Consumption – Active Mode:
1. Pin Configurations Figure 1-1. Pinout ATtiny13/ATtiny13V 8-PDIP/SOIC 2 ATtiny13 2535J–AVR–08/10
ATtiny13 Port B also serves the functions of various special features of the ATtiny13 as listed on page 54. 1.1.4 reset, even if the clock is not running. The minimum pulse length is given in Table 18-1 on page 115. Shorter pulses are not guaranteed to generate a reset. The reset pin can also be used as a (weak) I/O pin. |
|||
Всего страниц | 30 Pages | ||
Скачать PDF |
Параметры
Parameters / Models | ATTINY13-20MMU | ATTINY13-20MMUR | ATTINY13-20MU | ATTINY13-20MUR | ATTINY13-20PU | ATTINY13-20SQ | ATTINY13-20SQR | ATTINY13-20SSQ | ATTINY13-20SSQR | ATTINY13-20SSU | ATTINY13-20SSUR | ATTINY13-20SU | ATTINY13-20SUR | ATTINY13V-10MMU | ATTINY13V-10MMUR | ATTINY13V-10MU | ATTINY13V-10MUR | ATTINY13V-10PQ | ATTINY13V-10PU | ATTINY13V-10SSU | ATTINY13V-10SSUR | ATTINY13V-10SU | ATTINY13V-10SUR |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Рабочий диапазон температур, °C | от -40 до +85 | от -40 до +85 | от -40 до +85 | от -40 до +85 | от -40 до +85 | от -40 до +105 | от -40 до +105 | от -40 до +105 | от -40 до +105 | от -40 до +85 | от -40 до +85 | от -40 до +85 | от -40 до +85 | от -40 до +85 | от -40 до +85 | от -40 до +85 | от -40 до +85 | от -40 до +105 | от -40 до +85 | от -40 до +85 | от -40 до +85 | от -40 до +85 | от -40 до +85 |
Datasheet Download — ATMEL Corporation
Номер произв | TINY13V | ||
Описание | ATINY13 | ||
Производители | ATMEL Corporation | ||
логотип | |||
1Page
www.DataSheet4U.com • High Performance, Low Power AVR8-Bit Microcontroller • Advanced RISC Architecture – 120 Powerful Instructions – Most Single Clock Cycle Execution • High Endurance Non-volatile Memory segments – 1K Bytes of In-System Self-programmable Flash program memory – Data retention: 20 years at 85°C/100 years at 25°C(1) – Optional Boot Code Section with Independent Lock Bits • Peripheral Features – One 8-bit Timer/Counter with Prescaler and Two PWM Channels • Special Microcontroller Features – debugWIRE On-chip Debug System • I/O and Packages – 8-pin PDIP/SOIC: Six Programmable I/O Lines • Operating Voltage: – 1.8 — 5.5V for ATtiny13V • Speed Grade – ATtiny13V: 0 — 4 MHz @ 1.8 — 5.5V, 0 — 10 MHz @ 2.7 — 5.5V • Industrial Temperature Range • Low Power Consumption – Active Mode:
www.DataSheet4U.com Pin Configurations Figure 1. Pinout ATtiny13 8-PDIP/SOIC 2 ATtiny13 2535H–AVR–10/07
www.DataSheet4U.com Figure 2. Block Diagram VCC |
|||
Всего страниц | 70 Pages | ||
Скачать PDF |
Экологический статус
ATTINY13-20MMU | ATTINY13-20MMUR | ATTINY13-20MU | ATTINY13-20MUR | ATTINY13-20PU | ATTINY13-20SQ | ATTINY13-20SQR | ATTINY13-20SSQ | ATTINY13-20SSQR | ATTINY13-20SSU | ATTINY13-20SSUR | ATTINY13-20SU | ATTINY13-20SUR | ATTINY13V-10MMU | ATTINY13V-10MMUR | ATTINY13V-10MU | ATTINY13V-10MUR | ATTINY13V-10PQ | ATTINY13V-10PU | ATTINY13V-10SSU | ATTINY13V-10SSUR | ATTINY13V-10SU | ATTINY13V-10SUR | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
RoHS | Совместим | Совместим | Совместим | Совместим | Совместим | Совместим | Совместим | Совместим | Совместим | Совместим | Совместим | Совместим | Совместим | Совместим | Совместим | Совместим | Совместим | Совместим | Совместим | Совместим | Совместим | Совместим | Совместим |