How can i calculate the time delay in arduino?

  • #1
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:

Answers and Replies

  • #2
anorlunda
Staff Emeritus
Insights Author
9,272
6,300
Welcome to PF.

I think you can get better answers by posting your question on one of the Arundino forums.
 
  • #3
cnh1995
Homework Helper
Gold Member
3,444
1,150
one workd like emmeter and the other receppter
You mean transmitter and receiver?
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.
 
  • #4
Baluncore
Science Advisor
8,889
3,486
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.
 
  • #5
Welcome to PF.

I think you can get better answers by posting your question on one of the Arundino forums.
thanks you
 

Related Threads on How can i calculate the time delay in arduino?

Replies
8
Views
1K
  • Last Post
Replies
4
Views
4K
  • Last Post
Replies
5
Views
829
Replies
2
Views
4K
Replies
8
Views
2K
Replies
5
Views
719
Replies
5
Views
926
  • Last Post
Replies
7
Views
409
Replies
14
Views
1K
Replies
3
Views
2K
Top