Skip to the content
4 layers40 × 47 mmTempReader w I2C.kicad sch, the printed circuit board in 3D

This template will serve as a quick-start for those who do not wish to use an IDE, but rather develop in a text editor of choice and build from the command line.

Size
40 × 47 mm
Copper layers
4
Thickness
1.6 mm
Parts
42
Nets
46
Pads
158
Tracks, vias
315, 51
Pours
2
Routed
Yes
KiCad
KiCad 8.0 (file 20240108)
Created
9 Sep 2024
Updated
12 May 2025

Overview

TempReader w I2C.kicad sch is an open-source printed circuit board by mhoikka, from the mhoikka/stm32f0-discovery-basic-bme280_test repository on GitHub. It is a 4-layer board of 40 × 47 mm with 42 parts on 46 nets, routed with 315 tracks and 51 vias.

It is built around the BME280 and MIC5205-3.3YM5. Its parts include 15 capacitors, 11 resistors, 3 inductors, 2 connectors and 1 IC.

Main components

2

README

README.md

#STM32F0-Discovery Application Template This package is for use when compiling programs for STM32F05xx ARM microcontrollers using arm-none-eabi-gcc (I'm using the Code Sourcery G++:Lite Edition toolchain). The Makefile in the main directory will call the Make file in the Libraries directory, thereby automatically building the STM peripheral library. However, running 'make clean' will not affect the peripherals library (the same command can be run from the Libraries directory to do this).

This template will serve as a quick-start for those who do not wish to use an IDE, but rather develop in a text editor of choice and build from the command line. It is based on an example template for the F4 Discovery board put together by Jeremy Herbert.

##Subfolders:

  1. Library/

    • This is the Library/ folder from the STM32F0xx_StdPeriph_Lib_V1.0.0 standard peripheral driver library produced by STM. This preserves the original structure which should make it easy to roll in library upgrades as they are published
    • Makefile is not part of the STM release, and must be copied over if the library is upgraded.
    • stm32f0xx_conf.h is used to configure the peripheral library. It must be copied here if the library is upgraded. The file was file taken from the STM32F0-Discovery firmware package. It is found in the following directory:
      • Project/Demonstration/
    • Abstracting the libraries: You may place this folder anywhere you like in order to use it for multiple projects. Just change the path of the STD_PERIPH_LIB variable in the Makefile
  2. Device/

    • Folder contains device specific files:
    • startup_stm32f0xx.s is the startup file taken from the STM32F0-Discovery firmware package. It is found in the following directory:
      • Libraries/CMSIS/ST/STM32F0xx/Source/Templates/TrueSTUDIO/
    • Linker Scripts (Device/ldscripts)
      • These linker scripts are used instead of the stm32_flash.ld script which is included in the STM demo code. This is because the original file contains an unreasonably restrictive copyright assertion.
  3. inc/

    • All include files for this particular project.
  4. src/

    • All source files for this particular project (including main.c).
    • system_stm32f0xx.c can be generated using an XLS file developed by STM. This sets up the system clock values for the project. The file included in this repository is taken from the STM32F0-Discovery firmware package. It is found in the following directory:
      • Libraries/CMSIS/ST/STM32F0xx/Source/Templates/
  5. extra/

    • This contains a procedure file used to write the image to the board via OpenOCD
    • Abstracting the extra folder: the .cfg file in the extra folder may be placed anywhere so that multiple projects can use one file. Just change the OPENOCD_PROC_FILE variable in the Make file to match the new location.

##Loading the image on the board

If you have OpenOCD installed 'make program' can be used to flash the .bin file to the board. OpenOCD must be installed with stlink enabled. Clone the git repository and use these commands to compile/install it:

text
./bootstrap
./configure --prefix=/usr --enable-maintainer-mode --enable-stlink
make 
sudo make install

If there is an error finding the .cfg file, please double-check the OPENOCD_BOARD_DIR constant at the top of the Makefile (in this template directory, not in OpenOCD).

###UDEV Rule for the Discovery Board

If you are not able to communicate with the STM32F0-Discovery board without root privileges you should follow the step from the stlink repo readme file for adding a udev rule for this hardware.

##Compiling your own toolchain It might be best to use a precompiled toolchain liked CodeSourcery G++: Lite Edition. But if you would prefer to compile your own, give this guide (link dead, try the Internet Archive)a try. Just google for the source code to make sure you're using the most recent versions. GCC now comes with the core and g++ code all in one archive.

###Possible compiling errors:

  • You may encouter unfulfilled dependecies when it comes to GMP, MPFR and MPC. According to the GCC installation Wiki you should install the following packages: libgmp-dev libmpfr-dev libmpc-dev. If that doesn't work, read the linked Wiki for further options.
  • If you get the error: "configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES" try adding the following flags when configuring GCC: "--with-system-zlib --disable-shared"

Parts

