Sensors Range Finder

Demonstrates reading data from a range finder connected to a device UART.

API Features Demonstrated

Platforms

This app works on:

Requirements and Prerequisites

This app requires a ZentriOS evaluation board. See the Platforms list above.

This app requires a Digilent Pmod MAXSONAR range finder.

Description

This app demonstrates reading range finding data from a Digilent Pmod MAXSONAR, connected to a device UART.

Usage Instructions

Connect the range finder to the device UART.

Open a ZentriOS serial terminal to the device. See Getting Started, Opening a ZentriOS Terminal.

Run the app.

The app displays range finder data on the terminal.

Implementation

main.c

zn_app_init

initialize_uart

uart_rx_irq_callback

uart_rx_event_handler

Source

See: