ultrasonic transmitter
Cenlasoft
Posts: 265
hello,
I am trying to make an ultrasonic range finder without using the ping. my research suggest that a max232 can be used to produce a +10v and -10v system that can power a us transducer to 20 vpp. Can anyone lead me to a way to do this?
Thanks,
Cenlasoft
I am trying to make an ultrasonic range finder without using the ping. my research suggest that a max232 can be used to produce a +10v and -10v system that can power a us transducer to 20 vpp. Can anyone lead me to a way to do this?
Thanks,
Cenlasoft
Comments
Thanks
Cenlasoft
I have no idea about how it would work to drive an ultrasound.
Have you tried the Max232 with 3.3V logic? I haven't found many TTL devices which do not read 3.3V as logic high.
Based on JonnyMac's advice I usually use the 5V of the RS-485 (did I get those numbers right?) chips since they cost less then the 3.3V versions (and work just fine at 3.3V).
Edit: It does look like the Max232 will work with 3.3V logic. They're also a lot less expensive than the Max3232 versions.
Thanks
I drived sonic-transmitter on 5V.
Connection;
P0 - Transistor - Pullupresistor - capacitor - sonictransmitter
Connecting max232 between Pullupresistor and capacitor is no good?
Curcuit diagram is #58 below;
http://forums.parallax.com/showthread.php/146693-Propforth-v5.5-is-available-for-download/page3
Cenlasoft
Do you want the second signal to be 90 degrees out of phase or 180 degrees out of phase?
I notice you've used both 90 and 180 degrees phase difference. I'd think you'd want the second signal 180 degrees out of phase from the first in this application.
Sorry, I don't know the answer either way.
Wouldn't using an inverter on the first signal produce a signal 180 degrees out of phase automatically? As I mentioned previously, I'm pretty sure the MAX232 chip will treat 3.3V as logic high so you could drive one channel of the chip directly from the Prop pin and drive the second channel from the inverter (using the same Prop Pin as the input to the inverter). Assuming, you want two signals 180 degrees from each other.
I never thought about the inverter. I actually want the first signal to be a squarewave and the second one to be 180 degrees out of phase. the reason I am using an inverter is to get it 5 v and the the max232 to get about 16 vpp to drive the ultrasonic sensor.
Thanks again,
Curtis
I used the "squarewave" object and produced two squarewaves with one 180 degrees out of phase. I then sent each signal from pin 0 and 1 to the inputs of a max232 to increase the vpp. I got 16 vpp as was intended. now I want to add to the code listing below to create pulses .5 ms long and a waiting period of 20 ms between the next pulse.
Code listing 1:
Thank you,
Curtis