RGB Pattern Generator

BARS PAL red CROSSHATCH
PAL BLUE dots cross
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:
Schematic
And this is the PCB and silkscreen:
Board
 
 Silkscreen
 
 generator-silkscreen1
You can download a pdf file with the schematic and pcb from here:
 
attiny2313-pattern-generator.pdf
 
Here are the files for Cadsoft’s eagle design program:
ATtiny2313 pattern generator simple.sch
 
ATtiny2313 pattern generator simple.brd
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:
ATtiny2313 pattern generator simple.bas
 
ATtiny2313 pattern generator simple.hex
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):
generator-fuses

Important!

A bug found in the placement of transistor T1 in PCB.
The correct is the reverse of the drawing in silkscreen. The schematic it’s ok.

For any questions submit a comment or mail me to: dselecdim at gmail dot com
  1. THIMIOS
    23/11/2009 at 2:08 pm | #1

    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.

  2. OMERO SOUZA LIMA
    05/12/2009 at 2:58 am | #2

    Congratulations

    His work besides good is clean and without “giving turns.”

  3. 06/02/2010 at 5:36 pm | #3

    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! :)

  4. José
    18/03/2010 at 2:21 pm | #4

    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

  5. 31/03/2010 at 12:42 am | #5

    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

  6. Luis
    15/04/2010 at 7:15 pm | #6

    I’m not sure but PIN 3 of scart is “audio out” not ” audio in”

  7. cape-t
    21/09/2010 at 12:56 pm | #7

    Very good job! Works excellent!

    Thank you!

  8. MOKI
    28/09/2010 at 9:48 pm | #8

    Excellent website. Very informative & useful. Good work!!!! Going to build the RGB Pattern Generator.

  9. Dimitrios
    18/12/2010 at 7:31 pm | #9

    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,

  10. 04/04/2011 at 5:14 am | #10

    nice posting..thankS very much for sharing

  11. asad al.hakeem
    19/04/2011 at 1:54 am | #11

    Thank You for Your kindness, generousity

    rich information, it was very helpfull

  12. Arif junaedi
    28/04/2011 at 6:46 pm | #12

    Salam kenal,
    Makasih atas sharenya..

  13. Nebojsa Popovic
    29/07/2011 at 9:28 am | #13

    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,

  14. Petar
    04/08/2011 at 9:38 pm | #14

    Hello! it great project, but all pictures are black and white. Am I wrong something? Greetings: Petar

  1. 02/10/2010 at 10:01 pm | #1
  2. 30/12/2010 at 6:37 am | #2
  3. 10/09/2011 at 10:00 pm | #3
  4. 18/10/2011 at 12:25 pm | #4

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.