0

I'm using ATMEGA328P soldered on a protoboard. ATMEGA328P have some outputs that are connected to a RGB LED. The code take as inputs RGB led state from Raspberry and pass these inputs as outputs on the LED. The code is working fine on Arduino UNO board and the inputs are ok, but I think that there is something wrong with the board because there are flashing color glints and the colors are not stable. I understand is a hard question because there are a lot of factors, but I don't have any idea why this is happening. Maybe crystal and capacitors are wrong soldering? Is the circuit been affected for external noise? I attach some board photos.

enter image description here enter image description here enter image description here

Juanma
  • 370
  • 1
  • 18

1 Answers1

0

Thank you so much for all the comments, the problem came from Raspberry outputs (I don't understand why). I changed the output pins and it works fine.

Juanma
  • 370
  • 1
  • 18
  • Its always good to have an oscilloscope on your bench. You can measure all the relevant pins whenever you feel something has gone wrong. – abunickabhi Sep 09 '21 at 09:28
  • 1
    Yes you are right, anyway I was reading the Raspberry outputs on ATMEGA328P and they were different between them. – Juanma Sep 09 '21 at 09:54
  • 1
    Okay got it. Scope is a really handy instrument. Can make us unstuck from various debugging situations quickly. – abunickabhi Sep 09 '21 at 10:34