---
title: LTC - SMPTE Decoder on Teensy
canonical: https://0110.be/posts/LTC_-_SMPTE_Decoder_on_Teensy
markdown_url: https://0110.be/posts/LTC_-_SMPTE_Decoder_on_Teensy.md
id: 474
published_at: '2019-12-06T00:00:00Z'
updated_at: '2025-11-29T14:36:37Z'
author: Joren
tags:
- name: Code
  markdown_url: https://0110.be/tags/Code.md
- name: UGent
  markdown_url: https://0110.be/tags/UGent.md
---

# LTC - SMPTE Decoder on Teensy

<img style="float:right;margin:5px" width="200" alt="Teensy with audio shield" src="https://0110.be/files/attachments/474/teensy_with_audio_shield.jpg">

For synchronisation between several devices [SMPTE timecode](https://en.wikipedia.org/wiki/SMPTE_timecode) data is often encoded into audio using [LTC](https://en.wikipedia.org/wiki/Linear_timecode) or linear time code.

This blog post presents an LTC decoder for a [Teensy 3.2 microcontroller](https://www.pjrc.com/teensy/teensy31.html) with [audio shield](https://www.pjrc.com/store/teensy3_audio.html).

The audio shield takes care of the line level audio input. This audio input is then decoded. The decoding is done by [libltc](https://github.com/x42/libltc). The library runs as is on a Teensy without modification. The three elements are combined in a relatively simple [teensy patch](https://github.com/ArtScienceLab/ARDUINO_LTC_DECODER/blob/master/LTCDecoder/src/main.cpp)

To use the decoder connect the line level input left channel to an SMPTE source via e.g. an RCA plug.

For code, comments, pull requests please consult the Github repository for the [Teensy SMPTE LTC decoder](https://github.com/ArtScienceLab/ARDUINO_LTC_DECODER)

<div style="clear">
</div>
<figure style="padding:10px">
<center>
<video width="250" controls>
<source src="https://0110.be/files/attachments/474/teensy_ltc_smpte_decoder.mp4" type="video/mp4">
</source>
</video><br>
A teensy decoding an LTC SMPTE signal
</center>
</figure>

<br>


- [teensy\_ltc\_smpte\_decoder.mp4](https://0110.be/files/attachments/474/teensy_ltc_smpte_decoder.mp4)

- [teensy\_with\_audio\_shield.jpg](https://0110.be/files/attachments/474/teensy_with_audio_shield.jpg)
