Noob so please be kind … I have set up a pretty standard 2 pin flame detector with a resistor. Something like this Flame sensor. It works fine and reads well.
My issue is when I add a TM1637 4 digit 7 segment display and even if I hook the display to 3.3V I all of a sudden will get a false reading from the flame sensor ever 5 to 10 seconds. It seems pretty random. If I disconnect the TM1637 things work fine.
Sorry, first post … I added a diagram and code. I’m just starting out and don’t have any capacitors, before I go out and get some I want to make sure I understand why I would need them or even if I do need them.
Any help understanding why I would use them with the fire sensor or display would be appreciated.
You need capacitors like a joiner needs nails and screws and a cook needs pots and pans. Buy some.
In this particular case you need them to suppress possible noise from one component interfering with another. You can't put too many (within reason) capacitors across the supply pins. At the very least every device should have 0μ1 capacitor between 0V and the supply as close to the actual pins as physically possible.
Thanks everyone for your help ... I still have a lot to learn particularly about capacitors and forum etiquette. I took a slightly different approach to resolve this issue. I monitored my output noise on A0 vs the flame values I was looking for and placed a lower threshold on the flame sensor to weed out the noise. This looks to be working well now.
FYI I would have looked at the data sheet but the display is an Amazon special that doesn't have any manufacturer markings.
I’ll do a search and try and learn some more about it. It’s been 30 years since high school electronics, so it’s all pretty new (again) for me, it will take some time to absorb it all. I know about 20 programming languages, so I figured it was time I learned the hardware parts. It’s seems a lot more complicated than the coding.