

Test project with uC
Scripts to auto-generate pin defination header from schematics
- Copper layers
- 2
- Thickness
- 1.6 mm
- Parts
- 5
- Nets
- 42
- Pads
- 73
- Tracks, vias
- 0, 0
- Routed
- Not yet
- KiCad
- KiCad 5 (file 20171130)
- Created
- 20 May 2019
- Updated
- 6 Dec 2019
Overview
Test project with uC is an open-source printed circuit board by DeshmukhMalhar, from the DeshmukhMalhar/sch2header repository on GitHub. It is a 2-layer board with 5 parts on 42 nets.
It is built around the ATMEGA328-MU, ATTINY2313-20SU and IRF540N. Its parts include 2 ICs, 2 crystals and 1 transistor. It belongs with the AVR (ATmega, ATtiny) boards of this library.
Main components
3ATMEGA328-MU
VQFN-32-EP(5x5)-40℃~+85℃ 1.8V~5.5V 1KB 20MHz 23 2KB 32KB 8 Bit AVR Built-in FLASH Power-on reset (POR)、Undervoltage detection (BOR/LVD/LVR/LVI)、Watchdog reset、External pin reset (NRST)、Built-in general-purpose timer、Programmable watchdog、Calendar function、Built-in temperature sensor、Touch function VQFN-32-EP(5x5) Microcontrollers (MCU/MPU/SOC) ROHSMicrochip TechnologyMicrocontrollers (MCU/MPU/SOC)ATTINY2313-20SU
SOIC-20-300mil-40℃~+85℃ 128Byte 128Byte 18 2.7V~5.5V 20MHz 2KB 8 Bit AVR Built-in FLASH SOIC-20-300mil Microcontrollers (MCU/MPU/SOC) ROHSMicrochip TechnologyMicrocontrollers (MCU/MPU/SOC)IRF540N
TO-2201 N-channel 1.35nF 100V 130W 280pF 33A 35mΩ@10V 4V 52nC@10V 85pF N-Channel TO-220 MOSFETs ROHSOSENMOSFETs
README
readme.mdGenerate pin definition header file form KiCAD schematic
The firmware of microcontroller used has to have the correct pins connected to the peripherals in it. This project tries to automatically generate a pindefinitions.h file. This file can be included to your firmware project directly. The net names assigned to the pins in the schematic are #defined with actual pin names in the symbol library. So you can assign sensible names to pins and automagically use those in you code. Generally, this is done manually, which might introduce errors. Thus, this effort of automating it.
SCOPE:
- Try to generate pindefs.h completely automatically
- try to integrate it in CI, i.e. when pushed, trigger build to generate pindefs.h
- maybe, in KiCAD 6, this can be run on exit of the sch editor, or on run of netlist generator.
- Currently in KiCAD 5.1.x , if possible I will try to make it a BOM script.(it might be possible more than I think)
Parts
5| Qty | Value | Footprint | References |
|---|---|---|---|
| 1 | 12M | Crystal:Crystal_SMD_0603-4Pin_6.0x3.5mm | Y1 |
| 1 | 16M | Crystal:Crystal_SMD_0603-4Pin_6.0x3.5mm | Y2 |
| 1 | ATmega328-MU | Package_DFN_QFN:QFN-32-1EP_5x5mm_P0.5mm_EP3.1x3.1mm | U2 |
| 1 | ATtiny2313-20SU | Package_SO:SOIC-20W_7.5x12.8mm_P1.27mm | U1 |
| 1 | IRF540N | Package_TO_SOT_THT:TO-220-3_Vertical | Q1 |
Questions
What parts does the Test project with uC use?
5 parts, built around the ATMEGA328-MU, ATTINY2313-20SU and IRF540N. 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 Test project with uC KiCad files?
From the DeshmukhMalhar/sch2header repository on GitHub, at the commit this page was made from: the board is kicad-project/test_project_with_uC/test_project_with_uC.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.
Can I use the Test project with uC design in my own project?
Its repository states no licence, so its author keeps all rights: ask DeshmukhMalhar before reusing the design.
Similar boards
- 2 layers

- 2 layers100 × 71 mm

Welding controler
RZ3DDD/Spot_Welding_Controler
Development of a PCB for Spot_Welding_Controler
38 parts2 - 2 layers99 × 57.5 mm

Clock
dunkelstern/NightClock
Small SMD based night clock with RTC and battery/supercap backup
42 parts1BSD-3-Clause - 2 layers29.6 × 49.3 mm

Flashmultiplexer
pruttelherrie/Ehx9-All
Modifications for the Electro Harmonix '9' line of pedals.
19 parts23 - 2 layers100 × 50 mm

Mains timer
reivax-boucoi/PCB_Kicad
Repo for all my home projects involving PCBs developped with Kicad
37 parts1 - 2 layers29.5 × 41.5 mm

- 6 layers30 × 57.1 mm

- 4 layers51 × 19 mm
