Object Hunt  v0.2
Hunts for a not specified object in an unknown environment
Variables
UltraSonic::Pin Namespace Reference

The pin definitions. More...

Variables

const uint8_t FRONT_TRIGGER = 4
 Trigger pin front. More...
 
const uint8_t FRONT_ECHO = 23
 Echo pin front. More...
 
const uint8_t REAR_TRIGGER = 18
 Trigger pin rear. More...
 
const uint8_t REAR_ECHO = 17
 Echo pin rear. More...
 
const uint8_t LEFT_TRIGGER = 5
 Trigger pin left. More...
 
const uint8_t LEFT_ECHO = 22
 Echo pin left. More...
 
const uint8_t RIGHT_TRIGGER = 12
 Trigger pin right. More...
 
const uint8_t RIGHT_ECHO = 27
 Echo pin right. More...
 

Detailed Description

The pin definitions.

Each ultra sonic sensor has one trigger and one echo pin. Both pins a re needed in order to conduct a measurement.

Variable Documentation

◆ FRONT_ECHO

const uint8_t UltraSonic::Pin::FRONT_ECHO = 23

Echo pin front.

The time between two edges on this pin is used to calculate the distance.

◆ FRONT_TRIGGER

const uint8_t UltraSonic::Pin::FRONT_TRIGGER = 4

Trigger pin front.

This pin is used in order to start an ultra sonic measurement in the front.

◆ LEFT_ECHO

const uint8_t UltraSonic::Pin::LEFT_ECHO = 22

Echo pin left.

The time between two edges on this pin is used to calculate the distance.

◆ LEFT_TRIGGER

const uint8_t UltraSonic::Pin::LEFT_TRIGGER = 5

Trigger pin left.

This pin is used in order to start an ultra sonic measurement on the left.

◆ REAR_ECHO

const uint8_t UltraSonic::Pin::REAR_ECHO = 17

Echo pin rear.

The time between two edges on this pin is used to calculate the distance.

◆ REAR_TRIGGER

const uint8_t UltraSonic::Pin::REAR_TRIGGER = 18

Trigger pin rear.

This pin is used in order to start an ultra sonic measurement in the rear.

◆ RIGHT_ECHO

const uint8_t UltraSonic::Pin::RIGHT_ECHO = 27

Echo pin right.

The time between two edges on this pin is used to calculate the distance.

◆ RIGHT_TRIGGER

const uint8_t UltraSonic::Pin::RIGHT_TRIGGER = 12

Trigger pin right.

This pin is used in order to start an ultra sonic measurement on the right.