Gh-311 Datasheet Pdf

GH-311 ULTRASOUND MOTION SENSOR. USER'S GUIDE. GH-311Ultrasound Motion Sensor. The GH-311 ultrasonic Motion sensor provides precise, non-contact distance.

I have interfaced the Ultrasonic Sensor with the microcontroller as P1.1 of controller to the base of transistor - transistor collector drives the relay - relay drives the sensor. The timer0 starts just after I start the Ultrasonic transmitter. When the obstacle comes in path of transmitted pulse, pulses are reflected back. The receiver receives the pulses & generates hardware interrupt.

The interrupt then stops the timer & gets the count which is equivalent to distance of the obstacle. However.it is not like that.I have now realized that the count in timer is equivalent to the elapsed time between the transmitter turn on & obstacle coming in path & not the equivalent to the distance of the obstacle. Actually, the transceiver which I have has 3 pins.Vcc, GND, output. So, I connected the Vcc to sensor through the relay. Using the controller signal whole transceiver either turn off or on. So I cant explicitly turn On the ultrasonic receiver otherwise I could have removed this problem.

Can anybody tell me how to remove this problem??? Please help me!!! Added after 3 minutes: In much simple words. I have ultrasonic Transceiver which has 3 pins.Vcc, GND, output. IT works on 40KHz which is mounted on it already.

I have to use it for finding out the distance of the obstacle using microcontroller. Any solution???? What about doing like this? First set a few parameters:- what is the maximum distance you will be able to or wanting to scan,and find out that maximum time needed for your signals to come back afer detecting the farthermost objext.Let that time be 'x' now in your program turn on the tranmitter as well as timer, and wait for 'x' seconds and see whether signals come back. If it doesnt happen in x time,restart your transmitter as well as timer and check for the next time.

Likeways keep scanning for the object number of times,until you find one. Ami wrong,or am i sounding stupid, anyways, cheers. Can you give us the datasheet of your ultrasonic?

I made one like that, but i use a trans and receive.cant the micro pin able to directly drive your sensor? And or with the help of pull-ups? Cause you have some delay on transistor and relay.hope i get you right.

Thank you for help. The Ultrasonic Transceiver works on 8-12V, so directly controller cant be used.

The Transceiver has only 3 pins. Vcc, GND, output.

311 datasheet

It is very difficult to reverse trace that smd pcb. My issue is not about delay. It is about the conversion of distance of obstacle into the count in the timer.

I am extremely sorry but no datasheet is available for that sensor.I myself searched for that. But I can give you the name of that sensor & link of its website. Sensor - GH311RT Link - Added after 10 minutes. What about doing like this? First set a few parameters:- what is the maximum distance you will be able to or wanting to scan,and find out that maximum time needed for your signals to come back afer detecting the farthermost objext.Let that time be 'x' now in your program turn on the tranmitter as well as timer, and wait for 'x' seconds and see whether signals come back. If it doesnt happen in x time,restart your transmitter as well as timer and check for the next time.

Likeways keep scanning for the object number of times,until you find one. Ami wrong,or am i sounding stupid, anyways, cheers. Sir, I was thinking for that logic also. But, suppose for the first time timer start, pulses sent. Consider the example, the range is 3m.

Now the time is so elapsed that pulses could have come from 2m distance. There is no obstacle at 2m. The transmitter is continuously sending the pulses.suppose the obstacle come at 1m. The interrupt will be generated, & timer will stop. The count in it however will be equivalent to the distance of 2m, so it will give the 2m as the distance of the obstacle.

The solution for this is.start timer & transmitter simultaneously, and again stop the transmitter after fraction of second.continuously listen to the receiver for the time equivalent to the max range distance. IF no interrupt, reset timer & start transmitter again. But, In my case, the transmitter & receiver have same pin for power, so I cant turn it off. Does you sensor send a burst of 40khz pulse or a stream of pulse.i think it will just send a burst.therefore if it is.there would be enough time(maximum length of sensor maybe) before it will generate another burst of pulse. Added after 5 minutes: i really think you have some problem.here some spec Spec: ● Input Voltage: DC 6-12V ● Static current: max 2mA ● Output signal: 0-5V (Output high when obstable in range) ● Sentry Angle: max 15 degree ● Sentry Distance: 2-3000mm Usage: Supply module with 6-12V, the output will be 5V while obstacle in range, or 0V if not. Advantage: Simple,easy to adopt insystem.

Beam angle to avoid disruptions. It just says, RANGE 0 or 5 at the output.i suggest find another module, in that you will generate a burst then receive it. Thank you, dude!! I never thought of this. I will try to follow it.if come any doubt.I will ask you! Thank you once again Added after 7 minutes: @Leorentm Thank you Dude!!

The idea you suggested may work!! Added after 55 seconds: @ cameo2007 I think that the idea will work if that is burst signal. I will check it now Added after 27 minutes: Guys. The sensor has strange behavior. When it detects obstacle it gives the high output momentarily. Jaguar.song.mp3.mp3.download.by.sukhe.ft.bohemia. Then it goes to Low & remain low untill the obstacle changes its position.

What should be the meaning of it?? Is it motion sensor???? The IC HEF40106B is used in it which is hex schmitt inverter. Guys, if distance measurement is not possible with the sensor I have, please suggest me cost effective ultrasonic sensor module. Normally transducers of this type have only 2 terminals, they are in fact just high frequency microphones/speakers.

Generally operation is that you would need your micro to generate the correct frequency, and drive the transducer via a buffer. With the receiver, you need a sensitive amplifier, that if you wish can be driven to saturation, thus providing a logic o/p when a signal is received. There are other way of course, you should be able to google for circuits. I too think you have the wrong devices, for what its worth. Since i see you have been most helpfull maybe you could help me as well. My problem is that i have to mesure distance using an ultrasonic receiver,in order to mesure the water length of a small tank of water,but i have to use only analoge means,no microcontrollers:(, can anyone help me??

I thought about using a counter that would start counting when the transmiter send a pulse and stoped when the receiver is activated and then transform time into distance somehow.Am i even close? PLZ help if you can THNX!