loading

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(); }

<p>Nice project!</p><p>Have you used it with a battery? So you can walk with it?</p><p>If you accept advices, make the code in the last step more legible.</p><p>and put a video here please, I want to see it working.</p><p>Bye!</p>
<p>If you had a 5v battery and hooked it up to the bread board then sure you could use a battery</p>
<p>You can use this sketch: <a href="https://www.instructables.com/files/orig/FAA/7135/I0TVE1U6/FAA7135I0TVE1U6.rtf" rel="nofollow" style="">https://www.instructables.com/files/orig/FAA/7135/I0TVE1U6/FAA7135I0TVE1U6.rtf</a></p>
<p>I used this code twice once each on different computers and i get this error every time I use this code:</p><p> This report would have more information with</p><p> &quot;Show verbose output during compilation&quot;</p><p> enabled in File &gt; Preferences.</p><p>Arduino: 1.0.6 (Windows Vista), Board: &quot;Arduino Uno&quot;</p><p>sketch_oct08a:11: error: 'NewPing' does not name a type</p><p>sketch_oct08a.ino: In function 'void loop()':</p><p>sketch_oct08a:20: error: 'sonar' was not declared in this scope</p><p>sketch_oct08a:22: error: 'US_ROUNDTRIP_CM' was not declared in this scope</p>
<p>Did you download the newping library?</p>
<p>Thanks for the feedback, Im sorry it took so long for me to reply.</p><p>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.</p>
Smart idea! Thanks for shearig :)
<p>what is project's purpose? what does it measure</p>
<p>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 </p>
<p>Nicely done!</p>

About This Instructable

1,328views

21favorites

License:

More by Multiplatform gaming:Arduino Measuring Tape Multi-Coloured Led  Gaming Setup 
Add instructable to: