Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/tynab/obstacle-avoiding-robot
- Owner: Tynab
- Created: 2022-10-06T14:33:37.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-01T15:01:33.000Z (9 months ago)
- Last Synced: 2024-12-02T08:59:03.704Z (about 2 months ago)
- Topics: 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
- Language: C++
- Homepage: https://youtu.be/qB7ZH5Fhn2s
- Size: 813 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
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;
}
```