vishalgattani / RadArduino

A 2-Dimensional Radar using Ultrasonic sensors & Arduino.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

name tools image description
RadArduino
Arduino
Processing
A 2-Dimensional Radar using Ultrasonic sensors & Arduino

Logo

RadArduino

To create a 2-Dimensional Radar which maps the surroundings using SONAR (Ultrasonic Sensors) and Arduino-UNO microcontroller, which displays the distance of obstacles from the SONAR.
Explore the docs »

View Demo · Report Bug · Request Feature

Table of contents

  • TOC {:toc}

Introduction

This project works on the principle of SONAR to detect obstacles in areas where other sensors might not be able to produce effective results. For instance, camera and IR sensors may be able to function properly under extreme conditions, and therefore, an ultrasonic was chosen.

The Ultrasonic sound waves has an extremely high pitch that humans cannot hear and is also free from external noises from passive or active sources. The sensor transmits an ultrasonic sound that has a frequency of about 40 kHz. The sensor has two main partstransducer that creates an ultrasonic sound wave while the other part listens to its echo.

The HC-SR04 ultrasonic distance sensor is an economical sensor that provides 2cm to 400cm of non-contact measurement functionality with a ranging accuracy that can reach up to 3mm. Each HC-SR04 module includes an ultrasonic transmitter, a receiver and a control circuit.

The implementation of this project starts by constructing a mount for the ultrasonic sensor which allows the sensor to encompass a semi-circle, i.e. rotate 180 degrees and provide results to map the surroundings. Once this data is obtained from the sensor, it is used to map the surroundings by Processing IDE which generates a Radar like environment on the monitor as it continuously probes converting the 2-Dimensional Cartesian coordinates into polar coordinates.

radar4

Components

  • 2 x Ultrasonic Sensors HC- SR04 for Arduino UNO
  • 1 x Servo Motor
  • 1 x Stepper Motor
  • 1 x Arduino UNO microcontroller
  • 1 x Breadboard with Jumper Wires
  • 1 x LCD Display

Installation

  1. Clone the repo

    git clone https://github.com/vishalgattani/RadArduino.git
  2. Circuit Schematic (with LCD) is as follows:

Screen Shot 2022-03-24 at 12 20 02 AM

  1. Circuit Schematic (without LCD) is as follows:

Screen Shot 2022-03-24 at 12 22 20 AM

  1. The HCSR04 Sensor is mounted atop the servo motor and it is connected to Arduino to send distance data to the Processing IDE.

image

Usage

  1. Run the Arduino sketch.
  2. Simultaneously, run the Processing IDE sketch.

Output

<iframe width="640" height="480" align="middle" src="https://user-images.githubusercontent.com/24211929/159839981-f003f337-ff25-460b-93b3-c094c1be4114.mp4" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

Features

  • 2D Radar with fading effect

Contributing

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

Contact

Project Link: https://github.com/vishalgattani/RadArduino

References

About

A 2-Dimensional Radar using Ultrasonic sensors & Arduino.

License:MIT License


Languages

Language:Processing 61.0%Language:C++ 39.0%