Arduino Measuring Tape

Introduction: Arduino Measuring Tape

Hello, this instructable will teach you how to make an arduino measuring tape.

This isnt very hard as long as you follow each step carefully and make sure you do not play around with wires when there is power. Enjoy the insrucable and share it with your friends.

Step 1: You Will Need

For this insructable you will need:

1. A Computer

2. An arduino

3. Liquid Crystal

4. Jumper Wires

5. Ultra-Sonic sensor

6. 10k resistor

7. Bread Board

Step 2: The Circut

Simply follow what is displayed in the diagram remember do not poke around with wires while the power is plugged in.

Step 3: U-S Sensor

All you need to do is wire Trigger pin to pin 6 on the arduino, the echo pin goes to digital pin 7 and vcc goes to 3.3 volts.

Step 4: Thanks

Dont forget to vote, share and like this insructable.

Also check out our YouTube channel and website.

YouTube: https://www.youtube.com/channel/UCHKi69WNW4uG_8ByO...

Web Site: http://muiltiplatformgaming.wordpress.com/

Step 5: Code

#include

LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

#include #define TRIGGER_PIN 6 #define ECHO_PIN 7 #define MAX_DISTANCE 200 NewPing sonar(TRIGGER_PIN, ECHO_PIN, MAX_DISTANCE);

void setup() { lcd.begin(16, 2); Serial.begin(115200); }

void loop() { delay(50); unsigned int uS = sonar.ping(); Serial.print("Ping: "); lcd.print(uS / US_ROUNDTRIP_CM); lcd.print("cm"); delay(500); lcd.clear(); }

Microcontroller Contest

Participated in the
Microcontroller Contest

Be the First to Share

    Recommendations

    • Puzzles Speed Challenge

      Puzzles Speed Challenge
    • "Can't Touch This" Family Contest

      "Can't Touch This" Family Contest
    • CNC Contest 2020

      CNC Contest 2020

    10 Discussions

    0
    Robson Couto
    Robson Couto

    5 years ago on Introduction

    Nice project!

    Have you used it with a battery? So you can walk with it?

    If you accept advices, make the code in the last step more legible.

    and put a video here please, I want to see it working.

    Bye!

    0
    Multiplatform gaming
    Multiplatform gaming

    Reply 5 years ago on Introduction

    If you had a 5v battery and hooked it up to the bread board then sure you could use a battery

    0
    Multiplatform gaming
    Multiplatform gaming

    Reply 5 years ago on Introduction

    I used this code twice once each on different computers and i get this error every time I use this code:

    This report would have more information with

    "Show verbose output during compilation"

    enabled in File > Preferences.

    Arduino: 1.0.6 (Windows Vista), Board: "Arduino Uno"

    sketch_oct08a:11: error: 'NewPing' does not name a type

    sketch_oct08a.ino: In function 'void loop()':

    sketch_oct08a:20: error: 'sonar' was not declared in this scope

    sketch_oct08a:22: error: 'US_ROUNDTRIP_CM' was not declared in this scope

    0
    Zach Sousa
    Zach Sousa

    Reply 5 years ago on Introduction

    Did you download the newping library?

    0
    Multiplatform gaming
    Multiplatform gaming

    Reply 5 years ago on Introduction

    Thanks for the feedback, Im sorry it took so long for me to reply.

    I took the project apart so I could start a new one but I will put it pack together so I can show you the video. So if it takes a while you know why.

    0
    ibenkos
    ibenkos

    5 years ago

    Smart idea! Thanks for shearig :)

    0
    bpogačar
    bpogačar

    5 years ago on Introduction

    what is project's purpose? what does it measure

    0
    Multiplatform gaming
    Multiplatform gaming

    Reply 5 years ago on Introduction

    It can measure from the Ultra sonic sensor to a wall or surface up to 2 meters. It is over all pretty accurate but is sometimes 1-3 centimeters off