Skip to main content

Timeline for ultra sound with pic [closed]

Current License: CC BY-SA 3.0

29 events
when toggle format what by license comment
Mar 31, 2015 at 20:53 comment added Tut @sepeee One other thing to add. Majenko wrote "Divide the time (in 2µs counts) by 29". The reason for 2us counts instead of 1us counts is that it corrects for the 2x distance that the sound must travel since it has to travel from the transmitter to the object and then back to the receiver which may or not be the same transducer as the transmitter, but is presumably mounted at the same distance from the object being detected. (aka pulse-echo mode)
Mar 31, 2015 at 20:42 comment added Tut The question is perfectly clear to me (and I am unfamiliar with the language in which the code was written). I don't understand the hostility towards this question or why it was put on hold. seepee obviously did not write the code so is not responsible for the magic number or the lack of comments regarding that number. It may also not be obvious to this person what the final units should be. Indeed, the missing information is probably why this person needed to ask the question.
Mar 31, 2015 at 19:06 comment added Ricardo Dear Sepeee, if you click the link "edited ... ago" near the bottom of your question, you'll see that many users have formatted your source code so we can make sense out of it. And then you posted the code again destroying all the work we've done. Please, take some time to learn the formatting used on this site so that you can post better questions yourself. That will help you get better answers. Otherwise, if you continue to get that many downvotes, your account will be automatically blocked.
Mar 31, 2015 at 19:02 history edited Ricardo CC BY-SA 3.0
Formatted the code (again).
Mar 31, 2015 at 18:04 history edited sepeee CC BY-SA 3.0
the change is sitting the trigger activate
Mar 31, 2015 at 16:49 review Reopen votes
Mar 31, 2015 at 21:24
Mar 31, 2015 at 16:32 history edited Dave Tweed CC BY-SA 3.0
appended answer 162531 as supplemental
Mar 31, 2015 at 16:29 comment added gbarry You've just discovered a "magic number" You might enjoy reading about these on stackoverflow.com . Then you can go slap the person who wrote your code.
Mar 31, 2015 at 16:26 history closed Majenko
Brian Carlton
Matt Young
Daniel Grillo
nidhin
Needs details or clarity
Mar 31, 2015 at 16:11 comment added sepeee @TUt thank you very much ..this is what I asked about
Mar 31, 2015 at 16:04 comment added Tut Very similar to: electronics.stackexchange.com/q/96412/25328
Mar 31, 2015 at 15:54 comment added Tut Look up the speed of sound in meters per second. Convert it to centimeters per microsecond. Does that look like approximately 1/29?
Mar 31, 2015 at 15:39 review Close votes
Mar 31, 2015 at 16:26
Mar 31, 2015 at 15:28 answer added Majenko timeline score: 3
Mar 31, 2015 at 15:27 history edited sepeee CC BY-SA 3.0
deleted 19 characters in body
Mar 31, 2015 at 15:25 comment added sepeee is it clear now ??
Mar 31, 2015 at 15:23 history edited m.Alin
edited tags
Mar 31, 2015 at 15:23 history edited sepeee CC BY-SA 3.0
deleted 8 characters in body
Mar 31, 2015 at 15:22 comment added Eugene Sh. The language appears to be some kind of Basic...
Mar 31, 2015 at 15:20 comment added Majenko What language is that meant to be? And what's>>>with all the>>mess in your>>>>question?
S Mar 31, 2015 at 15:20 history edited sepeee CC BY-SA 3.0
Code formatting
S Mar 31, 2015 at 15:20 history suggested Eugene Sh. CC BY-SA 3.0
Code formatting
Mar 31, 2015 at 15:19 comment added sepeee Oh >>4Mhz in pic 16
Mar 31, 2015 at 15:18 comment added Majenko @MattYoung That is as impressive as the question is impossible to understand.
Mar 31, 2015 at 15:16 comment added Matt Young 4GHz clock on a PIC16?
Mar 31, 2015 at 15:16 review Suggested edits
S Mar 31, 2015 at 15:20
S Mar 31, 2015 at 15:14 history suggested Eugene Sh. CC BY-SA 3.0
Code formatting
Mar 31, 2015 at 15:13 review Suggested edits
S Mar 31, 2015 at 15:14
Mar 31, 2015 at 15:11 history asked sepeee CC BY-SA 3.0