Ultrasonic sensor problem

Hello all.

I am new to this forum. This is my first post.

I am new to arduino too. I have done some projects with raspberry pi though and programming is not new for me too.
I started to learn the electronics.

So today i have got my first arduino uno board and tried some sensors. One Ultrasonic sensor did not work. Readings were wrong. It said 5 cm no matter what i did with it. Then i noticed if i touch this metal (there is 4.000 written on top of that) then it works great. So what's wrong? I checked soldering and it seems there is no damage at all. I want to fix this sensor problem if possible.

mate26:
Hello all.

I am new to this forum. This is my first post.

I am new to arduino too. I have done some projects with raspberry pi though and programming is not new for me too.
I started to learn the electronics.

So today i have got my first arduino uno board and tried some sensors. One Ultrasonic sensor did not work. Readings were wrong. It said 5 cm no matter what i did with it. Then i noticed if i touch this metal (there is 4.000 written on top of that) then it works great. So what's wrong? I checked soldering and it seems there is no damage at all. I want to fix this sensor problem if possible.

That is a 4 MHz crystal that controls the frequency of the ultrasonic signal.

You need to draw up a schematic of how you have all the connections to the Arduino and the power and post it so we can also see how you did the connections.

Paul

Paul_KD7HB:
That is a 4 MHz crystal that controls the frequency of the ultrasonic signal.

You need to draw up a schematic of how you have all the connections to the Arduino and the power and post it so we can also see how you did the connections.

Paul

I have it like this.

I have 5 ultrasonic sensors. Other 4 sensors work without issues. Just this one does not work until i touch that 4 MHz crystal with my hand. I thought issue was with ground pin but it does not. I did not find any damage to solder on that sensor

There is probably a bad connection to the crystal, or the crystal itself is bad. If you have a solder pencil, trying resoldering the connections (just melt them until the solder flows and let it solidify again).

If that doesn't work, discard the sensor.

1 Like