AtomSoft
Well-Known Member
URF = Ultrasonic Range Finder
Ok i want to make a small mobile type car. But just with a URF, small motor and maybe a power led with a led on/off and a power on/off
The goal i have it basically when the user gets close to the vehicle it moves away. Sort of like a guy trying to catch a chicken. I want to play a little prank on my wife. I want to embed this into a pack of cigarettes and have it move away from her every time she tries to get one.
Ultrasonic Range Finder - Maxbotix LV-EZ1
Features:
* 42kHz Ultrasonic sensor
* Operates from 2.5-5.5V
* Low 2mA supply current
* 20Hz reading rate
* RS232 Serial Output - 9600bps
* Analog Output - 10mV/inch
* PWM Output - 147uS/inch
* Small, light weight module
My question is how is everything done ? More or less. I know the distance is measured by Analog /PWM output. What PIC would i use to get the input and then send the output? I know there are alot of i/o pins in some pics.
Ok i assume i get the input and have stages set up depending on input like:
if Analog Output = 50mv move forward slow ' 5 inches away
if Analog Output = 40mv move forward a bit faster than before ' 4 inches way
if Analog Output = 30mv move forward faster' 3 inches away
etv..
i basically want to measeure from 6 inches and closer. What PIC can i use to measure mV's and general info on how to program it or a code sample or link to such info would be awsome.
Ok i want to make a small mobile type car. But just with a URF, small motor and maybe a power led with a led on/off and a power on/off
The goal i have it basically when the user gets close to the vehicle it moves away. Sort of like a guy trying to catch a chicken. I want to play a little prank on my wife. I want to embed this into a pack of cigarettes and have it move away from her every time she tries to get one.
Ultrasonic Range Finder - Maxbotix LV-EZ1
Features:
* 42kHz Ultrasonic sensor
* Operates from 2.5-5.5V
* Low 2mA supply current
* 20Hz reading rate
* RS232 Serial Output - 9600bps
* Analog Output - 10mV/inch
* PWM Output - 147uS/inch
* Small, light weight module
My question is how is everything done ? More or less. I know the distance is measured by Analog /PWM output. What PIC would i use to get the input and then send the output? I know there are alot of i/o pins in some pics.
Ok i assume i get the input and have stages set up depending on input like:
if Analog Output = 50mv move forward slow ' 5 inches away
if Analog Output = 40mv move forward a bit faster than before ' 4 inches way
if Analog Output = 30mv move forward faster' 3 inches away
etv..
i basically want to measeure from 6 inches and closer. What PIC can i use to measure mV's and general info on how to program it or a code sample or link to such info would be awsome.