42
QtyValueFootprintReferences
64.7kOResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR6, R7, R8, R9, R10, R11
41uFCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC1, C3, C4, C9
4MountingHoleMountingHole:MountingHole_2.2mm_M2H1, H2, H3, H4
21pFCapacitor_SMD:C_0402_1005Metric_Pad0.74x0.62mm_HandSolderC6, C12
21uCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC7, C8
222pFCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC14, C15
10Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR5
11.5pCapacitor_SMD:C_0402_1005Metric_Pad0.74x0.62mm_HandSolderC5
110kResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR3
110uFCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC2
116MHECS-160-20-46X:XTAL_ECS-160-20-46XY1
11MResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR2
12.2nFCapacitor_SMD:C_0402_1005Metric_Pad0.74x0.62mm_HandSolderC10
12.7nHInductor_SMD:L_0402_1005Metric_Pad0.77x0.64mm_HandSolderL2
122kResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR1
13.9nHInductor_SMD:L_0402_1005Metric_Pad0.77x0.64mm_HandSolderL3
133nFCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC13
14.7pFCapacitor_SMD:C_0402_1005Metric_Pad0.74x0.62mm_HandSolderC11
18.2nHInductor_SMD:L_0402_1005Metric_Pad0.77x0.64mm_HandSolderL1
1BME Pin HeaderConnector_PinHeader_2.54mm:PinHeader_1x07_P2.54mm_VerticalJ2
1BME280Package_LGA:Bosch_LGA-8_2.5x2.5mm_P0.65mm_ClockwisePinNumberingBME280
1MIC5205-3.3YM5Package_TO_SOT_SMD:SOT-23-5U5
1NOT SURE WHAT THIS ISConnector_PinHeader_2.54mm:PinHeader_1x06_P2.54mm_VerticalNotSure1
1NRF Pin HeaderConnector_PinHeader_2.54mm:PinHeader_2x04_P2.54mm_VerticalJ1
1UARTConnector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalUART1
1no-popResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR4
1~Package_DFN_QFN:QFN-20-1EP_4x4mm_P0.5mm_EP2.5x2.5mmNRF24L01+1
1~Package_QFP:LQFP-32_7x7mm_P0.8mmSTM32F030R8

More from mhoikka/stm32f0-discovery-basic-bme280_test

1
  • 4 layers40 × 50 mmTempReader w I2C Ltuned.kicad sch, the printed circuit board in 3D

    TempReader w I2C Ltuned.kicad sch

    mhoikka/stm32f0-discovery-basic-bme280_test

    This template will serve as a quick-start for those who do not wish to use an IDE, but rather develop in a text editor of choice and build from the command line.

    41 parts

Similar boards

  • 2 layers55.4 × 33 mmWasd code upgrade, the printed circuit board in 3D

    Wasd code upgrade

    cbiffle/keybrain

    Drop-in replacement controller for WASD CODE v2B keyboard

    24 parts82
  • 2 layers65.2 × 100 mmGk midi module, the printed circuit board in 3D

    Gk midi module

    cycfi/nexus

    The Nexus breakout box

    115 parts20
  • 2 layers139 × 139 mmBreeze electronics design, the printed circuit board in 3D

    Breeze electronics design

    microdynamics-robot-quadcopter/breeze_electronics_design

    This project is created and managed by EDA softwares, which contains the breeze quadcopter's component library, footprint library, schematic, printed circuit boards, etc.

    107 parts13GPL-3.0
  • 4 layers16.5 × 16.5 mmRpcube, the printed circuit board in 3D

    Rpcube

    diminDDL/rpcube

    An all in one small BGA package containing an RP2040, easing the integration of an RP2040 into your design.

    90 parts5MIT
  • 2 layers73.7 × 48.3 mmGpsdo3, the printed circuit board in 3D

    Gpsdo3

    glenoverby/gpsdo3

    Improved GPS Disciplined Oscillator

    55 parts5
  • 2 layers21.6 × 48.3 mmRF Arduino Pro Mini, the printed circuit board in 3D

    RF Arduino Pro Mini

    etimou/Arduino-RF-Pro-Mini

    Arduino Pro Mini + nRF24L01P = Arduino-RF-Pro-Mini

    43 parts4
  • 4 layers113 × 93.7 mmCharacterizer, the printed circuit board in 3D

    Characterizer

    patrickyeon/battery-characterizer

    battery tester/characterizer hardware, firmware.

    217 parts4

Questions

How big is the TempReader w I2C.kicad sch PCB?

It measures 40 × 47 mm and has 4 copper layers, 1.6 mm thick.

What parts does the TempReader w I2C.kicad sch use?

42 parts, built around the BME280 and MIC5205-3.3YM5. 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 TempReader w I2C.kicad sch KiCad files?

From the mhoikka/stm32f0-discovery-basic-bme280_test repository on GitHub, at the commit this page was made from: the board is TempReader_w_I2C.kicad_sch/TempReader_w_I2C.kicad_sch.kicad_pcb and its schematic TempReader_w_I2C.kicad_sch/TempReader_w_I2C.kicad_sch.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the TempReader w I2C.kicad sch design in my own project?

Its repository states no licence, so its author keeps all rights: ask mhoikka before reusing the design.