Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tynab/obstacle-avoiding-robot

Arduino Uno R3 Project
https://github.com/tynab/obstacle-avoiding-robot

arduino arduino-r3 arduino-uno arduino-uno-r3 avoid avoid-obstacles avoidance c-plus-plus cpp obstacle obstacle-avoidance obstacle-avoidance-robot obstacles r3 robo robot robotics uno uno-r3 yan

Last synced: about 2 months ago
JSON representation

Arduino Uno R3 Project

Awesome Lists containing this project

README

        

# OBSTACLE AVOIDING ROBOT
Arduino Uno R3.

## IMAGE DEMO



## VIDEO DEMO

[![IMAGE ALT TEXT HERE](https://img.youtube.com/vi/qB7ZH5Fhn2s/0.jpg)](https://youtu.be/qB7ZH5Fhn2s)

## CODE DEMO
```c++
/// @brief Measure distance.
/// @return Distance.
int dokhoangcach()
{
int kc;
long tg;
digitalWrite(TRIG, LOW);
delayMicroseconds(2);
digitalWrite(TRIG, HIGH);
delayMicroseconds(10);
digitalWrite(TRIG, LOW);
tg = pulseIn(ECHO, HIGH, 3600000);
kc = int(tg / 2 / 29.412);
return kc;
}
```