Atmega16 rgb driver

preview_player
Показать описание
This project is based on atmega16 from Atmel. Coded with AVR-GCC Its primary function is to drive RGB leds. Currently it utilizes 3 pwm channels based on 2 timers Timer0 (8bit, 1 pwm channel: red color) and Timer1 (16bit 2 pwm channels: green, blue) .
Currently it has 3 modes, strobe flash sound sensitive, color change sound sensitive and built in pattern. For sound triggered effect I use a simple microphone, pass it via general npn transistor to amplify the signal and read the value via built in ADC converter. Another thing is usb support without any external hardware.

Рекомендации по теме
Комментарии
Автор

@xz33rox ok thx i'll read it and try to understand it. thank you :)

blackmambe
Автор

@blackmambe so i wrote some basic info on pwm an control registers you can find link at the description.I also made a very very simple program on c using avr-gcc compiler. Assuming that uC isatmega8 and speed is 8MHz the source link can be also found in description. Hope this will help you, the "boring part" can be adopted to any language, because its only about chip registers, and source should give you some simple start :)

aiiwaras
Автор

@blackmambe post a video when you'll do something, i am eager to see it ;)

aiiwaras
Автор

hey,

i'm making something on my own, but i have troubles with pwm i don't know how to get my rgb leds fade slowlly off and on. i would like to make a board like follow:)

xx
xxx
xxxx
xxx
xx

this is the set up for my rgb leds and i would like to get a chasing effect.
could you maybe help me ?

thanks

blackmambe
Автор

@blackmambe No problem, but i don`t work with assembler, only c. What chip are you using? I could provide you with a sample of register values, also some simple code for pwm management. Post in comments, or via mail.

aiiwaras
Автор

@xz33rox thanks :) euhm yea C is fine. i have had C (a while ago) . i think i'm am gonna use a ATMega8. i also looked for a pwm code and what pwm does. I now understand what it is but don't know how to start up a code to use it. my C programming is not that great. it would be nice if you could help me with that :)
kind regards (soz for the bad english ^^)

blackmambe