Hello friends this is my first post on this forum!
I have built a coordinate measuring and display unit with the help of optical encoder, raster strip, Arduino Nano, and MAX7219 LED display module.
The number displayed on the LED module should increment or decrement depending on the direction of motion of the encoder strip between the optical encoder. When the strip is not moving, the value displayed on the LED module should remain the same.
The problem is that the value displayed on the LED module keeps on incrementing and decrementing randomly even when the strip is stationery.
The only way I found out to prevent this is to touch any part of the circuit. If I touch the pcb with just my fingertip, the fluctuations reduce but don't stop. However, if I hold the pcb tightly or if the area of contact is sufficiently large then the value remains still and everything works well.
I dont think this is a grounding issue because it works perfectly even if I touch the +ve pin or ANY other pin for that matter. It works even when I hold the insulated power cable in my hand AND press tightly.
Touching a large metallic object to the pins also solves the problem.
Please take a look at this video that I have uploaded to youtube.
I have built a coordinate measuring and display unit with the help of optical encoder, raster strip, Arduino Nano, and MAX7219 LED display module.
The number displayed on the LED module should increment or decrement depending on the direction of motion of the encoder strip between the optical encoder. When the strip is not moving, the value displayed on the LED module should remain the same.
The problem is that the value displayed on the LED module keeps on incrementing and decrementing randomly even when the strip is stationery.
The only way I found out to prevent this is to touch any part of the circuit. If I touch the pcb with just my fingertip, the fluctuations reduce but don't stop. However, if I hold the pcb tightly or if the area of contact is sufficiently large then the value remains still and everything works well.
I dont think this is a grounding issue because it works perfectly even if I touch the +ve pin or ANY other pin for that matter. It works even when I hold the insulated power cable in my hand AND press tightly.
Touching a large metallic object to the pins also solves the problem.
Please take a look at this video that I have uploaded to youtube.