Skip to the content
4 layers61 × 42 mmDigital, the printed circuit board in 3D

This board includes a HC-05 Bluetooth module which exposes a serial port interface over bluetooth as a direct link with the microcontroller.

Size
61 × 42 mm
Copper layers
4
Thickness
1.6 mm
Parts
49
Nets
124
Pads
249
Tracks, vias
324, 34
Pours
4
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
8 Mar 2019
Updated
1 Mar 2021

Overview

Digital is an open-source printed circuit board by BiomedicalCircuits, from the BiomedicalCircuits/STM32_HC05 repository on GitHub. It is a 4-layer board of 61 × 42 mm with 49 parts on 124 nets, routed with 324 tracks and 34 vias.

Its parts include 18 capacitors, 11 resistors, 2 ICs, 2 crystals and 1 transistor. It belongs with the STM32 boards of this library.

README

README.md

STM32_HC05

This is a PCB board designed in KiCAD which implements a STM32F746VGT6 microcontroller exposing the following pins and internal connections. All of the GPIO pins support timer peripheral output, for a more detailed view of the potential PIN function, check the STM32F7 datasheet using name as a reference. Please read STM32F7 Reference page and Getting Started Guide.

This board includes a HC-05 Bluetooth module which exposes a serial port interface over bluetooth as a direct link with the microcontroller. The bluetooth module is switched on/off with a transistor switch controlled by a microcontroller pin.

Board Design

PCB Design

Pinout

Pinout

Pin Function

NamePinExtra Functions
PA022ADC0, UART4_TX, USART2_CTS
PA123ADC1, UART4_RX, USART2_RTS
PA224ADC2, USART2_TX
PA325ADC3, USART2_RX
PA428ADC4, USART2_CLK
PA529ADC5, SPI1_CLK
PA630ADC6, SPI1_MISO
PA731ADC7, SPI1_MOSI
PB034ADC8
PB135ADC9
PB1046I2C2_CLK
PB1147I2C2_SDA
PD855USART3_TX
PD956USART3_RX
PD1057USART3_CLK
PD1158USART3_CTS
PD1259USART3_RTS
PD1360
PD1461
PD1562
PD081Green LED
PD182Red LED
PD283Blue LED
PD384Orange LED
PD485Yellow LED
PC663HC-05 UART RX
PC764HC-05 UART TX
PC865HC-05 BT KEY
PE1242Bluetooth Enable

Programming Interface

The programming and power port is located on the upper left section of the board. The flashing debugging must be performed using a ST-Link/v2 debugger or STM32FX evaluation board (Discovery, Nucleo, etc ...). LEDs are connected to GPIO (PD0-4), bluetooth module is connected to UART6 port and the bluetooth module on/off actuation is driven by GPIO PE12. Further information on programming and the specific pin functions can be found on the STM32F7 datasheet, and the HC-05 bluetooth module reference guide.

Code Examples

The following 4 files form the required interface to program and operate the Bluetooth module via the UART peripheral of the STM32F7.

bluetooth.h

C
#ifndef __bluetooth_H
#define __bluetooth_H
#ifdef __cplusplus
 extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
#include "stm32f7xx_hal.h"
#include "stdlib.h"
#include <stdio.h>
#include <string.h>
#include "gpio.h"

void BT_isAlive(void);
void BT_setNameMixcell(void);
void BT_clearPaired(void);
void BT_setMaster(void);
void BT_setSlave(void);
void BT_setCOM(void);
void BT_Reset(void);	
void BT_Restore(void);	
void BT_SendTest(void);
void BT_CMode(void);
void BT_Init_UART(void);

bluetooth.c

C
#include "bluetooth.h"

extern UART_HandleTypeDef UART;

extern char data_rx[32];
extern char rx_data[8];			/* Buffer used for UART */

void BT_isAlive(void)
{
	char data_tx[4] = "AT\r\n";
	memset(data_rx, 0x00, 32);
	HAL_UART_Transmit(&UART, (uint8_t *) data_tx, 4, 1000);
	HAL_UART_Receive(&UART, (uint8_t *) data_rx, 24, 1000);
}

void BT_setName(void)
{
	// TODO Set Bluetooth name: MY_NAME.
	char data_tx[17] = "AT+NAME=MY_NAME\r\n";
	memset(data_rx, 0x00, 32);
	HAL_UART_Transmit(&UART, (uint8_t *) data_tx, 17, 500);
	HAL_UART_Receive(&UART, (uint8_t *) data_rx, 24, 500);
}

usart.h

C
/**
  ******************************************************************************
  * File Name          : UART.h
  * Date               : 13/04/2015 14:34:07
  * Description        : This file provides code for the configuration
  *                      of the USART instances.
  ******************************************************************************
  *
  * COPYRIGHT(c) 2015 STMicroelectronics
  *
  * Redistribution and use in source and binary forms, with or without modification,
  * are permitted provided that the following conditions are met:
  *   1. Redistributions of source code must retain the above copyright notice,
  *      this list of conditions and the following disclaimer.
  *   2. Redistributions in binary form must reproduce the above copyright notice,
  *      this list of conditions and the following disclaimer in the documentation
  *      and/or other materials provided with the distribution.
  *   3. Neither the name of STMicroelectronics nor the names of its contributors
  *      may be used to endorse or promote products derived from this software
  *      without specific prior written permission.
  *
  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE

usart.c

C
#include "usart.h"
#include "gpio.h"
#include <stdio.h>
#include <math.h>
#include "stdlib.h"
#include <string.h>

UART_HandleTypeDef UART;

char data_rx[32] = "";
extern char rx_data[8];			/* Buffer used for UART */
extern uint16_t INFO_TO_SEND[1024]; 	/* Buffer used for ADC */

