How to make 5 volt from ultrasonic using audruino.I am struggling to get it as on net it is only ultrasonic read and i want digital OUTPUT from ultrasonic...PLS suggest program
Use any of the sample programs on using ultrasonic sensors to drive the Tx an Rx then use the value returned to decide if the distance is what you desire then turn on the output.
Weedpharma
I understand you but all programs I have searched on net is of ultrasonic read (convert into cm) and I want to convert ultrasonic output to digital.(HC05)
Pls if u can suggest code or a link would be of help..
Please describe in detail exactly what you want to do. Explain your project and how you want it to work.
Ultrasonic transducers are used to to measure distance and return time gives this. The program transmits then starts a timer and stops the timer when a return pulse is received. The time is used to calculate the distance.
If you only want to know if the pulse is received, remove the calculation part and just use the part after the received pulse is detected to turn on another output.
Send output pulse
When echo received turn on output.
Weedpharma
My project is to use ultrasonic Hc05 and get 5 v output from aurduino and operate a 5 v relay..
LEts say that a ultrasonic sensor has a range of 20 cm and when any target comes in that particular range which has been set by aurduino then aurduino converts the input of ultrasonic to 5v .
That is i want digital Write when any object is in range of ultrasonic..so pls suggest link or a programm
You need to use the standard program to get the distance then use an "if" statement to trigger the output.
Send pulse
Wait for echo
Calculate distance
If distance is >20cm and < 25cm
Turn on the output
Weedpharma