Hello eveyone. I have Arduino due,nano and uno. I want to measure distance like HC SR04 module. But i want to use 1 MHz piezo. How can i do it for 1 MHz piezo ? Do you help me for code? I m not sure how can i write this code correctly. I have tried somethings but i couldnt write it for now. And which arduino should i use? Thanks for all helping.
Which 1 MHz piezo?
Paul
A 1 MHz+/- %5 piezoelectric transducer.
1 MHz? a bit high
Mark
You will need to design and build your own transmit and receive circuitry.
To see what is required, here is the circuit diagram of the HC-SR04.
I saw it but my problem is about code. I couldn't write code for now.
If you already have transmit and receive circuitry, then the code would be the same as for the HC-SR04.
Initiate a pulse, wait for return. Very simple.
No. It s not possible because HC SR04 has two piezo which are 40 kHz. But i need to code for 1 MHz. Code should be different.
It is possible that the circuitry would permit you to use the exact same code.
But, please feel free to tell us about your circuitry.
I need to be able to generate the signal first( 1 MHz eight pulse square wave.). I didnt do circuit design completely for now. The problem is code is for 40 kHz. But somethings have to be different in code(like delay). Then i can do circuit design
Hello eveyone. I have Arduino due,nano and uno. I want to measure distance like HC SR04 module. But i want to use 1 MHz piezo. How can i do it for 1 MHz piezo ? Do you help me for code? I m not sure how can i write this code correctly. I have tried somethings but i couldnt write it for now. And which arduino should i use? Thanks for all helping.
DON'T CROSS POST!!!!!!!!!!!!!!!!!!!!
http://forum.arduino.cc/index.php?topic=567204
I HAVE REPORTED THIS THREAD TO THE MODERATORS
Sorry. I didnt understand. ?
When you split the discussion of a topic over multiple forum threads it ends up wasting the time of the people trying to help you due to duplicate effort. For this reason, the rule here is one thread per topic.
I am not very experienced on this forum. Sorry. Do I have to delete other entries? How can i delete them? Thanks.
I believe the moderators will have to clean things up.
And while that's being cleaned up, post the specs on the piezo.
Okey. Do you have any idea my question about code?
None yet, I'm having my lunch.
Threads merged.
Sep 10, 2018, 11:58 pm
Sep 11, 2018, 12:06 am
Seriously? You waited a whole eight minutes before starting a new thread? Ugh.