

Qrss clock tx
A collection of standalone AVR projects written in C
- Size
- 47 × 39 mm
- Copper layers
- 2
- Thickness
- 1.6 mm
- Parts
- 32
- Nets
- 30
- Pads
- 111
- Tracks, vias
- 153, 10
- Pours
- 2
- Routed
- Yes
- KiCad
- KiCad 5 (file 20171130)
- Created
- 31 Jul 2016
- Updated
- 8 Sep 2023
Overview
Qrss clock tx is an open-source printed circuit board by swharden, from the swharden/AVR-projects repository on GitHub, published under the MIT licence. It is a 2-layer board of 47 × 39 mm with 32 parts on 30 nets, routed with 153 tracks and 10 vias.
It is built around the ATTINY2313A-SU, 74HC04D and MMBT3904. Its parts include 12 capacitors, 7 resistors, 4 ICs, 3 diodes and 3 connectors. It belongs with the lEDs and displays boards and the AVR (ATmega, ATtiny) boards of this library.
Main components
3ATTINY2313A-SU
SOIC-20-300mil-40℃~+85℃ 1.8V~5.5V 128Byte 128Byte 18 20MHz 2KB 8 Bit AVR Built-in FLASH SOIC-20-300mil Microcontrollers (MCU/MPU/SOC) ROHSMicrochip TechnologyMicrocontrollers (MCU/MPU/SOC)74HC04D
SOP-14-40℃~+125℃ 1 1.5V~4.2V 1.9V、3.7V、5.2V 100mV、400mV、400mV 14ns@6V,50pF 2V~6V 2uA 5.2mA 5.2mA 500mV~1.8V 6 74HC SOIC-14 Inverters ROHSNexperiaInvertersMMBT3904
SOT-23-55℃~+150℃ 1 NPN 100 100nA 200mA 200mW 300MHz 300mV 40V 6V NPN SOT-23 Bipolar (BJT) ROHSJiangsu Changjing Electronics Technology (CJ)Bipolar (BJT)
README
README.mdAVR-projects
This repository contains a growing collection of individual AVR project files for various tasks. I personally use these projects as starting points for new microcontroller projects, or reference for common procedudures I would otherwise have to go back to the datasheet for (timers, counters, frequency counting or synthesis, interrupts, UART, I2C, ADC, etc). Each folder is self-contained and has batch scripts to set fuses to change the clock source (internal RC oscillator at 8MHz, div/8 for 1MHz, or external crystal typically up to 20 MHz)
These are some of my favorites:
- Blink an LED with an ATTiny45, ATTiny2313, or ATMega328
- sending data from a microcontroller to a PC with USART (likely via USB serial port)
- USART for ATTiny2313
- ATMega328 wired or over bluetooth
- interrupt driven vs. polling method for USART input
- PWM for ATTiny2313 or PWM for ATTiny85
- code to interface with a rotary encoder
- ultra minimal frequency generator I use for all sorts of stuff
- code to read ADC values and send them over serial with ATMega328 (including code for ADC noise reduction mode)
Programming Setup
I almost always use AVRISPmkII and AVRdude (launched from a batch script) to program my chips. I virtually never use AVRStudio. I typically develop in a Windows environment, but the code (and AVRdude) works the same in Linux.
Software
- Just install WinAVR and it should install drivers for common programmers.
- I prefer to edit C code in Notepad++
- definately check out AVRDudess (a GUI for AVRdude) as an easy GUI to load flash onto chips
Hardware
- AVR Programming in 64-bit Windows 7 (should also work for windows 10)
- windows 10 driver for USBTiny is here
- actually I only got it to work after installing Zadig
Programmers
| Note | Picture |
|---|---|
| AVRISPmkII is a ceap, fast, and convenient AVR programmer. | ![]() |
| Bus Pirate technically can program AVRs, but it's so slow it's not practical. Here's a post I wrote about it. I like the bus pirate when I need to use software to measure voltages and toggle pins. It's slow though, because the handshake it bit-banged and it takes tens of seconds to program an AVR. For just programming, I prefer an (ebay knockoff) AVR ISP mkII. Definately check out AVRDudess as a GUI for AVRDude. I usually get a standard command for a project and put it in a batch file in the same folder. | ![]() |
| AVRDudess can simplify programming of code and fuses. | ![]() |
Serial Terminal
I highly recommend RealTerm for Windows

Common AVR Datasheets and Pinouts
| chip | pinout | datasheets |
|---|---|---|
| ATMega328 | ![]() | [summary] [complete] |
| ATTiny2313 | ![]() | [summary] [complete] |
| ATTiny45 | ![]() | [summary] [complete] |
Helpful Links
Misc Code
Reading pins
if(PIND&(1<<PD7)){doSomething();} // runs doSomething() if PD7 is HIGHBit flipping in C
PORTD|=(1<<PD6); // sets PD6 high
PORTD&=~(1<<PD6); // sets PD6 low
PORTD^=(1<<PD6); // flips the state of PD6Memory-Efficient Timers
#include <util/delay.h>
void waitMs1(){_delay_ms(1);}
void waitMs(int ms){while (ms-->0){waitMs1();}}
void waitSec(int sec){while (sec-->0){waitMs(1000);}}Parts
32| Qty | Value | Footprint | References |
|---|---|---|---|
| 6 | .1u | Capacitor_SMD:C_0805_2012Metric_Pad1.15x1.40mm_HandSolder | C1, C3, C4, C6, C7, C8 |
| 4 | 1K | Resistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolder | R1, R2, R3, R6 |
| 2 | 100K | Resistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolder | R4, R7 |
| 2 | 100p | Capacitor_SMD:C_0805_2012Metric_Pad1.15x1.40mm_HandSolder | C2, C5 |
| 2 | 10p | Capacitor_SMD:C_0805_2012Metric_Pad1.15x1.40mm_HandSolder | C9, C11 |
| 2 | 30p | Capacitor_SMD:C_0805_2012Metric_Pad1.15x1.40mm_HandSolder | C10, C12 |
| 2 | LM78M05_TO252 | Package_TO_SOT_SMD:TO-252-2 | U1, U2 |
| 1 | 10.14MHz | Crystal:Crystal_HC49-4H_Vertical | Y1 |
| 1 | 10K | Resistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolder | R5 |
| 1 | 74HC04 | Package_SO:SOIC-14_3.9x8.7mm_P1.27mm | U3 |
| 1 | ATtiny2313A-SU | Package_SO:SOIC-20W_7.5x12.8mm_P1.27mm | U4 |
| 1 | Conn_Coaxial | Connector_Coaxial:SMA_Amphenol_132134-11_Vertical | J3 |
| 1 | Ferrite_Bead | Resistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolder | FB1 |
| 1 | ICSP | Connector_PinHeader_2.54mm:PinHeader_1x05_P2.54mm_Vertical | J2 |
| 1 | MMBT3904 | Package_TO_SOT_SMD:SOT-23 | Q1 |
| 1 | POWER | LED_SMD:LED_0805_2012Metric_Pad1.15x1.40mm_HandSolder | D1 |
| 1 | PWR | Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_Vertical | J1 |
| 1 | STAT | LED_SMD:LED_0805_2012Metric_Pad1.15x1.40mm_HandSolder | D4 |
| 1 | VAR2 | Diode_SMD:D_0805_2012Metric_Pad1.15x1.40mm_HandSolder | D3 |
Questions
How big is the Qrss clock tx PCB?
It measures 47 × 39 mm and has 2 copper layers, 1.6 mm thick.
What parts does the Qrss clock tx use?
32 parts, built around the ATTINY2313A-SU, 74HC04D and MMBT3904. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.
Where can I download the Qrss clock tx KiCad files?
From the swharden/AVR-projects repository on GitHub, at the commit this page was made from: the board is QRSS TX - clock tx/PCB/qrss-clock-tx.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.
Can I use the Qrss clock tx design in my own project?
Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).
Similar boards
- 2 layers78.3 × 74.6 mm

- 2 layers482.6 × 35.6 mm

- 2 layers70 × 44 mm

- 2 layers31.7 × 23.7 mm

Avr hid usb init tester
bga/avr-hid-usb-init-tester
Avr attiny2313 soft usb hid "keyboard" for testing bios usb initialization. Device is blinking if bios assign usb endpoint address and continue sending USB SOF (ie bios in alive).
20 parts3 - 2 layers28.4 × 30 mm

- 2 layers

Device plan
lyase/hello-bulb
making the simplest usb device using atmel2313 the board design is available in kicad format .code is c, licence GPL V3
29 parts2 - 2 layers150.2 × 62.6 mm

- 2 layers54.8 × 40 mm

Tiny Sound Source
13chuck13-ua/Tiny-Sound-Source
AVR ATtny as LPT DAC compatible with Covox Speech Thing and Disney Sound Source.
23 parts





