RGB Pattern Generator
![]() |
![]() |
| This is a pattern generator with 13 images and 1KHZ tone, good for testing LCD TV’s, projectors and cathode ray tube TV’s. The project is based on ATtiny2313 running at 20MHZ. The horizontal frequency is 15625HZ and the vertical frequency is 50HZ (Europe standard). With the button S1 you can select the images one by one and with the button S2 you can turn the sound on and off (see the pictures below). |
| This is the schematic: |
|
| And this is the PCB and silkscreen: |
![]() ![]() ![]() |
| You can download a pdf file with the schematic and pcb from here: Here are the files for Cadsoft’s eagle design program: |
| The program inside the AVR was made with BASCOM-AVR. With the trial version provided you can make modifications in the program if you want to. Here are the source code and hex file: |
| The ATtiny2313 is shipped with internal oscillator activated by default, so you have to program the appropriate fuses yourself. Goto Engbedded AVR Fuse Calculator site, select the appropriate microcontroller and set the settings as you see in the picture below. The program will calculate the appropriate fuses settings. Put them in your programmer and program the chip. This is the picture of the settings (click for larger view): |
![]() |
|
Important! A bug found in the placement of transistor T1 in PCB. |
| For any questions submit a comment or mail me to: dselecdim at gmail dot com |



















o.k very good job .
I just finished it. Pay attention on transistor bc 547 . In circuit diagram is o.k but on P.C.B must be reverced.
Congratulations
His work besides good is clean and without “giving turns.”
Hey, I read a lot of blogs on a daily basis and for the most part, people lack substance but, I just wanted to make a quick comment to say GREAT blog!…..I”ll be checking in on a regularly now….Keep up the good work!
Hi and congratulations on an excelent and clean project.
I would like to play around with the program and try to make some more patterns.
I have BASCOM demo but every time i try to compile your code, i receive the error:
Error 344 Line349 Program will overwrite bootloader.
Do you have any idea why this happens???? I’m new to Bascom and this error doesn’t appears in error list.
Many thanks in advance
regards
My name is Piter Jankovich. oOnly want to tell, that your blog is really cool
And want to ask you: is this blog your hobby?
P.S. Sorry for my bad english
I’m not sure but PIN 3 of scart is “audio out” not ” audio in”
Very good job! Works excellent!
Thank you!
Excellent website. Very informative & useful. Good work!!!! Going to build the RGB Pattern Generator.
Hello
I just finish the video pattern generator project and iam trying to make it work,
I would like to make some coments:
1. The corect position of T1 is that flat side look to internal of the pcb? [in schematic the
connection of T1 match with this position] what is the mistake?
2. The corect position of the voltage regulator LM7805 is the metal side look to C7
[in silkscreen I think looks reverse],
3.In my project the R12 is burned and i dont know why. had any other the same problem?
4. The s2d1 is an indicator led? i dont have the right voltage there to power it up,
nice posting..thankS very much for sharing
Thank You for Your kindness, generousity
rich information, it was very helpfull
Salam kenal,
Makasih atas sharenya..
Hello!
I just finished AVR RGB Pattern Generator, but have problem with SYNC frequency.
Instead of 15625 Hz i have 14880 Hz on sync out. I controlled the clock, I even made
a 20 MHz external oscillator, but the sync output still have 14,880 Hz.
Do you know what to do to get the right frequency on sync out (15625 Hz)?
Thanks in advance and best regards,
Hello! it great project, but all pictures are black and white. Am I wrong something? Greetings: Petar