Need help with PING Ultrasonic sensor
Hi Guys,
I have PING sensor connected to the ARDUINO and my goal is to drive the three LEDs once an object has been detected at certain distance. I need your help with finding out the conversion factor in order to convert the time pulses received into the "cm".
I am currently using the conversion factor of 6.6896. Which means 100 pulses received will be 15 cm. ("cm"X6.6896=100.344)
I am not really sure if this is the right conversion. Also, please look at the attached code and advise me if I need to make any corrections.
Thank you.
I have PING sensor connected to the ARDUINO and my goal is to drive the three LEDs once an object has been detected at certain distance. I need your help with finding out the conversion factor in order to convert the time pulses received into the "cm".
I am currently using the conversion factor of 6.6896. Which means 100 pulses received will be 15 cm. ("cm"X6.6896=100.344)
I am not really sure if this is the right conversion. Also, please look at the attached code and advise me if I need to make any corrections.
Thank you.
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support