PC Ambient-Light with ATmega8 Converter

PC version with an ATmega8-based protocol converter

Technical project documentation for PC Ambient-Light with ATmega8 Converter, revised for clearer language, consistent structure and easier reference.

Archive note: This article documents the project as it existed in 2015. Components, software, development tools and supplier links may now be outdated or unavailable. The original technical content has been preserved while language, structure and formatting have been revised for this republication.

The solution presented here is intended for PC use and requires PC software that analyzes the screen content and can control appropriate lighting through a suitable DMX512 interface. One software package I found on the internalt and considered very promising is PC Dimmer (Freeware).

My own work therefore focuses on developing hardware that can be controlled by the software mentioned above. The circuit is based on the project uDMX-Interface, which is a USB-to-DMX512 interface. It is central element is uDMX the ATmega8 microcontroller from ATMEL, which handles USB communication and makes the data received over USB available as a DMX512 protocol signal on one of its port pins. The DMX512 data are then fed to several microcontrollers, which extract the data relevant to them from the data stream and use three PWM channels each to convert the DMX512 values into signals suitable for driving an RGB LED. To provide sufficient power for higher-power LEDs or LED strips, the PWM signals are then passed through a power-driver IC.

For the design I deliberately chose not to use a single-chip solution so that the number of RGB channels could remain expandable. The microcontrollers used are inexpensive 8-bit devices with an integrated oscillator and were available at the time for around €0.40 each. Each microcontroller generates three PWM channels. The system can be expanded without difficulty to up to 255 PWM channels

Application example:
PC  Ambient-Light ATmega8


Technical data:

  • four independent RGB channels or 12 single-color LED channels
  • up to the following power per PWM channel 15W
  • low-loss LED control using PWM
  • LED supply voltage from an external power supply (6–30 VDC, max. 3 A)


Block diagram
PC  Ambient-Light ATmega8 Block Diagram

schematic "Interface_ATmega8_4ch" page 1
schematic Interface_ATmega8_4ch page1

Schematic "Interface_ATmega8_4ch" page 2
schematic Interface_ATmega8_4ch page2


Component placement plan

component placement plan bottom

component placement plan top

PCB component side
PCB component side


PCB solder side
PCB solder side

 


Component List


Component Value Description Quantity Reichelt order number
C1 10µF SMD-Tantal-capacitor, 10µF/16 V 1 SMD TAN.10/16
C2 – C8 100nF SMD multilayer ceramic capacitor 100N, X7R 7 X7R-G0603 100N
C9 470µF Electrolytic capacitor, 10x16 mm, 5.0 mm pitch, 470µF, 25 V 1 RAD 470/25
C10, C11 22pF SMD multilayer ceramic capacitor 22P, NP0 2 NPO-G0603 22P
F1 Fuse holder Fuse holder, 5x20 mm 2 PL 120000
F1 Fuse Fine-wire fuse 5×20 mm, slow-blow 3.15 A 1 SLOW-BLOW 3.15 A
IC1 ATmega8 ATMega AVR 8-16 AU, AVR-RISC-Controller, TQFP-32 1 ATMEGA 8-16 TQ
IC2 – IC5 PIC10F222 PIC-Controller SOT-23-6 4 PIC 10F222T-I/OT
IC6, IC7 ULN2003AD Darlington-Arrays, SO-16 2 ULN 2003 AD SMD
IC8 MCP 1703-3302 Positive voltage regulator, 200 mA, 3, 3 V 1 MCP 1703-3302
J1 – J4 4 pol. PCB connector, single connector, straight, 4-pin (LED strips) 4 PSS 254/4G
L1 100nH SMD inductor, 1206, 100 nH 1 L-1206AS 100N
Q1 12 MHz Ceramic SMD crystal 2, 5x3, 2x0, 7 mm 12, 0 MHz 1 12, 000000-MT
R1 1, 5k SMD chip resistor 0603, 1, 5 K-Ohm, 1% 1 SMD-0603 1, 5K
R2, R3 68R SMD chip resistor 0603, 68 Ω, 1% 2 SMD-0603 68
R4, R5 10k SMD chip resistor 0603, 10 K-Ohm, 1% 2 SMD-0603 10K
R6 0R SMD chip resistor 0603, 0 Ohm 1 SMD-0603 0
SV1 10 pol. Box header, 10-pin, straight (Atmel Flash) 1 WSL 10G
X1 Barrel jack Barrel jack (power supply) 1 HEBW 25
X2 USB Type-B socket USB Type-B PCB socket, right-angle 1 USB BW
SV2...   36-pin header for PIC flash interface 1 SL 1X36G 2, 54
Reichelt shopping cart: Interface_ATmega8_4ch

Downloads


 


KeiAng

Published on: Monday, 14. September 2015 (15944 reads)
Copyright © by Keiang Electronics & Measurement

Printer Friendly Page

[ Go back ]

Electronic Projects