EZ4 Sonar program for BS2
milton hache
Posts: 6
I would like to know if the Dubug ? in and Bubug ? out of this program are done correctly.
·Since I have a pause after these commands, shouldn’t I see the outputs stages oscillate between o and 1?
I am trying to turn on Pins 13 and 10 for some seconds and then turn them off. Also if the IF statement stop being true I want the pins to come off even if they are already on.
I also want that if the IF statement is not true this pins don't come on.
Post Edited (milton hache) : 3/19/2009 10:27:51 PM GMT
·Since I have a pause after these commands, shouldn’t I see the outputs stages oscillate between o and 1?
I am trying to turn on Pins 13 and 10 for some seconds and then turn them off. Also if the IF statement stop being true I want the pins to come off even if they are already on.
I also want that if the IF statement is not true this pins don't come on.
Post Edited (milton hache) : 3/19/2009 10:27:51 PM GMT
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
All interfaces are active
simultaneously
· Serial, 0 to Vcc
· 9600Baud, 81N
· Analog, (Vcc/512) / inch
· Pulse width, (147uS/inch)
Also in your schematic, you really only need to connect the +5, Ground, and PW pin of the sensor. assuming you're going to use the pulse width output scheme.
Post Edited (LilDi) : 3/11/2009 2:16:59 AM GMT
It looks like all the communications are still active within the program; did you have an idea of which method that you wanted to use to read the sensor? As LilDi requested for clarification, but I have not seen a confirmation on which one that you wanted help with.
Did you want to use Serial, Analog, or Pulse Width for the communication with the sensor?
From there we can help take out code that isn't needed, or suggest commands that would best suit your needs.
Thank you
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Respectfully,
Joshua Donelson
www.parallax.com