How can i calculate the time delay in arduino?

AI Thread Summary
To calculate the time delay between sending and receiving signals with piezoelectric sensors in an Arduino project, use the millis() or micros() functions to measure elapsed time. It's important to protect the piezo discs from liquid exposure, potentially by coating them with lacquer or a thin layer of epoxy to prevent short circuits. The discussion also suggests considering a Doppler frequency shift method for more accurate measurements. Additionally, providing a diagram of the transmitter and receiver setup could enhance understanding and responses. Proper protection and measurement techniques are crucial for successful implementation in wave speed calculations.
salaheddine
Messages
2
Reaction score
0
hi every one , I'm a student in university , i have a projet it's about calculate speed of waves in liquid by to piezo electrique , one workd like emmeter and the other receppter , the distance betwin the two piezo is fixe , the probleme is i nedd to calculat the time betwin the moment who i send the signal and when i received ? and i want to know if it's ok to put piezo disque in liquide or i need to protecte theme by somthing to avoid court circuit ?
thinx
 
Last edited by a moderator:
Engineering news on Phys.org
Welcome to PF.

I think you can get better answers by posting your question on one of the Arundino forums.
 
salaheddine said:
one workd like emmeter and the other receppter
You mean transmitter and receiver?
salaheddine said:
i nedd to calculat the time betwin the moment who i send the signal and when i received ?
I guess those two instants are detected by the hardware using signals produced by the piezoelectric sensors? To compute the time elapsed between these two events, you can use millis() or micros() functions which read the on-board timer and give output in ms or μs.
 
You might need to coat the elements with lacquer or a very thin layer of epoxy to prevent damage to the metallisation. Are you studying surface waves? Can you draw a diagram of your transmitter and receiver location relative to the surface and waves. You may be able to use doppler frequency shift rather than a simple pulse.
 
anorlunda said:
Welcome to PF.

I think you can get better answers by posting your question on one of the Arundino forums.
thanks you
 
While I was rolling out a shielded cable, a though came to my mind - what happens to the current flow in the cable if there came a short between the wire and the shield in both ends of the cable? For simplicity, lets assume a 1-wire copper wire wrapped in an aluminum shield. The wire and the shield has the same cross section area. There are insulating material between them, and in both ends there is a short between them. My first thought, the total resistance of the cable would be reduced...
Hi all I have some confusion about piezoelectrical sensors combination. If i have three acoustic piezoelectrical sensors (with same receive sensitivity in dB ref V/1uPa) placed at specific distance, these sensors receive acoustic signal from a sound source placed at far field distance (Plane Wave) and from broadside. I receive output of these sensors through individual preamplifiers, add them through hardware like summer circuit adder or in software after digitization and in this way got an...
I am not an electrical engineering student, but a lowly apprentice electrician. I learn both on the job and also take classes for my apprenticeship. I recently wired my first transformer and I understand that the neutral and ground are bonded together in the transformer or in the service. What I don't understand is, if the neutral is a current carrying conductor, which is then bonded to the ground conductor, why does current only flow back to its source and not on the ground path...
Back
Top