Introduction: 2D Ultrasonic Mapping

In this instructable we will shows you how to use a sonar sensor to create a 2D maps of surrounding objects. This project is part of the landmine detecting quadcopter project by SRJC Computer Science Club. This part of the project will allow the quadcopter to detect objects in it's surrounding.

Step 1: Components

Parts

1 x Ultrasonic range finder

1 x Stepper Motor - Bipolar (Nema 17)

1 x Arduino Uno (Rev3)

1 x EasyDriver_v44 (Motor driver)

1 x 12v Power Adapter Jumper Wires (as needed)

1 x Breadboard

Tools

Soldering Iron and Solder

Wire Cutter

Laptop Arduino IDE Processing IDE

1 x USB cable (for Arduino uno)

Recommended

Helping hands

Alligator clips

Brillo pad (for cleaning soldering iron)

Step 2: Wiring

Connect

  1. The An in the ultrasonic range finder in to A0 in the Arduino port.
  2. The Dir in easydrive to D8.
  3. The Step in easydrive to D9.
  4. The Ground to Ground.

Step 3: Coding

Processing Code and Arduino code