Page 1 of 1

basic questions about Maxbotic Ultrasonic sensor

PostPosted: Wed Dec 02, 2009 9:49 pm
by Light
Hi every1

i recently bought the EZ1 ultrasonic sensor, and i have some questions about it, first of all i want to let you know that im using the analog output of the EZ1 and not the PWM.

Q1\ how can i make the voltage received from AN increase (instead of decreasing) when an object comes closer instead of the opposite ?

Q2\ this is the internal EZ1 circuit diagram:

Image

where is the transmitter and receiver ? what is s-TxR ? transmitter or receiver or both ?

thank you for helping

Re: basic questions about Maxbotic Ultrasonic sensor

PostPosted: Thu Dec 03, 2009 10:16 am
by waiweng83

Re: basic questions about Maxbotic Ultrasonic sensor

PostPosted: Thu Dec 03, 2009 9:42 pm
by Light
thanks for replaying...

im using the maxsonar EZ1 to detect obstacles, the sensor will be connected to Micro vibrator motor, so the relation will be: the more the obstacle comes nearer, the more vibration we get from the micro-vibrator. thats my brief application.

so i thought about using the AN pin instead of the PW pin, but i found out that the relation mentioned above is not satisfied... where voltage keeps decreasing instead of increasing when the obstacle is getting nearer.

does that mean i have to use the PW pin and connect it to microcontroller ??

thank you

Re: basic questions about Maxbotic Ultrasonic sensor

PostPosted: Thu Dec 03, 2009 10:09 pm
by waiweng83
I don't think the AN output of the sensor has enough current to drive the motor directly. Have you tested it before?

Re: basic questions about Maxbotic Ultrasonic sensor

PostPosted: Fri Dec 04, 2009 4:15 am
by Light
ya i've tested it, and it gives me less voltage when i get and object near to it.
so u think the only way is to use the PWM from the PW pin ? or there is another way ?
if so....am i supposed to use microcontroller to translate the pulses into variable voltage to be connected to the vibrators ?

or if there is any easier solutions please do tell me.

thank you for everything

Re: basic questions about Maxbotic Ultrasonic sensor

PostPosted: Fri Dec 04, 2009 4:59 am
by Light
http://www.youtube.com/watch?v=4DyXlnC52gU

this is an example of using the AN pin i guess...got it from youtube

Re: basic questions about Maxbotic Ultrasonic sensor

PostPosted: Fri Dec 04, 2009 10:25 am
by waiweng83
The PW output from the ultrasonic sensor is not suitable to drive your vibrator motor as well. I think the easiest way is to use a microcontroller with ADC input and PWM output. It's more flexible as well. You can connect the components as below:

Maxbotic (AN) ----> MCU -----> Transistor / MOSFET / Motor Driver ---> Motor

You may also refer to the DIY Project Set PR23 (http://www.cytron.com.my/viewProduct.ph ... ZM=&store=)

There are examples of using the Maxbotic Ultrasonic sensor.