Introduction: Portable Distance Measuring Device With Arduino!

About: The makers behind the PICO and Flexy

As you read this Instructable, you'll learn how to create a proximity sensor that you can use to measure distances between it, and whatever you point it at. It uses PICO, the Arduino compatible-board, and several other electronic parts that are already available in the market.
This was a personal project by our dear friend, Ala’a Yousef. To test the functionality of PICO in a rather simple project.

Step 1: Components

Step 2: Preparing the LCD

Here, you solder the female pin headers to the LCD pin-outs. It is recommended to do this instead of soldering the screen to the I2C module, so that you can have the flexibility of removing and replacing it with any other type of screen that you want to use.

Step 3: Ultrasonic Placing

Solder the 5 pins of the ultrasonic sensor to the edge of the strip board, so that you get the biggest possible free area to work with.

Step 4: I2C Module Placing

Place and solder the 4 pins of the I2C module (5V, SCL, SDA, GND) on the other side of the stripboard.
We do this to save more area on the top side of the stripboard for the remaining components.

Step 5: PICO Board Placing

Place the PICO board right next to the four pins of the I2C module and leave at least four empty rows of the stripboard between the PICO and the I2C module pins.

Step 6: Preparing the Boost Converter

Pick the right angle pin headers and solder a single pin for each In+, In-, Out+, Out-. Because you need to put it in a standing position to save space.

Step 7: Connections

Connect your components as demonstrated in the pictures.

(Pin)_____________(PICO Pin)

SCL ......................... D3

SDA ......................... D2

Trig ........................... A2

Echo......................... D4

Vcc .......................... 5V

GND ........................ GND

Step 8: Code

  • "Distance_Measurement.zip" is the sketch file for the Arduino IDE.
  • The rest of the files are libraries that must be included in the Arduino IDE. You can include libraries to the IDE by following these steps:
  1. Click on the "Sketch" menu in the toolbar
  2. Click on "Include Library"
  3. Click "Add .ZIP Library" and locate the zip file of the desired library

Step 9: It Rocks!

Now, you have a portable, pocket sized proximity sensor, that is ready to measure distances up to 5 meters. This was achieved by using PICO, which let us use a 2x8 cm stripboard instead of a larger board.