Arduino Measuring Tape
by Multiplatform gaming in Circuits > Arduino
2749 Views, 20 Favorites, 0 Comments
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.
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
The Circut

Simply follow what is displayed in the diagram remember do not poke around with wires while the power is plugged in.
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.
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...
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(); }