- This topic has 1 reply, 2 voices, and was last updated 11 years, 7 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
|
Microcontroller › 8051 › how to interface parallax ultrasonic distance sensor with ats89c51….
hello the aim of the project is when the hand is kept at certain intervals i.e the pattern which is stored in the microcontroller then the door should open if not the door should not please help ….if possible with source code if parallax ping sensor in compitable mweans which is the best alternative….
the ping sensor is one of the simplest means of measuring distance.
if you go through the datasheet you’ll find out that you need to just make the trig pin of it high for 10us. Then basically you need to read the echo pin until it goes low. This gives you the time. use the formula– time/58 to get the distance in cm.
hope this helps