Skip to the content
PCBKitNew board
2 layers47 × 39 mmQrss clock tx, the printed circuit board in 3D

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

3

README

README.md

AVR-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:

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

Programmers

NotePicture
AVRISPmkII is a ceap, fast, and convenient AVR programmer.AVRISPmkII
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.avrdudess

Serial Terminal

I highly recommend RealTerm for Windows

Common AVR Datasheets and Pinouts

chippinoutdatasheets
ATMega328[summary] [complete]
ATTiny2313[summary] [complete]
ATTiny45[summary] [complete]

Helpful Links

Misc Code

Reading pins

C
if(PIND&(1<<PD7)){doSomething();} // runs doSomething() if PD7 is HIGH

Bit flipping in C

c
PORTD|=(1<<PD6); // sets PD6 high
PORTD&=~(1<<PD6); // sets PD6 low
PORTD^=(1<<PD6); // flips the state of PD6

Memory-Efficient Timers

C
#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
QtyValueFootprintReferences
6.1uCapacitor_SMD:C_0805_2012Metric_Pad1.15x1.40mm_HandSolderC1, C3, C4, C6, C7, C8
41KResistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolderR1, R2, R3, R6
2100KResistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolderR4, R7
2100pCapacitor_SMD:C_0805_2012Metric_Pad1.15x1.40mm_HandSolderC2, C5
210pCapacitor_SMD:C_0805_2012Metric_Pad1.15x1.40mm_HandSolderC9, C11
230pCapacitor_SMD:C_0805_2012Metric_Pad1.15x1.40mm_HandSolderC10, C12
2LM78M05_TO252Package_TO_SOT_SMD:TO-252-2U1, U2
110.14MHzCrystal:Crystal_HC49-4H_VerticalY1
110KResistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolderR5
174HC04Package_SO:SOIC-14_3.9x8.7mm_P1.27mmU3
1ATtiny2313A-SUPackage_SO:SOIC-20W_7.5x12.8mm_P1.27mmU4
1Conn_CoaxialConnector_Coaxial:SMA_Amphenol_132134-11_VerticalJ3
1Ferrite_BeadResistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolderFB1
1ICSPConnector_PinHeader_2.54mm:PinHeader_1x05_P2.54mm_VerticalJ2
1MMBT3904Package_TO_SOT_SMD:SOT-23Q1
1POWERLED_SMD:LED_0805_2012Metric_Pad1.15x1.40mm_HandSolderD1
1PWRConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ1
1STATLED_SMD:LED_0805_2012Metric_Pad1.15x1.40mm_HandSolderD4
1VAR2Diode_SMD:D_0805_2012Metric_Pad1.15x1.40mm_HandSolderD3

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 mmVGAtonic, the printed circuit board in 3D

    VGAtonic

    dqydj/VGAtonic

    Entry level embedded video card in a neat little CPLD package.

    57 parts132
  • 2 layers482.6 × 35.6 mmPrecision clock, the printed circuit board in 3D

    Precision clock

    mitxela/PrecisionClock-Hardware

    PCB design for the Precision Clock Mk III

    49 parts41
  • 2 layers31.7 × 23.7 mmAvr hid usb init tester, the printed circuit board in 3D

    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 mmThulog, the printed circuit board in 3D

    Thulog

    isuruceanu/thulog

    Temperature & Humidity Usb Logger device

    16 parts3
  • 2 layersDevice plan, the printed circuit board in 3D

    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 mmUV timer, the printed circuit board in 3D

    UV timer

    VGCH/UV_lamp_PCB

    UV Lamp for PCB

    85 parts1
  • 2 layers54.8 × 40 mmTiny Sound Source, the printed circuit board in 3D

    Tiny Sound Source

    13chuck13-ua/Tiny-Sound-Source

    AVR ATtny as LPT DAC compatible with Covox Speech Thing and Disney Sound Source.

    23 parts