Ultrasonic Distance Meter Using Microcontroller 8051 Pdf

  1. Ultrasonic Distance Meter Using Microcontroller 8051 Pdf Download
  2. Ultrasonic Distance Meter Using Microcontroller 8051 Pdf
  1. Ultrasonic Sensor with Accelerometer Based Smart Wheel Chair Using Microcontroller Sandeep Kumar, P.Raja 1 Ph.D Student, Electronics & Communication, OPJS University. Ultrasonic Sensor, Microcontroller, LCD, GSM Modem, Mobile 1. Mechanical energy transformation to measure distance from the sensor to the target object.
  2. Arduino Ultrasonic Sensor Code for Distance Measurement. In code we read time by using pulseIn(pin). Getting Started with 8051 Microcontroller. Htoo Oct 18, 2015 Log in or register to post comments; Can you give me a distance meter flow chart. Dan Jan 11, 2016 Log in or register to post comments; nice work. I just have one query.

List of 8051 based Microcontroller projects from Microtronics. GSM, GPS projects, RFID, Touchscreen based projects. 8051 Microcontroller Projects List. We have a wide range of 8051 Microcontroller project. So here the engineering students can get 8051 Microcontroller project for their study purpose. Android based Ultrasonic Distance.

Hi guys… Today we are going to see Ultrasonic Sensor Interfacing with 8051.

Post Contents

  • 7 Code
    • 7.3 Full Code

Before we will start i would suggest you to read these topics. Then you can understand this strongly. If you already know, please go ahead.

  • 8051 Microcontroller
  • Ultrasonic Sensor [HC-SR04]
  • LCD Module (To print the Distance)

The measurement of Echo pulse can be done with the help of external Interrupt and Timer modules of 8051 Microcontroller. In capture mode when external pulse is fed to the interrupt the timer starts counting and will stop only after the state of pulse is changed. Steps to follow to program controller as a capture device.

  1. Initialize Timer0 module as 16 bit timer with Gate bit as 1.
  2. Making Gate bit as 1 will transfer the control of timer to external interrupt pin INT0.
  3. When there is an interrupt pulse timer 0 starts counting and stops as soon as the interrupt disappears.
  4. The value in the Timer 0 (TH0 and TL0) gives the time period or length of the pulse.
  1. Connect the Trigger pin of the HC-SR04 module to any I/O pins of 8051 controller.
  2. Connect the Echo pin of the module to interrupt pin INT0 of the Microcontroller.
  3. Send a pulse of minimal timer period 10us, this will make the Ultrasonic module to send burst of data.
  4. The reflected waves will be sensed by the module and it exhibits the output in Echo pin logic high or 1 to INT0 pin of Microcontroller.
  5. This creates an interrupt and Timer 0 will start counting.
  6. When the pulse from echo pin alters its state to logic 0 or low the timer 0 stops counting
  7. The length of pulse from echo pin is proportional to the distance at which the object is located.
  8. The value in the Timer 0 gives the distance of course with some simple calculations.
Pdf

CALCULATION

According to the data sheet the distance can be given by the formula :

Distance in cm = Timer 0/59

Distance in inch = Timer 0/148

Ultrasonic Distance Meter Using Microcontroller 8051 Pdf Download

LCD:

  • RS – P0.0
  • RW – P0.1
  • EN – P0.2
  • Data Lines – P2

Ultrasonic Sensor:

  • Trigger – P3.5
  • Echo – P3.2

Sending Trigger Pulse