1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/driver_srf04
2021-01-21 11:24:31 +01:00
..
app.config.test tests/driver_s*: add Kconfig configuration files 2021-01-21 11:24:31 +01:00
main.c drivers/sfr04: Use uncrustify 2020-11-22 23:12:40 +01:00
Makefile tests/srf04: test application for srf04 driver 2018-09-20 15:18:49 +02:00
README.md tests/srf04: test application for srf04 driver 2018-09-20 15:18:49 +02:00

tests/driver_srf04

This example shows the usage of an srf04 module. The application uses a timer and two gpio pins. The module is an ultrasonic range finder with a small protocol [1]:

  • trigger pin is raised high for 10 us by calling trigger function
  • after a sample period of 50 ms the value can be read out

[1] www.robot-electronics.co.uk/htm/srf04tech.htm

Usage

Build, flash and start the application:

export BOARD=your_board
make flash term