Elektronik / Mikrodenetleyici Projeleri/

PIC16F876 ve AD605 ile Ultrasonik Mesafe Bulucu

Sponsorlu Bağlantılar

Ultrasonik mesafe ölçüm, bulma devresinde pic16f876 mikrodenetleyici ve ad605 (Dual Low Noise SingleSupply Variable Gain Amplifier) entegreleri kullanılmış C ve asm yazılımları var devre şeması ayrıca osiloskop ölçüm resimleride bulunuyor. Ultra sonik sensör olarak 40khz Transdüserler kullanılmış.

I2C-Sonar-Range-Finder-AD605-Microchip-PIC16F876-micro-controller

Transd-serler-40KHz-Ultrasonic-Transducers-Transmit-Receive

I2C Sonar Range Finder

The Ultrasonic Range Finder is triggered to return a range sample by communication via I2C interface. After receiving the PIC’s address (which is programmable), a hexadecimal 0x0d, or Carriage Return byte received will cause the module to take a range sample. After triggering a short time period should be delayed to allow the PIC to record the return signal strength for every 2 inches sound travels at room temperature.

When triggered, the PIC processor uses the PWM capability of the Capture/Compare module to generate 16 pulses of approximately 50% duty cycle to an FDV303NCT N-Channel Logic level MOSFET. The micro-controller is then set up to delay 1ms to allow the Ultrasonic Receiver to settle from the Transmitted pulse.

After the damping time of 1ms is finished, the processor starts an interrupt driven time delay that is equal to the time it takes sound to travel 2 inches (travel an inch, reflect off an object, travel back an inch) at room temperature 255 times and increment a register for inches. The Receiver Transducers output is connected to an AD605 Amplifier wired for maximum adjustable gain (0dB-96.8dB). The amplifiers output is taken through a voltage doubler circuit and rectified before entering the PIC16F876’s A2D converter. Each returned pulse is averaged with the previous returned pulse to help cancel out noise and the largest pulses corresponding inches register value is recorded as the largest objects distance.

NOTES AND CALCULATIONS

Fο = 1/(2π√LC)
If the capacitance of the transducer is typically 2.4nF (or measured 2.54nF) and the resonant frequency (Fo) is 40KHz, the transducer will have a capacitive-reactance of 1566ohms. The value of the transformers secondary winding was calculated to have the same inductive reactance value of 1566ohms. L is then calculated from the inductive reactance formula XL = 2 πFoL where XL and Fo are the known values. L = 1566ohms/(2π40KHz) to give 6.23mH. The transformer’s primary coil should have only 1 or 2 turns to yield the maximum voltage gain due to the transformer turns ratio.

T1 Characteristics

  • Amidon Ferrite Toroid
  • FT-50-J Manganese-Zinc
  • # Turns – 1000√(6.23mH/AL)
  • AL = 2710mH/1000 turns from the FT-50-J’s specification
  • # Turns = 47.97, actual # of turns used was 50 to give the closest mH value of
  • 6.25mH. 30AWG polythermaleze wire was used to wind the transformer.

Joseph E. Bradshaw 5-24-2004

Kaynak: http://joescircuits.com/es308_i2c/SONAR%20PIC%20I2C/ alternatif link: PIC16F876 ve AD605 ile Ultrasonik Mesafe Bulucu

Dosya indirme LINK listesi (TXT formatında) link-2235.zip şifre-pass: 320volt.com