DIY-gadget-to-measure-distance-between-two-points

thum2

Hello friends in this video I have made a gadget to measure the distance between two point on flat surface remotely. I have used ultrasonic sensor to calculate distance between the surface and gadget,

and measuring angle by MPU6050. Then after getting data I have used basic trigonometry function to calculate the distance between those points. Yes this method is not much accurate but this just an Idea to implement.

Component required

  1. Arduino Nano
  2. Custom PCB
  3. Ultrasonic sensor
  4. 3D parts
  5. Laser diods
  6. lipo battery
  7. HMI display
  8. some hardwares

Circuit diagram

For this project as usually I have used my multipurpose PCB Those who ever worked with arduino they know the pain of connecting different components with arduino for there projects. so here is the answer for you all. not 1 or 2 you can connect 11 components at same time & on board.

5V & 9V regulator, cross polarity protection, power indication LED, motor power selection provision (5V or 9V or 12V) manual provision for stepper motor microstepping setting. wide range of input supply (9V to 24V).

This is my multipurpose PCB works with Arduino Nano, I have designed it in a way that you can run 2 Stepper motors, 2 DC motors, 2 Servo motors at same time and this is not it you can even connect BT module, rotary encoder, I2C device, potentiometer at same time.

This PCB is very much helpful in building any project and no need to worry about messy wire connections.

image

image

I have design circuit and PCB in easyEDA and ordered PCB from JLCPCB

JLCPCB are the world leader in PCB manufacturing there PCB production rates are very much affordable and they have world class PCB production unit results fast PCB production.

I have provided the link of circuit design so that you can modify it as per your need if you need to change anything.

Multipurpose custom PCB

This is the custom made PCB used in this project. by the way this is multipurpose PCB it can be used for wide range of arduino project.

If you are interested to order this PCB so you can find the Gerber file of the PCB here

JLCPB also started the 3D printing service if you have any requirement of 3D part you can surly visit JLCPCB

Multipurpose custom PCB

image

Basic working principle

image

The fields that trigonometry is being used today for include electronics, engineering, and calculus.

A study of trigonometry will primarily involve concepts of angles, the right triangle, and the unit circle.

The problems you can solve with trigonometry are many. A short list includes the following:

Angle of elevation Angle of depression Height of a very tall building Diameter of the moon The area that is swept clean by a windshield wiper

image

image

First I have made a wooden base with 12mm wooden sheet.

I always use birch ply for my project because it looks good and easy to work with.

I cut the wooden sheet using Jigsaw machine and then I rounded the edge with The help of sander machine.

imageimage

Ultrasonic Sensor HC-SR04 is a sensor that can measure distance.

Here I use HC-SR04 Ultrasonic sensor yes this type of sensor are not very much accurate, but it will be ok for our proof of concept video.

It emits an ultrasound at 40 000 Hz (40kHz) which travels through the air and if there is an object or obstacle on its path It will bounce back to the module. Considering the travel time and the speed of the sound you can calculate the distance.

The configuration pin of HC-SR04 is VCC (1), TRIG (2), ECHO (3), and GND (4). The supply voltage of VCC is +5V and you can attach TRIG and ECHO pin to any Digital I/O in your Arduino Board.

image

image image

Here I have use the laser diode for pointing the projection of point in the flat surface.

You have to be caution while working with laser lights do not through it directly to your eys. Also wear protective eye glasses while working with lasers.

This mini laser diode are working on 5V DC also this tinny diode have focus adjustment knob in front Part of the laser body.

... Read more »