EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise
You are here: Home / Topics / required code for timer

required code for timer

|

Microcontroller › PIC › required code for timer

  • This topic has 1 reply, 2 voices, and was last updated 9 years, 5 months ago by doraemon.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • February 12, 2016 at 6:29 pm #4285
    s malla reddy
    Participant

    please help me to write the program for ultrasonic range finder or give me using HC-SR04

    and need to mention the distance of an obstacle on lcd,  i have lcd driver file for PIC microcontroller.

    as soon as possible do needful

    thankx

    February 14, 2016 at 9:14 am #13703
    doraemon
    Participant

    It's very easy if you are using arduino. Just seach around and you will find code. If you are programming AVR controller or 8051 in C refer datasheet of sensor. YOu need to give signal to sensor to start sending ultrasonic pulse and it returns square wave output. calculate it's time using Timer/Counter and use formula to get distance. YOu will find formula in datasheet of sensor.

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Log In

RSS Recent Posts

  • Pic18f25q10 osccon1 settings swordfish basic July 16, 2025
  • turbo jet fan - feedback appreciated. July 16, 2025
  • More fun with ws2812 this time XC8 and CLC July 16, 2025
  • I Wanna build a robot July 16, 2025
  • Pickit 5 July 16, 2025

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2025 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise