Hi community, I'm a beginner at this whole arduino thing. Codewise, I get around stuff by myself (usually), but I have low experience into building stuff, although the theory of it is familiar to me (I'm grad in teaching science, ive been in a class for 2 years, now owning my own business). Off with the intro: I've built my first full scale project, but now I'm faced with problems.
My prototype (NOT final build) has bad solenoid/inductive feedback through the whole 5V rail, and it makes my 16x2 LCD go mad from time to time.
Build: Inputs - 1x Thermistor and 1x manual on/off switch
Outputs - 1x 16x2 LCD, 1x 8-relay module. (7 pins used)
Power supply: An old yet fully functionnal CPU PSU that could deliver enough amps to fry everything, fused before everything Rail varies from 5.05V-5.04V no load/under load.
PROBLEM: From time to time, when a relay switches ON OR OFF, observed on at least 4 of the 7 relays, the LCD enters berserk mode and show random numbers and letters while "updating" part of the screen to the programmed intervals.
LIMITS:
- I stress-tested the system, and while the LCD is gone wild, the arduino seems 100% fine and responds as expected. Seems like the chip is not affected, although I will not feel safe long term leaving it as is, as it could be destructive to the chip if it is to the LCD...
- Most of the time, the LCD will come back to normal when a relay clicks (not necessarily the same who began the problem), but sometimes it will take a while. Very random!
- The circuit is extremely basic, no filters whatsoever (I dont have parts on hand). Mostly the 3 shields, wires and resistors, and 1 pot for the LCD.
- I know a lot of the similarly reported problems were bad wire connections, I wiggled everything, pressed, re-pressed, etc. Doesnt seem to do much until one of the relays open/closes.
HYPOTHESIS: I read on buck converters, it seems like they would benefit the circuit as I could create 2 separate 5V rails out of a main DC12V already available (which already feeds the relayed circuit and is far from being saturated), and I feel like the buck converters themselves would "filter" between the rails.
This way, I could power the "J" 5V pin of the relays (coil power) in opto-isolation with its own 5V and GND. (no GND between relays and the arduino, as these boards use GND on output pins to close the LED circuit in opto-isolation)
Am I wrong? Would 2 buck converters rated 5V 2A do the trick? Would I need to add further filtration?
As the whole thing is in Prototype mode (lots of wires dangling in mid air), I want to figure it out ASAP before I get my final parts for the 100%-soldered circuit. I may order more parts (yay! gift to me!)
Thank you all for any advice, have a nice holiday season!