Help interfacing with this ultrasonic sensor - DYP-ME007Y

siva2402:
What does the PWM stand for, and what is it used for? Sorry for my ignorance, just interested to learn what's going on.

I used 12 and 11, as per one of the examples I found regarding your NewPing library. So since I'm using 10,11 now, I suppose this means 12 may be broken.

Marc

PWM is pulse width modulation. These pins can be used to create a pulsed output at specific timing.

It's possible there's a problem with pin 12, or it could be that you had 11 and 12 switched, or a host of other possibilities. Best way to know is to switch just one of the pins that currently works with pin 12, then trying the other. It's possible it only works for output and not input for example.

Tim