/* USART6 init function */
void MX_USART_UART_Init(void)
{
  UART.Instance = USART6;
  UART.Init.BaudRate = 38400;
	UART.Init.WordLength = UART_WORDLENGTH_8B;
  UART.Init.StopBits = UART_STOPBITS_1;
  UART.Init.Parity = UART_PARITY_NONE;
  UART.Init.Mode = UART_MODE_TX_RX;
  UART.Init.HwFlowCtl = UART_HWCONTROL_NONE;
  UART.Init.OverSampling = UART_OVERSAMPLING_16;

Success Stories

Parts

49
QtyValueFootprintReferences
10100nFCapacitors_SMD:C_0402C2, C4, C11, C12, C13, C14, C15, C16, C17, C18
7LEDLEDs:LED_0805B, D1, D2, G, O, R, Y
647Resistors_SMD:R_0402R1, R7, R8, R9, R10, R11
333KResistors_SMD:R_0402R4, R5, R6
3Conn_01x02Pin_Headers:Pin_Header_Straight_1x02_Pitch2.54mmDAC1, DigitalPWR1, I2C1
21uFCapacitors_SMD:C_0402C1, C3
22.2uFCapacitors_SMD:C_0402C7, C8
222nFCapacitors_SMD:C_0402C5, C6
233KResistors_SMD:R_0805R2, R3
26pFCapacitors_SMD:C_0402C9, C10
2Conn_01x04Pin_Headers:Pin_Header_Straight_1x04_Pitch2.54mmADC1, ADC2
125MHzUser_library:OSCCC320X250X60NY1
132kHzCrystals:Crystal_SMD_2012-2pin_2.0x1.2mmY2
1Conn_01x08Pin_Headers:Pin_Header_Straight_1x08_Pitch2.54mmGPIO1
1Conn_02x05_Odd_Even_MountingPinPin_Headers:Pin_Header_Straight_2x05_Pitch2.54mmJ1
1INDUCTORInductors_SMD:L_0805L1
1MOUDLE-BLUETOOTH-HC-05(34P-27X13MM)myKiCADLibrary:HC05U2
1Q_NMOS_GSDTO_SOT_Packages_SMD:SOT-23Q1
1STM32F746VGTxmyKiCADLibrary:LQFP100U1

Similar boards

  • 4 layers110 × 40.7 mmDrone V2 Remote, the printed circuit board in 3D

    Drone V2 Remote

    hackclub/OnBoard

    💡 Join 1,000 teenagers and make your first PCB with a $100 grant!

    49 parts915
  • 4 layers44.5 × 82.6 mmCONTROLLER AMPCD DDI, the printed circuit board in 3D

    CONTROLLER AMPCD DDI

    jrsteensen/OpenHornet

    OpenHornet 1:1 F/A-18C Simulator Repository

    49 parts431
  • 4 layers41 × 35 mmDiffprobe prototype, the printed circuit board in 3D

    Diffprobe prototype

    azonenberg/starshipraider

    Open hardware test equipment

    49 parts193BSD-3-Clause
  • 4 layers80 × 73.8 mmESP32-Bit Pirate Dock, the printed circuit board in 3D

    ESP32-Bit Pirate Dock

    AndreiVladescu/ESP32-Bit-Pirate-Hardware

    Carrier breaker-board for the ESP32-S3 Devkit. Works great with the ESP32-Bit-Pirate firmware.

    49 parts85CERN-OHL-W-2.0
  • 4 layers19 × 32 mmMalenki hv, the printed circuit board in 3D

    Malenki hv

    MarkR42/malenki-nano

    Speed controller and receiver for small robots

    49 parts73GPL-3.0
  • 4 layers80 × 80 mmZ2203, the printed circuit board in 3D

    Z2203

    brer-rabbit/zoxnoxious

    Analog synth / software interface

    49 parts68GPL-3.0
  • 4 layers42.8 × 36.8 mmDriver board, the printed circuit board in 3D

    Driver board

    blazer82/FT81x_Arduino_Driver

    FT81x on ST7701S Arduino Driver

    49 parts59MIT
  • 4 layers66.9 × 87 mmMeshtasticNode BQ25185, the printed circuit board in 3D

    MeshtasticNode BQ25185

    h0lad/SolarMeshtasticNode

    This is a Meshtastic Solar Node PCB based on the Heltec HT-CT62 and the linear solar charge controller TI BQ25185.

    49 parts40CERN-OHL-S-2.0

Questions

How big is the Digital PCB?

It measures 61 × 42 mm and has 4 copper layers, 1.6 mm thick.

What parts does the Digital use?

49 parts. 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 Digital KiCad files?

From the BiomedicalCircuits/STM32_HC05 repository on GitHub, at the commit this page was made from: the board is Digital.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Digital design in my own project?

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