Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
I tried to disconnect the trigger wire to the ultrasonic sensor transmitter but the behavior did not change. LCD still display output=45. I am afraid that my lcd function is not correct.
Ya, I think you are right. I already change line 68 with the code:
while(INT0==0);
while(INT0==1);
DPH=TH0...
However the output dislpayed by lcd is always 45 and is still not varying. Any idea to fix this?
Ya that code is my reference but I change a little bit and add with lcd code. I also try with while state to wait the ping response(echo) and it was not working. My lcd always display number 44 and it was not varying according to distance.
- - - Updated - - -
Can you tell me the mistakes in...
I want to make a project to measure distance using ultrasonic sensor HC-S*04 and LCD to display the distance in cm. I use AT89C51, the trigger pin for ultrasonic sensor is P3.5 and the echo pin is P3.2. The echo pin is connected to P3.2 because I use interrupt so that whenever there is a HIGH it...
I want to make a project to measure distance using ultrasonic sensor HC-S*04 and LCD to display the distance in cm. I use AT89C51, the trigger pin for ultrasonic sensor is P3.5 and the echo pin is P3.2. The echo pin is connected to P3.2 because I use interrupt so that whenever there is a HIGH it...
Ya, it works after I set P1.0 high in the beginning. Thanks for the suggestions.
- - - Updated - - -
It works when I use power supply as inverting input to comparator. The led is on and off every time I vary the input voltage lower or higher than voltage reference. However, when the inverting...
I have build a project using AT89S51 and comparator LM324. The input to uC is from comparator that the inverting input is connected to infrared sensor and the non-inverting input set as the voltage reference (Vr). For certain distance the output voltage from infrared sensor is higher than the Vr...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.