Skip to the content
2 layersExpansion board, the printed circuit board in 3D

Ultrasonic communication by STM32L4 and MEMS microphone

Copper layers
2
Thickness
1.6 mm
Parts
12
Nets
38
Pads
56
Tracks, vias
55, 10
Routed
Yes
KiCad
KiCad 4
Created
14 May 2018
Updated
3 Dec 2018

Overview

Expansion board is an open-source printed circuit board by araobp, from the araobp/ultrasonic-communication repository on GitHub. It is a 2-layer board with 12 parts on 38 nets, routed with 55 tracks and 10 vias.

Its parts include 8 connectors, 1 capacitor, 1 resistor, 1 diode and 1 switch. It belongs with the audio and music boards and the STM32 boards of this library.

README

README.md

(Nov 2, 2018) I am going to rework on this project



Learning DSP with ultrasonic communications

drawing

Background and motivation

STMicro gave me STM32L4(Arm Cortex-M4) evaluation board and a pair of MEMS microphones for free at a trade show held in Makuhari city, Chiba, Japan. Thanks a lot to STMicro!

As an IoT hobyyist, I am becoming interested in DSP with MEMS mic.

Also thanks to this: https://github.com/y2kblog/NUCLEO-L476RG_DFSDM_PDM-Mic.

Project goal

I am a DSP beginner, so I learn DSP by doing: realize "low-power narrow area networking" by cheap DSP and MEMS mic.

My work so far

Project documentation

==> Specification

Platform: STM32L4 platform and FFT test code on MEMS mic

==> Platform

==> Test code

Mathematical formula expressing ultrasonic wave

I tested frequency-hopping to transmit data over ultra-sonic, resulting in very bad performance at low SNR in a noisy room. So I decided to employ chirp modulation in this project.

drawing

==> Formula

Developing my original MEMS mic shield
drawing

I developed my original shield with Knowles MEMS mic:

  • Knowles MEMS mic
  • Character LCD
  • LED (red)
  • Tactile switche (reset)
drawing
Pinout of STM32L476RG
drawing
Working code

Code of the ultrasonic receiver running on STM32L476RG (Arm Cortex-M4L) and the original expansion board:

==> Code

Next challenge: I/Q modulation

I already made the code, but it did not fit into the RAM, so I will reduce the number of samples to 1024.

But the resolution of FFT w/ I/Q modulation will be still much better than the current implementation (FFT of 2048 samples w/o I/Q modulation).

Experiments I made over the past month

I have made several experiments over the past month to study how data can be transmitted over ultra-sonic wave: FSK, hopping and chirp. The conclusion is to try Chirp modulation to fight with noise.

Ultrasonic communications experiment (FSK modulation)

==> Experiment

==> Test code

Ultrasonic communications experiment (Chirp modulation)
drawing

==> Experiment2

==> Test code

Ultrasonic communications experiment (Chirp modulation with compression)

==> Experiment3

Ultrasonic communications experiment (time frame synchronization)

==> Experiment4

Parts

12
QtyValueFootprintReferences
3Conn_01x04_Femaleexpansion_board:Pin Header 4PJ4, J5, J6
2Conn_01x08expansion_board:Pin Header 8PJ1, J7
10.1pFexpansion_board:CapacitorC1
1470expansion_board:RegisterR1
1Conn_01x02expansion_board:Pin Header 2PJ3
1Conn_01x06expansion_board:Pin Header 6PJ2
1Conn_01x10expansion_board:Pin Header 10PJ8
1LED redexpansion_board:LEDD1
1SW_Pushexpansion_board:Tactile_switch_4PSW1

Similar boards

  • 2 layersNrf bga, the printed circuit board in 3D

    Nrf bga

    github-linguist/linguist

    Language Savant. If your repository's language is being reported incorrectly, send us a pull request!

    12 parts14kMIT
  • 2 layers66.9 × 74.5 mmDeskHop, the printed circuit board in 3D

    DeskHop

    hrvach/deskhop

    Fast Desktop Switching Device

    12 parts7.9kGPL-3.0
  • 2 layers40 × 15 mmSensors, the printed circuit board in 3D

    Sensors

    google/mozc-devices

    Circuit diagrams and firmware source code for Gboard DIY keyboards

    12 parts3kApache-2.0
  • 2 layers42.7 × 56.5 mmTle6240 driver, the printed circuit board in 3D

    Tle6240 driver

    rusefi/rusefi

    rusefi - GPL internal combustion engine control unit

    12 parts1.2k
  • 2 layers49 × 25 mm5v boost regulator, the printed circuit board in 3D

    5v boost regulator

    hackclub/OnBoard

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

    12 parts915
  • 2 layers28.3 × 10.3 mmTap Photosensor PCB, the printed circuit board in 3D

    Tap Photosensor PCB

    VoronDesign/Voron-Tap

    Tap is a nozzle-based z-probe for the V2 and Trident printer designs. The entire toolhead moves to trigger an optical switch. Tap offers many advantages:

    12 parts716GPL-3.0
  • 2 layers25.4 × 70.4 mmTpmsniffer, the printed circuit board in 3D

    Tpmsniffer

    stacksmashing/pico-tpmsniffer

    A simple, very experimental TPM sniffer for LPC bus

    12 parts696

Questions

What parts does the Expansion board use?

12 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 Expansion board KiCad files?

From the araobp/ultrasonic-communication repository on GitHub, at the commit this page was made from: the board is kicad/expansion_board.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Expansion board design in my own project?

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