OLED Interfacing with TM4C123G – Display Texts and Graphics

OLED interfacing with TM4C123G Tiva Launchpad hardware demo

This tutorial teaches you how to interface an OLED display with TM4C123 Tiva Launchpad. In this article, we will show how to use SSD1306 0.96 inch I2C OLED with TM4C123 Tiva Launchpad. This modern organic light emitting diode based display can be used to write simple text, scrolling text, display bitmap images, draw different shapes, … Read more

DC Motor Speed and Direction Control with TM4C123 and L298N Motor Driver

DC Motor speed and direction control TM4C123 Tiva Launchpad

This tutorial is about DC motor interfacing with TM4C123 Launchpad. We will learn to control the speed of a DC motor using a pulse width modulation module (PWM) of TM4C123 and L298N motor driver modules. Furthermore, we will also control the direction of rotation of a motor using the built-in H-bridge of L298N and GPIO … Read more

SPI Communication TM4C123 – Communication Between Tiva Launchpad and Arduino

SPI Communication Between TM4C123 Tiva Launchpad and Arduino

In this tutorial, we will learn to use SPI communication modules of TM4C123 microcontroller using Tiva C Launchpad. As per the nomenclature of the TM4C123GH6PM microcontroller, the name used for SPI modules is a synchronous serial interface(SSI). But it is popularly referred to as a serial peripheral interface. That is why we will use the … Read more

PWM TM4C123 – Generate PWM Signals with Tiva C Launchpad

Variable duty cycle 50Hz PWM using TM4C123 microcontroller

This tutorial shows how to generate PWM using Pulse width modulation module of TM4C123 microcontroller. We will learn to generate a square wave of variable frequency and variable duty cycle with TM4C123GH6PM microcontroller PWM generators. For demonstration purposes, we will use TM4C123 Tiva Launchpad which comes with TM4C123GH6PM MCU. Hence, throughout this article, we use … Read more

HC-SR04 Ultrasonic Sensor Interfacing with TM4C123 – Distance Measurement Example

TM4C123 Tiva Launchpad with HC-SR04 ultrasonic sensor interfacing example

In this tutorial, we will learn to interface HC-SR04 ultrasonic sensor with TM4C123 Tiva C Launchpad. HC-SR04 is a contactless ultrasonic based distance or range measurement sensor. It provides an output signal in the form of active high signal and the duration for which the output signal remains high depends on the distance between the … Read more

TM4C123 Timer as a Counter in Input-Edge Count Mode – RPM Measurement Example

Tachometer using TM4C123 Timer as a counter in input capture mode

In this tutorial, we will design an RPM or tachometer using TM4C123 timers as a counter. To use the TM4C123 timer as a counter, we will configure it in input-edge counter mode. In input edge capture counter mode, timers of TM4C123 microcontroller start to count whenever an external event occurs on the input-edge capture GPIO … Read more

TM4C123 Timer in Input Edge Time Mode – Pulse Duration Measurement

pulse duration and pulse width measurement using TM4C123 Timer in input edge capture mode

This tutorial is on pulse width or pulse duration measurement using TM4C123 microcontroller programmable Timer block. In this tutorial, we will use the basic Timer block in input edge time mode to capture rising and falling edges of pulses. For demonstration purposes, we will provide a pulse signal to one of the capture pins of … Read more

MPU6050 Gyroscope Accelerometer sensor interfacing with TM4C123G Tiva C Launchpad

MPU6050 Interfacing with TM4C123G Tiva C Launchpad and PC

In this tutorial, we will learn to interface MPU6050 gyroscope and accelerometer sensor with TM4C123G Tiva C microcontroller. MPU6050 sensor module has 6-axis motion tracking sensors integrated inside the single-chip such as 3-axis measurement for gyroscope and 3-axis measurement for acceleration. Hence, we can use this sensor to measure acceleration, velocity, displacement, and many other … Read more

UART Interrupt TM4C123G Tiva C LaunchPad – ARM Cortex M4

UART interrupt TM4C123 Tiva C launchpad

In the last tutorial, we learned to use UART communication modules of TM4C123G Tiva C Launchpad. We have seen a demo to transmit and receive data between the computer and TM4C123G Tiva C on UART5 port using a busy-wait or polling method. In this tutorial, we will see how to make the UART receiver port … Read more

UART Communication TM4C123 Tiva C LaunchPad with Example Codes

UART Port pins TM4C123 Tiva C launchpad

In this tutorial, we will learn to use the UART communication module of TM4C123GH6PM microcontroller by using TM4C123G Tiva LaunchPad. This tutorial will help you understand how TM4C123G MCUs communicate with external devices or with each other over UART based serial communication protocol. First, we will discuss the UART module of TM4C123GH6PM microcontroller and its … Read more