How can i calculate the time delay in arduino?

Click For Summary

Discussion Overview

The discussion revolves around calculating the time delay for signals sent and received by piezoelectric sensors in a project aimed at measuring the speed of waves in a liquid. Participants explore the feasibility of using piezo discs in liquid and the methods for timing the signal transmission and reception.

Discussion Character

  • Technical explanation
  • Experimental/applied
  • Homework-related

Main Points Raised

  • One participant describes their project involving piezoelectric sensors as a transmitter and receiver to measure wave speed in liquid.
  • Another participant suggests using the millis() or micros() functions in Arduino to calculate the time between sending and receiving signals.
  • A different participant recommends coating the piezo elements with lacquer or epoxy to protect them from damage when submerged in liquid.
  • There is a question raised about whether the project involves studying surface waves and a suggestion to consider using Doppler frequency shift instead of a simple pulse for measurement.

Areas of Agreement / Disagreement

Participants express varying suggestions regarding the protection of piezo elements and methods for timing the signals, indicating that multiple approaches and considerations exist without a clear consensus.

Contextual Notes

There are unresolved aspects regarding the specific setup of the piezo sensors and the potential effects of liquid on their operation, as well as the appropriateness of different timing methods.

Who May Find This Useful

This discussion may be useful for students or hobbyists working on projects involving wave measurement, piezoelectric sensors, or Arduino programming.

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
 

Similar threads

  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 6 ·
Replies
6
Views
18K
  • · Replies 23 ·
Replies
23
Views
3K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
Replies
2
Views
3K